Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.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_Variant3,fileNamePrefix="Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant3,fileNamePrefix="Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant3",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.001004/0.001004, allocations: 177.7 kB / 8.698 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.457/1.457, allocations: 205.3 MB / 214.4 MB, free: 1.738 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.0009715/0.0009714, allocations: 90.36 kB / 262.5 MB, free: 1.676 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.867e-05/1.871e-05, allocations: 0 / 315.6 MB, free: 22.65 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1133/0.1133, allocations: 47.6 MB / 363.2 MB, free: 6.992 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3803/0.4937, allocations: 75.3 MB / 438.5 MB, free: 4.074 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001955/0.4939, allocations: 62.72 kB / 438.5 MB, free: 4.043 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007416/0.5014, allocations: 2.922 MB / 441.5 MB, free: 1.551 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.313e-06/0.5014, allocations: 8 kB / 441.5 MB, free: 1.543 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.209e-05/0.5014, allocations: 8 kB / 441.5 MB, free: 1.535 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.0004531/0.5019, allocations: 441.6 kB / 441.9 MB, free: 1.074 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.626e-05/0.5019, allocations: 8.031 kB / 441.9 MB, free: 1.066 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.268e-05/0.502, allocations: 23.72 kB / 441.9 MB, free: 1.043 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002187/0.5022, allocations: 225.3 kB / 442.2 MB, free: 0.8008 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.466e-05/0.5022, allocations: 8 kB / 442.2 MB, free: 0.793 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.195e-05/0.5023, allocations: 16 kB / 442.2 MB, free: 0.7773 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002523/0.5025, allocations: 144.5 kB / 442.3 MB, free: 0.6875 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003163/0.5029, allocations: 226.7 kB / 442.5 MB, free: 0.4922 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.019e-05/0.5029, allocations: 0 / 442.5 MB, free: 0.4922 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.135e-05/0.5029, allocations: 7.984 kB / 442.5 MB, free: 496 kB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.734e-06/0.5029, allocations: 8 kB / 442.6 MB, free: 488 kB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009328/0.5039, allocations: 0.8966 MB / 443.4 MB, free: 15.64 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002031/0.5041, allocations: 143.1 kB / 443.6 MB, free: 15.53 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.499e-05/0.5042, allocations: 66.19 kB / 443.7 MB, free: 15.48 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.957e-05/0.5042, allocations: 6.859 kB / 443.7 MB, free: 15.48 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001713/0.5044, allocations: 108.9 kB / 443.8 MB, free: 15.38 MB / 330.7 MB Notification: Performance of pre-optimization done (n=23): time 1.523e-06/0.5044, allocations: 0 / 443.8 MB, free: 15.38 MB / 330.7 MB Notification: Performance of matching and sorting (n=23): time 0.0002586/0.5046, allocations: 148.8 kB / 443.9 MB, free: 15.25 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.067e-05/0.5047, allocations: 55.41 kB / 444 MB, free: 15.19 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001025/0.5048, allocations: 138.2 kB / 444.1 MB, free: 15.06 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.689e-05/0.5048, allocations: 41.44 kB / 444.1 MB, free: 15.02 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.987e-05/0.5049, allocations: 134.1 kB / 444.3 MB, free: 14.89 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.161e-05/0.505, allocations: 61.91 kB / 444.3 MB, free: 14.84 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.197e-06/0.505, allocations: 0 / 444.3 MB, free: 14.84 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001175/0.5051, allocations: 329.1 kB / 444.7 MB, free: 14.52 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.94e-05/0.5052, allocations: 47.03 kB / 444.7 MB, free: 14.48 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001284/0.5053, allocations: 129.2 kB / 444.8 MB, free: 14.36 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.942e-05/0.5054, allocations: 59.34 kB / 444.9 MB, free: 14.32 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.5054, allocations: 0 / 444.9 MB, free: 14.32 MB / 330.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.000276/0.5057, allocations: 216.8 kB / 445.1 MB, free: 14.13 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.37e-05/0.5057, allocations: 11.95 kB / 445.1 MB, free: 14.12 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.31e-06/0.5057, allocations: 3.938 kB / 445.1 MB, free: 14.12 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.432e-05/0.5058, allocations: 4 kB / 445.1 MB, free: 14.11 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001324/0.5059, allocations: 35.61 kB / 445.1 MB, free: 14.08 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.819e-06/0.5059, allocations: 7.984 kB / 445.2 MB, free: 14.07 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.687e-05/0.506, allocations: 12.12 kB / 445.2 MB, free: 14.06 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.789e-05/0.506, allocations: 16 kB / 445.2 MB, free: 14.05 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,SetBoolean1.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 9.835e-05/0.5061, allocations: 127.1 kB / 445.3 MB, free: 13.92 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001894/0.5063, allocations: 142.9 kB / 445.4 MB, free: 13.8 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.883e-05/0.5064, allocations: 15.77 kB / 445.5 MB, free: 13.78 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002747/0.5067, allocations: 169 kB / 445.6 MB, free: 13.64 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.938e-06/0.5067, allocations: 4 kB / 445.6 MB, free: 13.64 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.878e-06/0.5067, allocations: 0 / 445.6 MB, free: 13.64 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.027e-06/0.5067, allocations: 0 / 445.6 MB, free: 13.64 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005602/0.5073, allocations: 0.5239 MB / 446.2 MB, free: 13.14 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.5073, allocations: 0 / 446.2 MB, free: 13.14 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.397e-05/0.5073, allocations: 26.98 kB / 446.2 MB, free: 13.11 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.434e-06/0.5074, allocations: 0 / 446.2 MB, free: 13.11 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.195e-05/0.5074, allocations: 4 kB / 446.2 MB, free: 13.11 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.382e-06/0.5074, allocations: 0 / 446.2 MB, free: 13.11 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.824e-06/0.5074, allocations: 0 / 446.2 MB, free: 13.11 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002462/0.5076, allocations: 261.6 kB / 446.4 MB, free: 12.87 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.046e-05/0.5077, allocations: 92.86 kB / 446.5 MB, free: 12.76 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.25e-05/0.5077, allocations: 0 / 446.5 MB, free: 12.76 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.978e-05/0.5078, allocations: 4 kB / 446.5 MB, free: 12.75 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.831e-05/0.5079, allocations: 31.08 kB / 446.6 MB, free: 12.73 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.284e-05/0.5079, allocations: 4 kB / 446.6 MB, free: 12.72 MB / 330.7 MB Notification: Performance of sorting global known variables: time 4.215e-05/0.5079, allocations: 90.22 kB / 446.7 MB, free: 12.64 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.508, allocations: 8 kB / 446.7 MB, free: 12.63 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002759/0.5082, allocations: 35.98 kB / 446.7 MB, free: 12.6 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,SetBoolean1.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.0005219/0.5088, allocations: 0.7906 MB / 447.5 MB, free: 11.81 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002338/0.509, allocations: 162.2 kB / 447.7 MB, free: 11.7 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.513e-06/0.509, allocations: 4.062 kB / 447.7 MB, free: 11.69 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 8.98e-05/0.5091, allocations: 67.69 kB / 447.7 MB, free: 11.64 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001779/0.5093, allocations: 11.98 kB / 447.7 MB, free: 11.63 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005576/0.5099, allocations: 271 kB / 448 MB, free: 11.36 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003128/0.5102, allocations: 0.7478 MB / 448.7 MB, free: 10.59 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 7.86e-05/0.5103, allocations: 22.06 kB / 448.8 MB, free: 10.57 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.359e-05/0.5104, allocations: 67.78 kB / 448.8 MB, free: 10.54 MB / 330.7 MB Notification: Performance of SimCode: time 3.21e-07/0.5104, allocations: 0 / 448.8 MB, free: 10.54 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02197/0.5324, allocations: 3.029 MB / 451.9 MB, free: 7.508 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001948/0.5326, allocations: 148.3 kB / 452 MB, free: 7.309 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.745/2.278, allocations: 0 / 452 MB, free: 7.309 MB / 330.7 MB (rm -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant3_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant3.fmu > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat does not exist to compare? outputFormat=mat