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.001439/0.001439, allocations: 180.5 kB / 16.38 MB, free: 5.766 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.397/1.397, 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.0009591/0.0009592, allocations: 90.42 kB / 291.5 MB, free: 10.7 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003567/0.0003565, allocations: 4 kB / 351.2 MB, free: 15.02 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3187/0.3191, allocations: 50.42 MB / 401.6 MB, free: 32.56 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1121/0.4313, allocations: 76.68 MB / 478.2 MB, free: 3.773 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002519/0.4316, allocations: 67.97 kB / 478.3 MB, free: 3.707 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008408/0.44, allocations: 3.08 MB / 481.4 MB, free: 0.5977 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.845e-06/0.4401, allocations: 0 / 481.4 MB, free: 0.5977 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.074e-05/0.4401, allocations: 12 kB / 481.4 MB, free: 0.5859 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.0007822/0.4409, allocations: 461.1 kB / 481.9 MB, free: 96 kB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.757e-05/0.4409, allocations: 8.031 kB / 481.9 MB, free: 88 kB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001025/0.4411, allocations: 54.55 kB / 481.9 MB, free: 24 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.73e-05/0.4411, allocations: 23.75 kB / 481.9 MB, free: 0 / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000322/0.4415, allocations: 234.8 kB / 482.2 MB, free: 15.73 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.01e-05/0.4416, allocations: 24.55 kB / 482.2 MB, free: 15.7 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.534e-05/0.4416, allocations: 28 kB / 482.2 MB, free: 15.67 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004925/0.4421, allocations: 269.9 kB / 482.5 MB, free: 15.39 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.334e-05/0.4421, allocations: 3.938 kB / 482.5 MB, free: 15.39 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.867e-05/0.4422, allocations: 15.98 kB / 482.5 MB, free: 15.37 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.057e-06/0.4422, allocations: 4 kB / 482.5 MB, free: 15.37 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002972/0.4425, allocations: 165.6 kB / 482.7 MB, free: 15.21 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001295/0.4438, allocations: 0.9635 MB / 483.6 MB, free: 14.18 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003303/0.4441, allocations: 173.9 kB / 483.8 MB, free: 13.99 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.764e-05/0.4442, allocations: 4.188 kB / 483.8 MB, free: 13.98 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002892/0.4445, allocations: 139.7 kB / 483.9 MB, free: 13.83 MB / 362.7 MB Notification: Performance of pre-optimization done (n=24): time 1.763e-06/0.4445, allocations: 4 kB / 483.9 MB, free: 13.83 MB / 362.7 MB Notification: Performance of matching and sorting (n=24): time 0.0004892/0.445, allocations: 232.7 kB / 484.2 MB, free: 13.6 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.087e-05/0.4451, allocations: 85.11 kB / 484.3 MB, free: 13.5 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001347/0.4452, allocations: 140.4 kB / 484.4 MB, free: 13.36 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.21e-05/0.4452, allocations: 41.69 kB / 484.4 MB, free: 13.31 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.173e-05/0.4453, allocations: 140.5 kB / 484.6 MB, free: 13.17 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.598e-05/0.4454, allocations: 59.19 kB / 484.6 MB, free: 13.11 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.431e-05/0.4454, allocations: 8 kB / 484.6 MB, free: 13.1 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000142/0.4456, allocations: 330.9 kB / 485 MB, free: 12.77 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001245/0.4457, allocations: 63.97 kB / 485 MB, free: 12.71 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000171/0.4459, allocations: 136.5 kB / 485.2 MB, free: 12.54 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001436/0.446, allocations: 72.47 kB / 485.2 MB, free: 12.47 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.446, allocations: 0 / 485.2 MB, free: 12.47 MB / 362.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0004142/0.4465, allocations: 261.5 kB / 485.5 MB, free: 12.21 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.02e-05/0.4465, allocations: 4 kB / 485.5 MB, free: 12.21 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.706e-06/0.4465, allocations: 4 kB / 485.5 MB, free: 12.2 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.132e-05/0.4465, allocations: 4 kB / 485.5 MB, free: 12.2 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001472/0.4467, allocations: 35.86 kB / 485.5 MB, free: 12.16 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.387e-05/0.4467, allocations: 7.953 kB / 485.5 MB, free: 12.16 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001178/0.4468, allocations: 23.89 kB / 485.6 MB, free: 12.13 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.379e-05/0.4469, allocations: 12 kB / 485.6 MB, free: 12.12 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,greaterEqual.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.0001856/0.4471, allocations: 162.4 kB / 485.7 MB, free: 11.95 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.007e-05/0.4471, allocations: 11.91 kB / 485.7 MB, free: 11.94 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003732/0.4475, allocations: 190.3 kB / 485.9 MB, free: 11.75 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.432e-06/0.4475, allocations: 4 kB / 485.9 MB, free: 11.74 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.113e-06/0.4475, allocations: 3.984 kB / 485.9 MB, free: 11.74 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.037e-06/0.4475, allocations: 7.938 kB / 485.9 MB, free: 11.73 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008189/0.4484, allocations: 0.5891 MB / 486.5 MB, free: 11.08 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.414e-06/0.4484, allocations: 0 / 486.5 MB, free: 11.08 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.644e-05/0.4484, allocations: 12 kB / 486.5 MB, free: 11.07 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.484e-06/0.4485, allocations: 7.953 kB / 486.6 MB, free: 11.06 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.829e-05/0.4485, allocations: 7.984 kB / 486.6 MB, free: 11.05 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.76e-06/0.4485, allocations: 7.938 kB / 486.6 MB, free: 11.05 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.4485, allocations: 3.938 kB / 486.6 MB, free: 11.04 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003084/0.4488, allocations: 298.2 kB / 486.9 MB, free: 10.73 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.583e-05/0.4489, allocations: 92.91 kB / 487 MB, free: 10.62 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.174e-05/0.4489, allocations: 8 kB / 487 MB, free: 10.61 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.891e-05/0.449, allocations: 11.92 kB / 487 MB, free: 10.6 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.094e-05/0.4491, allocations: 23.97 kB / 487 MB, free: 10.57 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.763e-05/0.4491, allocations: 8 kB / 487 MB, free: 10.57 MB / 362.7 MB Notification: Performance of sorting global known variables: time 5.05e-05/0.4492, allocations: 95.27 kB / 487.1 MB, free: 10.47 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4492, allocations: 4 kB / 487.1 MB, free: 10.47 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000297/0.4495, allocations: 43.98 kB / 487.1 MB, free: 10.43 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,greaterEqual.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.0007346/0.4502, allocations: 0.9084 MB / 488.1 MB, free: 9.484 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003499/0.4506, allocations: 187.7 kB / 488.2 MB, free: 9.301 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.4506, allocations: 0 / 488.2 MB, free: 9.301 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001416/0.4508, allocations: 79.92 kB / 488.3 MB, free: 9.223 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002372/0.451, allocations: 22.91 kB / 488.3 MB, free: 9.203 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002745/0.4538, allocations: 2.349 MB / 490.7 MB, free: 6.758 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004477/0.4542, allocations: 0.7446 MB / 491.4 MB, free: 5.988 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.000103/0.4543, allocations: 33.94 kB / 491.5 MB, free: 5.957 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001182/0.4545, allocations: 59.41 kB / 491.5 MB, free: 5.898 MB / 362.7 MB Notification: Performance of SimCode: time 4.91e-07/0.4545, allocations: 0 / 491.5 MB, free: 5.898 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01944/0.4739, allocations: 3.366 MB / 494.9 MB, free: 2.668 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003168/0.4743, allocations: 176.4 kB / 495.1 MB, free: 2.43 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.716/2.191, allocations: 3.938 kB / 495.1 MB, free: 2.426 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