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.002363/0.002363, allocations: 179.9 kB / 16.38 MB, free: 5.762 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.377/1.377, allocations: 223.2 MB / 240.3 MB, free: 10.17 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009693/0.0009695, allocations: 89.78 kB / 291.5 MB, free: 10.72 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003066/0.0003068, allocations: 11.94 kB / 351.2 MB, free: 15.03 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3174/0.3177, allocations: 50.4 MB / 401.6 MB, free: 32.56 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1179/0.4356, allocations: 76.7 MB / 478.3 MB, free: 3.758 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001982/0.4359, allocations: 67.97 kB / 478.3 MB, free: 3.691 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008035/0.4439, allocations: 3.058 MB / 481.4 MB, free: 0.6133 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.345e-06/0.444, allocations: 0 / 481.4 MB, free: 0.6133 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.471e-05/0.444, allocations: 8 kB / 481.4 MB, free: 0.6055 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.0006488/0.4447, allocations: 449.2 kB / 481.8 MB, free: 124 kB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.487e-05/0.4447, allocations: 8.031 kB / 481.8 MB, free: 116 kB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.306e-05/0.4448, allocations: 58.55 kB / 481.9 MB, free: 48 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.14e-05/0.4449, allocations: 23.72 kB / 481.9 MB, free: 24 kB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003617/0.4452, allocations: 234.7 kB / 482.2 MB, free: 15.75 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.489e-05/0.4453, allocations: 28.55 kB / 482.2 MB, free: 15.72 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.752e-05/0.4453, allocations: 28 kB / 482.2 MB, free: 15.7 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004777/0.4458, allocations: 273.9 kB / 482.5 MB, free: 15.41 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.236e-05/0.4458, allocations: 0 / 482.5 MB, free: 15.41 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.072e-05/0.4459, allocations: 12 kB / 482.5 MB, free: 15.4 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.18e-05/0.4459, allocations: 11.98 kB / 482.5 MB, free: 15.39 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003155/0.4462, allocations: 157.6 kB / 482.7 MB, free: 15.23 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001233/0.4475, allocations: 0.9675 MB / 483.6 MB, free: 14.2 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002866/0.4478, allocations: 166 kB / 483.8 MB, free: 14.02 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.155e-05/0.4478, allocations: 8.125 kB / 483.8 MB, free: 14.01 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002467/0.4481, allocations: 139.6 kB / 483.9 MB, free: 13.86 MB / 362.7 MB Notification: Performance of pre-optimization done (n=24): time 1.373e-06/0.4481, allocations: 0 / 483.9 MB, free: 13.86 MB / 362.7 MB Notification: Performance of matching and sorting (n=24): time 0.0004997/0.4486, allocations: 232.7 kB / 484.2 MB, free: 13.62 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.038e-05/0.4487, allocations: 89.09 kB / 484.2 MB, free: 13.52 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001464/0.4488, allocations: 141.8 kB / 484.4 MB, free: 13.38 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.014e-05/0.4489, allocations: 37.7 kB / 484.4 MB, free: 13.33 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001135/0.449, allocations: 136.5 kB / 484.6 MB, free: 13.2 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.135e-05/0.449, allocations: 63.19 kB / 484.6 MB, free: 13.13 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.245e-05/0.4491, allocations: 4 kB / 484.6 MB, free: 13.13 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000186/0.4493, allocations: 326.8 kB / 484.9 MB, free: 12.8 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001302/0.4494, allocations: 67.95 kB / 485 MB, free: 12.73 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001693/0.4496, allocations: 136.5 kB / 485.1 MB, free: 12.57 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001389/0.4497, allocations: 76.45 kB / 485.2 MB, free: 12.5 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.826e-06/0.4497, allocations: 0 / 485.2 MB, free: 12.5 MB / 362.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003858/0.4501, allocations: 253.2 kB / 485.5 MB, free: 12.24 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.682e-05/0.4501, allocations: 4 kB / 485.5 MB, free: 12.24 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.915e-06/0.4502, allocations: 4 kB / 485.5 MB, free: 12.23 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.673e-05/0.4502, allocations: 4 kB / 485.5 MB, free: 12.23 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001436/0.4503, allocations: 36.14 kB / 485.5 MB, free: 12.2 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.079e-05/0.4503, allocations: 11.95 kB / 485.5 MB, free: 12.18 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.995e-05/0.4504, allocations: 15.94 kB / 485.5 MB, free: 12.17 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.564e-05/0.4505, allocations: 19.98 kB / 485.6 MB, free: 12.15 MB / 362.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 () * Number of clocked 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.000162/0.4507, allocations: 150.5 kB / 485.7 MB, free: 11.99 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.508e-05/0.4507, allocations: 19.81 kB / 485.7 MB, free: 11.97 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003732/0.4511, allocations: 194.3 kB / 485.9 MB, free: 11.77 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.869e-06/0.4511, allocations: 8 kB / 485.9 MB, free: 11.77 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.17e-06/0.4511, allocations: 0 / 485.9 MB, free: 11.77 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.204e-06/0.4511, allocations: 3.953 kB / 485.9 MB, free: 11.76 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000738/0.4519, allocations: 0.5851 MB / 486.5 MB, free: 11.12 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.824e-06/0.4519, allocations: 0 / 486.5 MB, free: 11.12 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.275e-05/0.4519, allocations: 15.98 kB / 486.5 MB, free: 11.1 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.56e-06/0.452, allocations: 3.953 kB / 486.5 MB, free: 11.1 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.785e-05/0.452, allocations: 12 kB / 486.5 MB, free: 11.09 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.814e-06/0.452, allocations: 0 / 486.5 MB, free: 11.09 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.895e-06/0.452, allocations: 3.938 kB / 486.5 MB, free: 11.08 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003271/0.4523, allocations: 294.3 kB / 486.8 MB, free: 10.77 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.491e-05/0.4524, allocations: 100.8 kB / 486.9 MB, free: 10.65 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.804e-05/0.4524, allocations: 4 kB / 486.9 MB, free: 10.65 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.237e-05/0.4525, allocations: 12 kB / 486.9 MB, free: 10.64 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.009e-05/0.4526, allocations: 27.89 kB / 487 MB, free: 10.61 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.808e-05/0.4526, allocations: 11.94 kB / 487 MB, free: 10.6 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.032e-05/0.4527, allocations: 97.77 kB / 487.1 MB, free: 10.5 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4527, allocations: 0 / 487.1 MB, free: 10.5 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002862/0.453, allocations: 44 kB / 487.1 MB, free: 10.46 MB / 362.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) * Number of clocked states: 0 () * 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.0007457/0.4538, allocations: 0.9084 MB / 488 MB, free: 9.52 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003247/0.4541, allocations: 183.7 kB / 488.2 MB, free: 9.34 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.4541, allocations: 0.5625 kB / 488.2 MB, free: 9.34 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001338/0.4543, allocations: 87.91 kB / 488.3 MB, free: 9.254 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000214/0.4545, allocations: 18.91 kB / 488.3 MB, free: 9.238 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00231/0.4568, allocations: 2.328 MB / 490.6 MB, free: 6.816 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004192/0.4572, allocations: 0.7483 MB / 491.4 MB, free: 6.043 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 8.801e-05/0.4573, allocations: 25.94 kB / 491.4 MB, free: 6.02 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001174/0.4574, allocations: 71.41 kB / 491.5 MB, free: 5.953 MB / 362.7 MB Notification: Performance of SimCode: time 3.2e-07/0.4575, allocations: 4 kB / 491.5 MB, free: 5.949 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01738/0.4748, allocations: 3.337 MB / 494.8 MB, free: 2.75 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002652/0.4752, allocations: 172.3 kB / 495 MB, free: 2.516 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.733/2.208, allocations: 0 / 495 MB, free: 2.516 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