Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.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_Variant2,fileNamePrefix="Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant2,fileNamePrefix="Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_Variant2",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.001351/0.001351, allocations: 175.5 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.385/1.385, allocations: 221.3 MB / 235.5 MB, free: 2.898 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.001061/0.001061, allocations: 105.3 kB / 286.5 MB, free: 180 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.329e-05/3.332e-05, allocations: 0 / 343.9 MB, free: 4.234 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1141/0.1142, allocations: 50.42 MB / 394.3 MB, free: 1.777 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.32/0.4343, allocations: 76.62 MB / 470.9 MB, free: 10.89 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002215/0.4345, allocations: 63.97 kB / 471 MB, free: 10.82 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008128/0.4427, allocations: 3.083 MB / 474.1 MB, free: 7.727 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.443e-06/0.4427, allocations: 0 / 474.1 MB, free: 7.727 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.26e-05/0.4427, allocations: 4 kB / 474.1 MB, free: 7.723 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.0005397/0.4433, allocations: 444.6 kB / 474.5 MB, free: 7.246 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.578e-05/0.4433, allocations: 12.03 kB / 474.5 MB, free: 7.234 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.063e-05/0.4434, allocations: 62.53 kB / 474.6 MB, free: 7.164 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.103e-05/0.4435, allocations: 23.72 kB / 474.6 MB, free: 7.141 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002694/0.4437, allocations: 219 kB / 474.8 MB, free: 6.887 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.344e-05/0.4438, allocations: 20.56 kB / 474.9 MB, free: 6.863 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.298e-05/0.4439, allocations: 39.88 kB / 474.9 MB, free: 6.824 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004351/0.4443, allocations: 266 kB / 475.2 MB, free: 6.543 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.11e-05/0.4443, allocations: 0 / 475.2 MB, free: 6.543 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.632e-05/0.4443, allocations: 8 kB / 475.2 MB, free: 6.535 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.187e-06/0.4444, allocations: 4 kB / 475.2 MB, free: 6.531 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002863/0.4447, allocations: 165.7 kB / 475.3 MB, free: 6.371 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001117/0.4458, allocations: 0.9713 MB / 476.3 MB, free: 5.328 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002763/0.4461, allocations: 178 kB / 476.5 MB, free: 5.137 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001128/0.4462, allocations: 74.09 kB / 476.5 MB, free: 5.059 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.278e-05/0.4462, allocations: 192 / 476.5 MB, free: 5.059 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002051/0.4464, allocations: 145 kB / 476.7 MB, free: 4.902 MB / 346.7 MB Notification: Performance of pre-optimization done (n=24): time 1.242e-06/0.4464, allocations: 0 / 476.7 MB, free: 4.902 MB / 346.7 MB Notification: Performance of matching and sorting (n=24): time 0.0003414/0.4468, allocations: 169.3 kB / 476.9 MB, free: 4.73 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.481e-05/0.4469, allocations: 89.09 kB / 476.9 MB, free: 4.625 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001166/0.447, allocations: 138.2 kB / 477.1 MB, free: 4.484 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.322e-05/0.447, allocations: 37.7 kB / 477.1 MB, free: 4.441 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.423e-05/0.4471, allocations: 140.2 kB / 477.2 MB, free: 4.301 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.148e-05/0.4472, allocations: 59.25 kB / 477.3 MB, free: 4.242 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.236e-05/0.4472, allocations: 12.03 kB / 477.3 MB, free: 4.23 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001304/0.4473, allocations: 322.8 kB / 477.6 MB, free: 3.906 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001131/0.4474, allocations: 67.94 kB / 477.7 MB, free: 3.84 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000161/0.4476, allocations: 136.5 kB / 477.8 MB, free: 3.676 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001256/0.4477, allocations: 63.97 kB / 477.9 MB, free: 3.613 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.4478, allocations: 3.938 kB / 477.9 MB, free: 3.609 MB / 346.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003632/0.4481, allocations: 253.2 kB / 478.1 MB, free: 3.355 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.072e-05/0.4482, allocations: 8 kB / 478.2 MB, free: 3.348 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.452e-06/0.4482, allocations: 3.938 kB / 478.2 MB, free: 3.344 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.756e-05/0.4482, allocations: 4 kB / 478.2 MB, free: 3.34 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001472/0.4483, allocations: 39.88 kB / 478.2 MB, free: 3.301 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.08e-05/0.4484, allocations: 4 kB / 478.2 MB, free: 3.297 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.391e-05/0.4485, allocations: 20.17 kB / 478.2 MB, free: 3.277 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.388e-05/0.4485, allocations: 20 kB / 478.2 MB, free: 3.258 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,greaterEqual.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.0001082/0.4486, allocations: 136.6 kB / 478.4 MB, free: 3.117 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.515e-05/0.4486, allocations: 15.81 kB / 478.4 MB, free: 3.102 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003174/0.449, allocations: 182.3 kB / 478.6 MB, free: 2.918 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.528e-06/0.449, allocations: 3.984 kB / 478.6 MB, free: 2.914 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.945e-06/0.449, allocations: 7.953 kB / 478.6 MB, free: 2.906 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.502e-06/0.449, allocations: 3.984 kB / 478.6 MB, free: 2.902 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000747/0.4498, allocations: 0.5837 MB / 479.2 MB, free: 2.258 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.764e-06/0.4498, allocations: 0 / 479.2 MB, free: 2.258 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.232e-05/0.4499, allocations: 15.94 kB / 479.2 MB, free: 2.242 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.613e-06/0.4499, allocations: 7.938 kB / 479.2 MB, free: 2.234 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.874e-05/0.4499, allocations: 8 kB / 479.2 MB, free: 2.227 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.458e-06/0.4499, allocations: 4 kB / 479.2 MB, free: 2.223 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.4499, allocations: 0 / 479.2 MB, free: 2.223 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003263/0.4502, allocations: 302.6 kB / 479.5 MB, free: 1.902 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.208e-05/0.4503, allocations: 92.88 kB / 479.6 MB, free: 1.793 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.627e-05/0.4503, allocations: 4 kB / 479.6 MB, free: 1.789 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.24e-05/0.4504, allocations: 11.98 kB / 479.6 MB, free: 1.777 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.856e-05/0.4505, allocations: 19.97 kB / 479.6 MB, free: 1.758 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.649e-05/0.4505, allocations: 12 kB / 479.6 MB, free: 1.746 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001024/0.4507, allocations: 105.9 kB / 479.7 MB, free: 1.645 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4507, allocations: 0 / 479.7 MB, free: 1.645 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000292/0.451, allocations: 44 kB / 479.8 MB, free: 1.602 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,greaterEqual.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.0007386/0.4517, allocations: 0.9007 MB / 480.7 MB, free: 0.6641 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0003239/0.452, allocations: 175.8 kB / 480.9 MB, free: 0.4922 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.4521, allocations: 0 / 480.9 MB, free: 0.4922 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000131/0.4522, allocations: 91.8 kB / 480.9 MB, free: 412 kB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002077/0.4524, allocations: 16.84 kB / 481 MB, free: 396 kB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007025/0.4531, allocations: 307.7 kB / 481.3 MB, free: 52 kB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003603/0.4535, allocations: 0.7404 MB / 482 MB, free: 15.29 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 8.229e-05/0.4536, allocations: 26.08 kB / 482 MB, free: 15.26 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000108/0.4537, allocations: 63.41 kB / 482.1 MB, free: 15.2 MB / 362.7 MB Notification: Performance of SimCode: time 4.61e-07/0.4537, allocations: 0 / 482.1 MB, free: 15.2 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01529/0.469, allocations: 3.411 MB / 485.5 MB, free: 11.91 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002465/0.4693, allocations: 153.1 kB / 485.7 MB, free: 11.69 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.623/2.093, allocations: 3.938 kB / 485.7 MB, free: 11.68 MB / 362.7 MB (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_Variant2_fmu --startTime=0 --stopTime=5.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_Variant2.fmu > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat does not exist to compare? outputFormat=mat