Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Digital.Examples.INV3S.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.INV3S,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_INV3S",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.INV3S,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_INV3S",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000982/0.0009819, allocations: 202.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.454/1.454, allocations: 225.6 MB / 234.8 MB, free: 3.27 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008481/0.0008481, allocations: 95.75 kB / 286.7 MB, free: 5.258 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.672e-05/2.675e-05, allocations: 4 kB / 343.8 MB, free: 8.191 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1085/0.1085, allocations: 51.47 MB / 395.3 MB, free: 4.68 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.349/0.4576, allocations: 82.87 MB / 478.1 MB, free: 9.918 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002478/0.4579, allocations: 71.73 kB / 478.2 MB, free: 9.891 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05088/0.5088, allocations: 28.32 MB / 0.4946 GB, free: 3.395 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.5089, allocations: 0 / 0.4946 GB, free: 3.395 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.291e-05/0.5089, allocations: 4 kB / 0.4947 GB, free: 3.391 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0006666/0.5096, allocations: 0.623 MB / 0.4953 GB, free: 2.711 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.247e-05/0.5096, allocations: 12.03 kB / 0.4953 GB, free: 2.699 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001014/0.5097, allocations: 35.62 kB / 0.4953 GB, free: 2.664 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003597/0.5101, allocations: 263.6 kB / 0.4956 GB, free: 2.367 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.29e-05/0.5101, allocations: 4 kB / 0.4956 GB, free: 2.363 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.5e-05/0.5102, allocations: 8 kB / 0.4956 GB, free: 2.355 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001361/0.5103, allocations: 63.94 kB / 0.4956 GB, free: 2.293 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002138/0.5105, allocations: 140.7 kB / 0.4958 GB, free: 2.152 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.556e-06/0.5106, allocations: 0 / 0.4958 GB, free: 2.152 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.293e-05/0.5106, allocations: 11.98 kB / 0.4958 GB, free: 2.141 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.158e-06/0.5106, allocations: 0 / 0.4958 GB, free: 2.141 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006353/0.5113, allocations: 446.8 kB / 0.4962 GB, free: 1.691 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001348/0.5114, allocations: 102.5 kB / 0.4963 GB, free: 1.582 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001088/0.5115, allocations: 88.89 kB / 0.4964 GB, free: 1.492 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.401e-06/0.5115, allocations: 0 / 0.4964 GB, free: 1.492 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002379/0.5118, allocations: 218.6 kB / 0.4966 GB, free: 1.254 MB / 362.7 MB Notification: Performance of pre-optimization done (n=13): time 1.343e-06/0.5118, allocations: 0 / 0.4966 GB, free: 1.254 MB / 362.7 MB Notification: Performance of matching and sorting (n=13): time 0.0005188/0.5123, allocations: 313.2 kB / 0.4969 GB, free: 0.9414 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.683e-05/0.5124, allocations: 174.2 kB / 0.4971 GB, free: 0.7344 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004987/0.5129, allocations: 450.7 kB / 0.4975 GB, free: 300 kB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.152e-05/0.5129, allocations: 29.7 kB / 0.4975 GB, free: 264 kB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.807e-05/0.513, allocations: 97.44 kB / 0.4976 GB, free: 164 kB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.228e-05/0.5131, allocations: 31.66 kB / 0.4976 GB, free: 132 kB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.226e-05/0.5131, allocations: 4 kB / 0.4976 GB, free: 128 kB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001099/0.5132, allocations: 322.8 kB / 0.4979 GB, free: 15.8 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.429e-05/0.5133, allocations: 59.97 kB / 0.498 GB, free: 15.74 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.382e-05/0.5134, allocations: 62.38 kB / 0.4981 GB, free: 15.68 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.222e-05/0.5135, allocations: 51.97 kB / 0.4981 GB, free: 15.63 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.5135, allocations: 0 / 0.4981 GB, free: 15.63 MB / 378.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000431/0.5139, allocations: 289.3 kB / 0.4984 GB, free: 15.34 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.824e-05/0.514, allocations: 126.8 kB / 0.4985 GB, free: 15.2 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.072e-06/0.514, allocations: 4 kB / 0.4985 GB, free: 15.19 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.29e-05/0.5141, allocations: 0 / 0.4985 GB, free: 15.19 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.837e-05/0.5141, allocations: 3.938 kB / 0.4985 GB, free: 15.19 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.717e-06/0.5141, allocations: 0 / 0.4985 GB, free: 15.19 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001371/0.5142, allocations: 16 kB / 0.4985 GB, free: 15.17 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001193/0.5144, allocations: 119.9 kB / 0.4986 GB, free: 15.05 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition1,$whenCondition2,e_table.y,x_table.y,iNV3S.nextstate,iNV3S.yy,$PRE.iNV3S.inertialDelaySensitive.x,iNV3S.inertialDelaySensitive.x,$PRE.iNV3S.inertialDelaySensitive.y,iNV3S.inertialDelaySensitive.y,iNV3S.inertialDelaySensitive.delayTime,iNV3S.inertialDelaySensitive.y_auxiliary,iNV3S.inertialDelaySensitive.y_old,iNV3S.inertialDelaySensitive.lh,iNV3S.inertialDelaySensitive.t_next) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 4 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001676/0.5145, allocations: 237.5 kB / 0.4989 GB, free: 14.79 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004804/0.515, allocations: 340.2 kB / 0.4992 GB, free: 14.45 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.505e-05/0.5151, allocations: 35.62 kB / 0.4992 GB, free: 14.42 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001026/0.5152, allocations: 63.44 kB / 0.4993 GB, free: 14.35 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.294e-06/0.5152, allocations: 5.781 kB / 0.4993 GB, free: 14.35 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.118e-06/0.5152, allocations: 0 / 0.4993 GB, free: 14.35 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.875e-06/0.5152, allocations: 0 / 0.4993 GB, free: 14.35 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007594/0.516, allocations: 0.6901 MB / 0.5 GB, free: 13.61 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.516, allocations: 0 / 0.5 GB, free: 13.61 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.933e-06/0.516, allocations: 4.172 kB / 0.5 GB, free: 13.61 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.484e-06/0.516, allocations: 0 / 0.5 GB, free: 13.61 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.72e-05/0.5161, allocations: 27.98 kB / 0.5 GB, free: 13.58 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.5161, allocations: 3.938 kB / 0.5 GB, free: 13.58 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.5161, allocations: 0 / 0.5 GB, free: 13.58 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004945/0.5166, allocations: 430.9 kB / 0.5004 GB, free: 13.14 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000298/0.5169, allocations: 256.4 kB / 0.5007 GB, free: 12.87 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.456e-05/0.517, allocations: 4 kB / 0.5007 GB, free: 12.87 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001578/0.5171, allocations: 19.92 kB / 0.5007 GB, free: 12.85 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001166/0.5173, allocations: 35.95 kB / 0.5007 GB, free: 12.81 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001093/0.5174, allocations: 123.8 kB / 0.5008 GB, free: 12.69 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004089/0.5178, allocations: 370.7 kB / 0.5012 GB, free: 12.33 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5178, allocations: 0 / 0.5012 GB, free: 12.33 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003053/0.5181, allocations: 40 kB / 0.5012 GB, free: 12.29 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition1,$whenCondition2,e_table.y,x_table.y,iNV3S.nextstate,iNV3S.yy,iNV3S.inertialDelaySensitive.x,iNV3S.inertialDelaySensitive.y,iNV3S.inertialDelaySensitive.delayTime,iNV3S.inertialDelaySensitive.y_auxiliary,iNV3S.inertialDelaySensitive.y_old,iNV3S.inertialDelaySensitive.lh,iNV3S.inertialDelaySensitive.t_next) * Number of discrete states: 13 (e_table.y,x_table.y,iNV3S.yy,iNV3S.nextstate,iNV3S.inertialDelaySensitive.y,iNV3S.inertialDelaySensitive.y_auxiliary,iNV3S.inertialDelaySensitive.t_next,iNV3S.inertialDelaySensitive.delayTime,iNV3S.inertialDelaySensitive.lh,iNV3S.inertialDelaySensitive.y_old,$whenCondition2,$whenCondition1,iNV3S.inertialDelaySensitive.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 4 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008373/0.519, allocations: 0.9793 MB / 0.5022 GB, free: 11.29 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004632/0.5194, allocations: 437.5 kB / 0.5026 GB, free: 10.81 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.5195, allocations: 0 / 0.5026 GB, free: 10.81 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002641/0.5197, allocations: 373.6 kB / 0.503 GB, free: 10.39 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005233/0.5203, allocations: 107.3 kB / 0.5031 GB, free: 10.29 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00122/0.5215, allocations: 0.6021 MB / 0.5037 GB, free: 9.652 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004098/0.5219, allocations: 0.8023 MB / 0.5044 GB, free: 8.824 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 8.74e-05/0.522, allocations: 12.64 kB / 0.5044 GB, free: 8.812 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.668e-05/0.5221, allocations: 27.44 kB / 0.5045 GB, free: 8.785 MB / 378.7 MB Notification: Performance of SimCode: time 9.52e-07/0.5221, allocations: 0 / 0.5045 GB, free: 8.785 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0264/0.5485, allocations: 6.614 MB / 0.5109 GB, free: 2.156 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002077/0.5487, allocations: 127.8 kB / 0.5111 GB, free: 1.965 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.618/2.167, allocations: 0 / 0.5111 GB, free: 1.965 MB / 378.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Digital.Examples.INV3S.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Digital.Examples.INV3S.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Digital.Examples.INV3S.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.INV3S.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Digital.Examples.INV3S_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Digital_Examples_INV3S_fmu --startTime=0 --stopTime=12 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Digital_Examples_INV3S.fmu > Modelica_trunk_Modelica.Electrical.Digital.Examples.INV3S.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Digital.Examples.INV3S_res.mat does not exist to compare? outputFormat=mat