Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample.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,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_StateGraph_Examples_FirstExample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_StateGraph_Examples_FirstExample",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.002385/0.002385, allocations: 181.6 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.307/2.307, allocations: 205.2 MB / 219.4 MB, free: 14.21 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001616/0.001616, allocations: 90.64 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.84e-05/3.858e-05, allocations: 4 kB / 321.6 MB, free: 17.77 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0991/0.0992, allocations: 47.57 MB / 369.2 MB, free: 2.125 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4119/0.5112, allocations: 75.07 MB / 444.2 MB, free: 2.105 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002714/0.5115, allocations: 64.16 kB / 444.3 MB, free: 2.074 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.012/0.5236, allocations: 2.836 MB / 447.1 MB, free: 15.6 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.084e-06/0.5236, allocations: 0 / 447.1 MB, free: 15.6 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.023e-05/0.5236, allocations: 4 kB / 447.1 MB, free: 15.6 MB / 330.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.0008163/0.5245, allocations: 441.8 kB / 447.6 MB, free: 15.14 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.622e-05/0.5245, allocations: 12.03 kB / 447.6 MB, free: 15.12 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.596e-05/0.5246, allocations: 67.84 kB / 447.7 MB, free: 15.06 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.222e-05/0.5247, allocations: 19.06 kB / 447.7 MB, free: 15.05 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003543/0.5251, allocations: 223.2 kB / 447.9 MB, free: 14.8 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.261e-05/0.5252, allocations: 22.94 kB / 447.9 MB, free: 14.79 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.104e-05/0.5252, allocations: 23.12 kB / 447.9 MB, free: 14.77 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005948/0.5258, allocations: 240.3 kB / 448.2 MB, free: 14.59 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.436e-05/0.5259, allocations: 0 / 448.2 MB, free: 14.59 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.175e-05/0.5259, allocations: 7 kB / 448.2 MB, free: 14.59 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.803e-05/0.5259, allocations: 8 kB / 448.2 MB, free: 14.58 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004386/0.5264, allocations: 151 kB / 448.3 MB, free: 14.48 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001485/0.5279, allocations: 0.6959 MB / 449 MB, free: 13.85 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000436/0.5284, allocations: 162.1 kB / 449.2 MB, free: 13.73 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002241/0.5286, allocations: 89.02 kB / 449.3 MB, free: 13.67 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.618e-05/0.5287, allocations: 192 / 449.3 MB, free: 13.67 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002926/0.529, allocations: 123.6 kB / 449.4 MB, free: 13.56 MB / 330.7 MB Notification: Performance of pre-optimization done (n=24): time 2.314e-06/0.529, allocations: 0 / 449.4 MB, free: 13.56 MB / 330.7 MB Notification: Performance of matching and sorting (n=24): time 0.0005001/0.5295, allocations: 159.2 kB / 449.6 MB, free: 13.43 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.634e-05/0.5296, allocations: 58.41 kB / 449.6 MB, free: 13.36 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000177/0.5298, allocations: 133.3 kB / 449.7 MB, free: 13.24 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.574e-05/0.5298, allocations: 39.77 kB / 449.8 MB, free: 13.2 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001398/0.53, allocations: 198.6 kB / 450 MB, free: 13.01 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.19e-05/0.53, allocations: 62.44 kB / 450 MB, free: 12.96 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.312e-05/0.5301, allocations: 11.38 kB / 450 MB, free: 12.95 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001536/0.5302, allocations: 334.1 kB / 450.4 MB, free: 12.62 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001758/0.5304, allocations: 55.91 kB / 450.4 MB, free: 12.59 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002374/0.5307, allocations: 122.9 kB / 450.5 MB, free: 12.47 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001995/0.5309, allocations: 66.64 kB / 450.6 MB, free: 12.42 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.007e-06/0.5309, allocations: 0 / 450.6 MB, free: 12.42 MB / 330.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005762/0.5315, allocations: 231.1 kB / 450.8 MB, free: 12.23 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.456e-05/0.5315, allocations: 12.03 kB / 450.8 MB, free: 12.22 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.131e-05/0.5316, allocations: 3.953 kB / 450.9 MB, free: 12.22 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.378e-05/0.5316, allocations: 4 kB / 450.9 MB, free: 12.21 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002518/0.5319, allocations: 31.8 kB / 450.9 MB, free: 12.19 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.43e-05/0.5319, allocations: 4 kB / 450.9 MB, free: 12.18 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001705/0.5321, allocations: 23.7 kB / 450.9 MB, free: 12.16 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.126e-05/0.5321, allocations: 8 kB / 450.9 MB, free: 12.16 MB / 330.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.0001513/0.5323, allocations: 139.7 kB / 451.1 MB, free: 12.02 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.531e-05/0.5323, allocations: 11.81 kB / 451.1 MB, free: 12.01 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005504/0.5329, allocations: 193.9 kB / 451.3 MB, free: 11.86 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.205e-06/0.5329, allocations: 3.953 kB / 451.3 MB, free: 11.86 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.726e-06/0.533, allocations: 3.984 kB / 451.3 MB, free: 11.85 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.112e-06/0.533, allocations: 0 / 451.3 MB, free: 11.85 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00116/0.5341, allocations: 0.5634 MB / 451.8 MB, free: 11.32 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.492e-06/0.5342, allocations: 4 kB / 451.8 MB, free: 11.31 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001499/0.5343, allocations: 15.94 kB / 451.9 MB, free: 11.3 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.173e-06/0.5343, allocations: 0 / 451.9 MB, free: 11.3 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.567e-05/0.5344, allocations: 11.67 kB / 451.9 MB, free: 11.29 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.198e-06/0.5344, allocations: 0 / 451.9 MB, free: 11.29 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.884e-06/0.5344, allocations: 0 / 451.9 MB, free: 11.29 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004485/0.5349, allocations: 269.6 kB / 452.1 MB, free: 11.05 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.919e-05/0.535, allocations: 100.8 kB / 452.2 MB, free: 10.93 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.128e-05/0.535, allocations: 11.67 kB / 452.2 MB, free: 10.92 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001379/0.5352, allocations: 4 kB / 452.2 MB, free: 10.92 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001001/0.5353, allocations: 23.89 kB / 452.3 MB, free: 10.9 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.615e-05/0.5353, allocations: 15.69 kB / 452.3 MB, free: 10.89 MB / 330.7 MB Notification: Performance of sorting global known variables: time 8.399e-05/0.5354, allocations: 95.66 kB / 452.4 MB, free: 10.8 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.5354, allocations: 0 / 452.4 MB, free: 10.8 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004111/0.5358, allocations: 39.5 kB / 452.4 MB, free: 10.77 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 (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.0009148/0.5368, allocations: 0.8274 MB / 453.2 MB, free: 9.953 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004881/0.5373, allocations: 166.1 kB / 453.4 MB, free: 9.832 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.477e-06/0.5373, allocations: 0 / 453.4 MB, free: 9.832 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000215/0.5375, allocations: 87.36 kB / 453.5 MB, free: 9.766 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000284/0.5378, allocations: 27.8 kB / 453.5 MB, free: 9.746 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009374/0.5388, allocations: 309.5 kB / 453.8 MB, free: 9.445 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004042/0.5392, allocations: 0.7363 MB / 454.6 MB, free: 8.684 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001515/0.5394, allocations: 61.84 kB / 454.6 MB, free: 8.656 MB / 330.7 MB Notification: Performance of SimCode: time 1.002e-06/0.5394, allocations: 4 kB / 454.6 MB, free: 8.652 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.508/3.047, allocations: 2.995 MB / 457.6 MB, free: 5.691 MB / 330.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_StateGraph_Examples_FirstExample_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_StateGraph_Examples_FirstExample.fmu > Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_res.mat does not exist to compare? outputFormat=mat