Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.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,fileNamePrefix="Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample,fileNamePrefix="Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample",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.001989/0.001989, allocations: 175.6 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.563/1.563, allocations: 221.3 MB / 235.5 MB, free: 2.953 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.0008866/0.0008864, allocations: 83.89 kB / 286.5 MB, free: 240 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.029e-05/3.032e-05, allocations: 0 / 343.9 MB, free: 4.238 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1115/0.1115, allocations: 50.41 MB / 394.3 MB, free: 1.785 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3451/0.4566, allocations: 76 MB / 470.3 MB, free: 11.5 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001905/0.4569, allocations: 63.95 kB / 470.4 MB, free: 11.44 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00742/0.4643, allocations: 2.909 MB / 473.3 MB, free: 8.512 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.462e-06/0.4643, allocations: 0 / 473.3 MB, free: 8.512 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.422e-05/0.4644, allocations: 4 kB / 473.3 MB, free: 8.508 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: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0005401/0.4649, allocations: 435.6 kB / 473.7 MB, free: 8.039 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.572e-05/0.465, allocations: 12.03 kB / 473.7 MB, free: 8.027 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.557e-05/0.465, allocations: 58.55 kB / 473.8 MB, free: 7.961 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.643e-05/0.4651, allocations: 19.81 kB / 473.8 MB, free: 7.941 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002633/0.4654, allocations: 222.8 kB / 474 MB, free: 7.684 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.518e-05/0.4654, allocations: 20.56 kB / 474.1 MB, free: 7.66 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.926e-05/0.4655, allocations: 27.98 kB / 474.1 MB, free: 7.633 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004141/0.4659, allocations: 243.4 kB / 474.3 MB, free: 7.383 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.152e-05/0.4659, allocations: 3.938 kB / 474.3 MB, free: 7.379 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.052e-05/0.4659, allocations: 4 kB / 474.3 MB, free: 7.375 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.717e-06/0.4659, allocations: 8 kB / 474.3 MB, free: 7.367 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002706/0.4662, allocations: 149.7 kB / 474.5 MB, free: 7.223 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00106/0.4673, allocations: 0.6899 MB / 475.2 MB, free: 6.473 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000322/0.4676, allocations: 175.4 kB / 475.3 MB, free: 6.293 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001236/0.4678, allocations: 81.23 kB / 475.4 MB, free: 6.211 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.524e-05/0.4678, allocations: 192 / 475.4 MB, free: 6.211 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002081/0.468, allocations: 120.4 kB / 475.5 MB, free: 6.082 MB / 346.7 MB Notification: Performance of pre-optimization done (n=24): time 1.353e-06/0.468, allocations: 0 / 475.5 MB, free: 6.082 MB / 346.7 MB Notification: Performance of matching and sorting (n=24): time 0.000366/0.4684, allocations: 164.6 kB / 475.7 MB, free: 5.918 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.886e-05/0.4685, allocations: 51.41 kB / 475.7 MB, free: 5.855 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001461/0.4686, allocations: 148.8 kB / 475.9 MB, free: 5.699 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.699e-05/0.4687, allocations: 37.7 kB / 475.9 MB, free: 5.656 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001066/0.4688, allocations: 124.4 kB / 476.1 MB, free: 5.531 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.088e-05/0.4688, allocations: 63.25 kB / 476.1 MB, free: 5.469 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.159e-05/0.4689, allocations: 4 kB / 476.1 MB, free: 5.465 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001673/0.469, allocations: 334.8 kB / 476.4 MB, free: 5.129 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000173/0.4692, allocations: 56.66 kB / 476.5 MB, free: 5.07 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001655/0.4694, allocations: 124.1 kB / 476.6 MB, free: 4.926 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001417/0.4695, allocations: 71.95 kB / 476.7 MB, free: 4.855 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.4695, allocations: 0 / 476.7 MB, free: 4.855 MB / 346.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003694/0.4699, allocations: 229.2 kB / 476.9 MB, free: 4.625 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.331e-05/0.47, allocations: 8.219 kB / 476.9 MB, free: 4.617 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.969e-06/0.47, allocations: 4 kB / 476.9 MB, free: 4.613 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.464e-05/0.47, allocations: 4 kB / 476.9 MB, free: 4.609 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001481/0.4702, allocations: 35.86 kB / 477 MB, free: 4.574 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.371e-05/0.4702, allocations: 3.938 kB / 477 MB, free: 4.57 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001002/0.4703, allocations: 19.92 kB / 477 MB, free: 4.551 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.016e-05/0.4703, allocations: 19.95 kB / 477 MB, free: 4.531 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 31 ($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,transition2.fire,$PRE.transition2.t_start,transition2.t_start,stateGraphRoot.activeSteps,stateGraphRoot.resume,stateGraphRoot.suspend,transition2.condition,transition1.condition) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 39 * 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.0001201/0.4705, allocations: 124 kB / 477.1 MB, free: 4.402 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.889e-05/0.4705, allocations: 23.81 kB / 477.2 MB, free: 4.379 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003722/0.4709, allocations: 190.2 kB / 477.3 MB, free: 4.184 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.134e-06/0.4709, allocations: 4 kB / 477.3 MB, free: 4.18 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.4709, allocations: 0 / 477.3 MB, free: 4.18 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.242e-06/0.4709, allocations: 0 / 477.3 MB, free: 4.18 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007807/0.4717, allocations: 0.5649 MB / 477.9 MB, free: 3.559 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.4717, allocations: 0 / 477.9 MB, free: 3.559 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.931e-05/0.4718, allocations: 19.94 kB / 477.9 MB, free: 3.539 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.367e-06/0.4718, allocations: 0 / 477.9 MB, free: 3.539 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.651e-05/0.4718, allocations: 7.984 kB / 477.9 MB, free: 3.531 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.311e-05/0.4718, allocations: 7.953 kB / 477.9 MB, free: 3.523 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.4719, allocations: 0 / 477.9 MB, free: 3.523 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003095/0.4722, allocations: 267.7 kB / 478.2 MB, free: 3.246 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.479e-05/0.4722, allocations: 96.84 kB / 478.3 MB, free: 3.133 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.513e-05/0.4723, allocations: 11.94 kB / 478.3 MB, free: 3.121 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.557e-05/0.4724, allocations: 8 kB / 478.3 MB, free: 3.113 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.785e-05/0.4724, allocations: 31.91 kB / 478.4 MB, free: 3.082 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.749e-05/0.4725, allocations: 8 kB / 478.4 MB, free: 3.074 MB / 346.7 MB Notification: Performance of sorting global known variables: time 6.361e-05/0.4725, allocations: 92.41 kB / 478.4 MB, free: 2.984 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.11e-07/0.4725, allocations: 0 / 478.4 MB, free: 2.984 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002765/0.4728, allocations: 47.98 kB / 478.5 MB, free: 2.938 MB / 346.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 (transition2.enableFire,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,step.active,transition2.fire,transition2.t_start,stateGraphRoot.activeSteps) * Number of discrete states: 2 (initialStep.newActive,step.newActive) * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 22 * 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.0006613/0.4735, allocations: 0.8101 MB / 479.3 MB, free: 2.102 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0003029/0.4738, allocations: 175.8 kB / 479.5 MB, free: 1.93 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.4738, allocations: 3.938 kB / 479.5 MB, free: 1.926 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001285/0.474, allocations: 75.94 kB / 479.6 MB, free: 1.852 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002003/0.4742, allocations: 24.38 kB / 479.6 MB, free: 1.828 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000625/0.4748, allocations: 292.7 kB / 479.9 MB, free: 1.508 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003392/0.4751, allocations: 0.7326 MB / 480.6 MB, free: 0.75 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 8.152e-05/0.4752, allocations: 30 kB / 480.6 MB, free: 0.7188 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001151/0.4754, allocations: 63.42 kB / 480.7 MB, free: 0.6562 MB / 346.7 MB Notification: Performance of SimCode: time 3.21e-07/0.4754, allocations: 0 / 480.7 MB, free: 0.6562 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01555/0.4909, allocations: 3.307 MB / 484 MB, free: 13.46 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002027/0.4912, allocations: 151.4 kB / 484.1 MB, free: 13.23 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.701/2.193, allocations: 3.125 kB / 484.1 MB, free: 13.23 MB / 362.7 MB (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_fmu --startTime=0 --stopTime=5.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample.fmu > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_res.mat does not exist to compare? outputFormat=mat