Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant2,fileNamePrefix="Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant2,fileNamePrefix="Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001825/0.001825, allocations: 177.7 kB / 8.697 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.723/1.723, allocations: 205.3 MB / 214.4 MB, free: 1.734 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008673/0.0008674, allocations: 70.73 kB / 262.4 MB, free: 1.691 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.012e-05/2.006e-05, allocations: 0 / 315.6 MB, free: 22.64 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1267/0.1267, allocations: 47.6 MB / 363.2 MB, free: 6.988 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3047/0.4315, allocations: 75.3 MB / 438.5 MB, free: 4.043 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001891/0.4317, allocations: 62.03 kB / 438.5 MB, free: 4.012 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007679/0.4394, allocations: 2.947 MB / 441.5 MB, free: 1.496 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.994e-06/0.4395, allocations: 0 / 441.5 MB, free: 1.496 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.56e-05/0.4395, allocations: 6.688 kB / 441.5 MB, free: 1.492 MB / 314.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.0006575/0.4401, allocations: 450.4 kB / 441.9 MB, free: 1.02 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.005e-05/0.4402, allocations: 8.031 kB / 441.9 MB, free: 1.012 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.212e-05/0.4403, allocations: 23.72 kB / 441.9 MB, free: 0.9883 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002981/0.4406, allocations: 229 kB / 442.2 MB, free: 0.7422 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.833e-05/0.4406, allocations: 8 kB / 442.2 MB, free: 0.7344 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.109e-05/0.4407, allocations: 19.98 kB / 442.2 MB, free: 0.7148 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000328/0.441, allocations: 147.3 kB / 442.3 MB, free: 0.625 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004206/0.4415, allocations: 221.1 kB / 442.6 MB, free: 444 kB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.523e-05/0.4415, allocations: 4 kB / 442.6 MB, free: 440 kB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.65e-05/0.4415, allocations: 4 kB / 442.6 MB, free: 436 kB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.051e-05/0.4415, allocations: 4 kB / 442.6 MB, free: 432 kB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001352/0.4429, allocations: 0.9121 MB / 443.5 MB, free: 15.57 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002535/0.4432, allocations: 136.5 kB / 443.6 MB, free: 15.47 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000103/0.4433, allocations: 70.5 kB / 443.7 MB, free: 15.42 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.779e-05/0.4433, allocations: 8.172 kB / 443.7 MB, free: 15.41 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001932/0.4435, allocations: 102.1 kB / 443.8 MB, free: 15.32 MB / 330.7 MB Notification: Performance of pre-optimization done (n=23): time 2.004e-06/0.4435, allocations: 0 / 443.8 MB, free: 15.32 MB / 330.7 MB Notification: Performance of matching and sorting (n=23): time 0.0003487/0.4439, allocations: 146.7 kB / 443.9 MB, free: 15.2 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.73e-05/0.444, allocations: 63.16 kB / 444 MB, free: 15.12 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001665/0.4441, allocations: 135.6 kB / 444.1 MB, free: 15 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.792e-05/0.4442, allocations: 41.5 kB / 444.2 MB, free: 14.95 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001164/0.4443, allocations: 138.3 kB / 444.3 MB, free: 14.82 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.697e-05/0.4444, allocations: 56.41 kB / 444.4 MB, free: 14.77 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.217e-06/0.4444, allocations: 0 / 444.4 MB, free: 14.77 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001474/0.4445, allocations: 329.8 kB / 444.7 MB, free: 14.45 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.457e-05/0.4446, allocations: 50.91 kB / 444.7 MB, free: 14.42 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001533/0.4448, allocations: 134.4 kB / 444.9 MB, free: 14.29 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001115/0.4449, allocations: 58.97 kB / 444.9 MB, free: 14.24 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.935e-06/0.4449, allocations: 0 / 444.9 MB, free: 14.24 MB / 330.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003285/0.4453, allocations: 219.5 kB / 445.1 MB, free: 14.06 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.428e-05/0.4453, allocations: 8 kB / 445.1 MB, free: 14.05 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.308e-06/0.4453, allocations: 0 / 445.1 MB, free: 14.05 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.626e-05/0.4453, allocations: 8.281 kB / 445.1 MB, free: 14.04 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001599/0.4455, allocations: 39.78 kB / 445.2 MB, free: 14.01 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.698e-06/0.4455, allocations: 4 kB / 445.2 MB, free: 14 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.11e-05/0.4456, allocations: 11.91 kB / 445.2 MB, free: 13.99 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.482e-05/0.4457, allocations: 8 kB / 445.2 MB, free: 13.98 MB / 330.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: 30 ($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,stateGraphRoot.resume,stateGraphRoot.suspend,transition1.condition) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 40 * 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.0001719/0.4458, allocations: 127.8 kB / 445.3 MB, free: 13.86 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002194/0.4461, allocations: 149.1 kB / 445.5 MB, free: 13.73 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.091e-05/0.4461, allocations: 11.91 kB / 445.5 MB, free: 13.71 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004216/0.4465, allocations: 176.1 kB / 445.7 MB, free: 13.58 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.55e-06/0.4465, allocations: 0 / 445.7 MB, free: 13.58 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.929e-06/0.4466, allocations: 4 kB / 445.7 MB, free: 13.57 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.033e-05/0.4466, allocations: 4 kB / 445.7 MB, free: 13.57 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000697/0.4473, allocations: 0.5202 MB / 446.2 MB, free: 13.07 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.943e-06/0.4473, allocations: 0 / 446.2 MB, free: 13.07 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.54e-05/0.4474, allocations: 23.92 kB / 446.2 MB, free: 13.05 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.727e-06/0.4474, allocations: 0 / 446.2 MB, free: 13.05 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.172e-05/0.4474, allocations: 0 / 446.2 MB, free: 13.05 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.797e-06/0.4474, allocations: 4 kB / 446.2 MB, free: 13.04 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.4474, allocations: 0 / 446.2 MB, free: 13.04 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002725/0.4477, allocations: 262.8 kB / 446.5 MB, free: 12.8 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.921e-05/0.4478, allocations: 88.95 kB / 446.6 MB, free: 12.7 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.572e-05/0.4478, allocations: 0 / 446.6 MB, free: 12.7 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.382e-05/0.4479, allocations: 15.92 kB / 446.6 MB, free: 12.68 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.961e-05/0.448, allocations: 23.91 kB / 446.6 MB, free: 12.66 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.442e-05/0.448, allocations: 4 kB / 446.6 MB, free: 12.66 MB / 330.7 MB Notification: Performance of sorting global known variables: time 5.574e-05/0.448, allocations: 101.9 kB / 446.7 MB, free: 12.56 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4481, allocations: 0 / 446.7 MB, free: 12.56 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002782/0.4483, allocations: 28 kB / 446.7 MB, free: 12.54 MB / 330.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: 19 (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: 2 (initialStep.newActive,step.newActive) * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.0006429/0.449, allocations: 0.8009 MB / 447.5 MB, free: 11.74 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002627/0.4493, allocations: 155.6 kB / 447.7 MB, free: 11.62 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.003e-06/0.4493, allocations: 0 / 447.7 MB, free: 11.62 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000105/0.4494, allocations: 71.12 kB / 447.8 MB, free: 11.57 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002306/0.4496, allocations: 19.23 kB / 447.8 MB, free: 11.56 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006954/0.4503, allocations: 275.7 kB / 448 MB, free: 11.29 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003475/0.4507, allocations: 0.744 MB / 448.8 MB, free: 10.52 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 8.478e-05/0.4508, allocations: 22.08 kB / 448.8 MB, free: 10.5 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.66e-05/0.4509, allocations: 61.53 kB / 448.9 MB, free: 10.47 MB / 330.7 MB Notification: Performance of SimCode: time 3.31e-07/0.4509, allocations: 0 / 448.9 MB, free: 10.47 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02176/0.4726, allocations: 3.056 MB / 451.9 MB, free: 7.418 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000192/0.4729, allocations: 143.6 kB / 452.1 MB, free: 7.223 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.648/2.121, allocations: 7.969 kB / 452.1 MB, free: 7.215 MB / 330.7 MB (rm -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant2_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant2.fmu > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat does not exist to compare? outputFormat=mat