Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant3,fileNamePrefix="Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant3,fileNamePrefix="Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002052/0.002052, allocations: 175.2 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.372/1.372, allocations: 221.3 MB / 235.5 MB, free: 2.91 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001178/0.001178, allocations: 88.05 kB / 286.5 MB, free: 188 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.76e-05/2.763e-05, allocations: 4 kB / 343.9 MB, free: 4.234 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1143/0.1143, allocations: 50.42 MB / 394.3 MB, free: 1.773 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3382/0.4525, allocations: 76.63 MB / 471 MB, free: 10.86 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002341/0.4528, allocations: 67.97 kB / 471 MB, free: 10.79 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008047/0.4609, allocations: 3.051 MB / 474.1 MB, free: 7.723 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.4609, allocations: 4 kB / 474.1 MB, free: 7.719 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.379e-05/0.461, allocations: 4 kB / 474.1 MB, free: 7.715 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0005841/0.4616, allocations: 444.6 kB / 474.5 MB, free: 7.242 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.75e-05/0.4616, allocations: 8.031 kB / 474.5 MB, free: 7.234 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.724e-05/0.4617, allocations: 58.55 kB / 474.6 MB, free: 7.168 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.571e-05/0.4618, allocations: 27.7 kB / 474.6 MB, free: 7.141 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002523/0.462, allocations: 214.9 kB / 474.8 MB, free: 6.891 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.842e-05/0.4621, allocations: 28.55 kB / 474.9 MB, free: 6.859 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.165e-05/0.4621, allocations: 28 kB / 474.9 MB, free: 6.832 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004453/0.4626, allocations: 273.9 kB / 475.2 MB, free: 6.543 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.178e-05/0.4626, allocations: 0 / 475.2 MB, free: 6.543 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.901e-05/0.4626, allocations: 11.98 kB / 475.2 MB, free: 6.531 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.111e-05/0.4626, allocations: 8 kB / 475.2 MB, free: 6.523 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002998/0.463, allocations: 157.7 kB / 475.3 MB, free: 6.371 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001182/0.4641, allocations: 0.9597 MB / 476.3 MB, free: 5.34 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002808/0.4644, allocations: 169.9 kB / 476.5 MB, free: 5.156 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001147/0.4646, allocations: 82.12 kB / 476.5 MB, free: 5.07 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.666e-05/0.4646, allocations: 4.188 kB / 476.5 MB, free: 5.066 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002155/0.4648, allocations: 145.3 kB / 476.7 MB, free: 4.91 MB / 346.7 MB Notification: Performance of pre-optimization done (n=24): time 1.743e-06/0.4648, allocations: 0 / 476.7 MB, free: 4.91 MB / 346.7 MB Notification: Performance of matching and sorting (n=24): time 0.0003603/0.4652, allocations: 169.2 kB / 476.8 MB, free: 4.738 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.544e-05/0.4653, allocations: 81.11 kB / 476.9 MB, free: 4.641 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001302/0.4654, allocations: 141.3 kB / 477.1 MB, free: 4.496 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.928e-05/0.4654, allocations: 37.73 kB / 477.1 MB, free: 4.453 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000106/0.4656, allocations: 144.3 kB / 477.2 MB, free: 4.309 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.155e-05/0.4656, allocations: 59.25 kB / 477.3 MB, free: 4.25 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.152e-05/0.4656, allocations: 4 kB / 477.3 MB, free: 4.246 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001424/0.4658, allocations: 326.8 kB / 477.6 MB, free: 3.918 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000116/0.4659, allocations: 63.98 kB / 477.7 MB, free: 3.855 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001644/0.4661, allocations: 132.5 kB / 477.8 MB, free: 3.695 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001274/0.4662, allocations: 75.94 kB / 477.9 MB, free: 3.621 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.4662, allocations: 0 / 477.9 MB, free: 3.621 MB / 346.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003822/0.4666, allocations: 245.2 kB / 478.1 MB, free: 3.375 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.691e-05/0.4666, allocations: 8 kB / 478.1 MB, free: 3.367 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.404e-06/0.4666, allocations: 0 / 478.1 MB, free: 3.367 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.648e-05/0.4667, allocations: 7.938 kB / 478.1 MB, free: 3.359 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001424/0.4668, allocations: 48.14 kB / 478.2 MB, free: 3.312 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.232e-05/0.4668, allocations: 4 kB / 478.2 MB, free: 3.309 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001015/0.4669, allocations: 23.84 kB / 478.2 MB, free: 3.285 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.019e-05/0.467, allocations: 12 kB / 478.2 MB, free: 3.273 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 32 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,$whenCondition2,$whenCondition1,$PRE.initialStep.localActive,initialStep.localActive,$PRE.initialStep.newActive,initialStep.newActive,$PRE.initialStep.oldActive,initialStep.oldActive,initialStep.active,transition1.enableFire,transition1.fire,$PRE.transition1.t_start,transition1.t_start,$PRE.step.localActive,step.localActive,$PRE.step.newActive,step.newActive,$PRE.step.oldActive,step.oldActive,step.active,transition2.enableFire,$PRE.timer.entryTime,timer.entryTime,SetBoolean1.y,stateGraphRoot.activeSteps,$PRE.transition2.t_start,transition2.t_start,stateGraphRoot.resume,stateGraphRoot.suspend,transition1.condition) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (41): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * 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.0001174/0.4671, allocations: 140.6 kB / 478.4 MB, free: 3.129 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.094e-05/0.4671, allocations: 7.906 kB / 478.4 MB, free: 3.121 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003228/0.4675, allocations: 186.3 kB / 478.6 MB, free: 2.93 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.069e-06/0.4675, allocations: 8 kB / 478.6 MB, free: 2.922 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.322e-06/0.4675, allocations: 3.953 kB / 478.6 MB, free: 2.918 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.999e-06/0.4675, allocations: 0 / 478.6 MB, free: 2.918 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007126/0.4682, allocations: 0.5797 MB / 479.1 MB, free: 2.277 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.4682, allocations: 0 / 479.1 MB, free: 2.277 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.601e-05/0.4683, allocations: 19.92 kB / 479.2 MB, free: 2.258 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.572e-06/0.4683, allocations: 7.953 kB / 479.2 MB, free: 2.25 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.509e-05/0.4684, allocations: 8 kB / 479.2 MB, free: 2.242 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.057e-06/0.4684, allocations: 4 kB / 479.2 MB, free: 2.238 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.4684, allocations: 0 / 479.2 MB, free: 2.238 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003283/0.4687, allocations: 290.7 kB / 479.5 MB, free: 1.93 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.929e-05/0.4688, allocations: 92.91 kB / 479.6 MB, free: 1.82 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.797e-05/0.4688, allocations: 8 kB / 479.6 MB, free: 1.812 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.379e-05/0.4689, allocations: 15.98 kB / 479.6 MB, free: 1.797 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.181e-05/0.469, allocations: 23.91 kB / 479.6 MB, free: 1.773 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.593e-05/0.469, allocations: 8 kB / 479.6 MB, free: 1.766 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001103/0.4691, allocations: 99.2 kB / 479.7 MB, free: 1.668 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.4691, allocations: 0 / 479.7 MB, free: 1.668 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002789/0.4694, allocations: 44 kB / 479.8 MB, free: 1.625 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 20 (transition2.t_start,step.active,step.localActive,transition1.enableFire,initialStep.localActive,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.newActive,initialStep.oldActive,initialStep.active,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.enableFire,timer.entryTime,SetBoolean1.y,stateGraphRoot.activeSteps) * Number of discrete states: 3 (initialStep.newActive,step.newActive,transition2.t_start) * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.000682/0.4701, allocations: 0.9045 MB / 480.7 MB, free: 0.6875 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0003066/0.4704, allocations: 179.8 kB / 480.8 MB, free: 0.5117 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.4705, allocations: 0.5625 kB / 480.8 MB, free: 0.5117 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001273/0.4706, allocations: 87.88 kB / 480.9 MB, free: 436 kB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002013/0.4708, allocations: 23.91 kB / 480.9 MB, free: 412 kB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006727/0.4715, allocations: 296.8 kB / 481.2 MB, free: 72 kB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003954/0.4719, allocations: 0.7444 MB / 482 MB, free: 15.3 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 8.745e-05/0.472, allocations: 22.08 kB / 482 MB, free: 15.28 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001132/0.4721, allocations: 67.41 kB / 482.1 MB, free: 15.21 MB / 362.7 MB Notification: Performance of SimCode: time 3.11e-07/0.4721, allocations: 0 / 482.1 MB, free: 15.21 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01498/0.4871, allocations: 3.378 MB / 485.4 MB, free: 11.96 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001912/0.4873, allocations: 153.1 kB / 485.6 MB, free: 11.74 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.669/2.157, allocations: 0 / 485.6 MB, free: 11.74 MB / 362.7 MB (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_Variant3_fmu --startTime=0 --stopTime=5.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_Variant3.fmu > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat does not exist to compare? outputFormat=mat