Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant3,fileNamePrefix="Modelica_3_2_3_cpp_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.001576/0.001575, allocations: 181.3 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.392/2.392, 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.001078/0.001078, allocations: 86.64 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.167e-05/4.18e-05, allocations: 0 / 321.6 MB, free: 17.76 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09658/0.09668, allocations: 47.58 MB / 369.2 MB, free: 2.117 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4245/0.5213, allocations: 75.71 MB / 444.9 MB, free: 1.434 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002445/0.5216, allocations: 66.16 kB / 445 MB, free: 1.402 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01212/0.5337, allocations: 2.968 MB / 447.9 MB, free: 14.82 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.503e-06/0.5338, allocations: 4 kB / 447.9 MB, free: 14.82 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.772e-05/0.5338, allocations: 4 kB / 447.9 MB, free: 14.82 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0007013/0.5345, allocations: 449.8 kB / 448.4 MB, free: 14.35 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.162e-05/0.5346, allocations: 12.03 kB / 448.4 MB, free: 14.34 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.323e-05/0.5347, allocations: 65.72 kB / 448.4 MB, free: 14.28 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.834e-05/0.5348, allocations: 23.72 kB / 448.5 MB, free: 14.26 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000329/0.5351, allocations: 226.1 kB / 448.7 MB, free: 14.01 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.296e-05/0.5352, allocations: 20.38 kB / 448.7 MB, free: 14 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.836e-05/0.5352, allocations: 31.75 kB / 448.7 MB, free: 13.98 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006103/0.5359, allocations: 262.6 kB / 449 MB, free: 13.77 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.71e-05/0.5359, allocations: 3.984 kB / 449 MB, free: 13.77 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.112e-05/0.5359, allocations: 7.5 kB / 449 MB, free: 13.77 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.331e-05/0.536, allocations: 8 kB / 449 MB, free: 13.76 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004471/0.5364, allocations: 155.6 kB / 449.2 MB, free: 13.66 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001574/0.538, allocations: 0.9578 MB / 450.1 MB, free: 12.76 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000381/0.5384, allocations: 158.8 kB / 450.3 MB, free: 12.64 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001713/0.5386, allocations: 73.48 kB / 450.4 MB, free: 12.59 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.742e-05/0.5386, allocations: 192 / 450.4 MB, free: 12.59 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002696/0.5389, allocations: 109.8 kB / 450.5 MB, free: 12.49 MB / 330.7 MB Notification: Performance of pre-optimization done (n=23): time 2.325e-06/0.5389, allocations: 0 / 450.5 MB, free: 12.49 MB / 330.7 MB Notification: Performance of matching and sorting (n=23): time 0.0004689/0.5394, allocations: 160.1 kB / 450.6 MB, free: 12.36 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.062e-05/0.5395, allocations: 59.39 kB / 450.7 MB, free: 12.29 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000166/0.5397, allocations: 146.2 kB / 450.8 MB, free: 12.16 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.249e-05/0.5397, allocations: 41.14 kB / 450.9 MB, free: 12.11 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001425/0.5399, allocations: 208.3 kB / 451.1 MB, free: 11.92 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.888e-05/0.54, allocations: 53.53 kB / 451.1 MB, free: 11.88 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.943e-05/0.54, allocations: 10.69 kB / 451.1 MB, free: 11.87 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001492/0.5402, allocations: 322.4 kB / 451.4 MB, free: 11.55 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001773/0.5403, allocations: 63.03 kB / 451.5 MB, free: 11.51 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000248/0.5406, allocations: 140.2 kB / 451.6 MB, free: 11.37 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002245/0.5408, allocations: 63.95 kB / 451.7 MB, free: 11.32 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.743e-06/0.5409, allocations: 4 kB / 451.7 MB, free: 11.32 MB / 330.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0005757/0.5415, allocations: 244.9 kB / 451.9 MB, free: 11.12 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.288e-05/0.5415, allocations: 8 kB / 451.9 MB, free: 11.11 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.11e-05/0.5415, allocations: 4 kB / 452 MB, free: 11.11 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.228e-05/0.5415, allocations: 4.281 kB / 452 MB, free: 11.1 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000247/0.5418, allocations: 34.92 kB / 452 MB, free: 11.07 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.652e-05/0.5418, allocations: 7.984 kB / 452 MB, free: 11.06 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001691/0.542, allocations: 22.28 kB / 452 MB, free: 11.05 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.038e-05/0.5421, allocations: 12 kB / 452 MB, free: 11.04 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 0.0001371/0.5422, allocations: 126 kB / 452.2 MB, free: 10.91 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.703e-05/0.5423, allocations: 15.84 kB / 452.2 MB, free: 10.9 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000484/0.5428, allocations: 193.6 kB / 452.4 MB, free: 10.75 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.769e-06/0.5428, allocations: 11.98 kB / 452.4 MB, free: 10.74 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.5428, allocations: 0 / 452.4 MB, free: 10.74 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.883e-06/0.5428, allocations: 0 / 452.4 MB, free: 10.74 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001083/0.5439, allocations: 0.5858 MB / 453 MB, free: 10.18 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.407e-06/0.5439, allocations: 4 kB / 453 MB, free: 10.17 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001305/0.5441, allocations: 8 kB / 453 MB, free: 10.16 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.035e-06/0.5441, allocations: 7.938 kB / 453 MB, free: 10.16 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.291e-05/0.5441, allocations: 11.55 kB / 453 MB, free: 10.15 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.386e-06/0.5441, allocations: 0 / 453 MB, free: 10.15 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/0.5442, allocations: 3.938 kB / 453 MB, free: 10.14 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004353/0.5446, allocations: 268.3 kB / 453.3 MB, free: 9.898 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.194e-05/0.5447, allocations: 88.95 kB / 453.3 MB, free: 9.793 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.16e-05/0.5447, allocations: 9.609 kB / 453.4 MB, free: 9.789 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001405/0.5449, allocations: 7.938 kB / 453.4 MB, free: 9.785 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001013/0.545, allocations: 19.97 kB / 453.4 MB, free: 9.766 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.528e-05/0.5451, allocations: 15.86 kB / 453.4 MB, free: 9.754 MB / 330.7 MB Notification: Performance of sorting global known variables: time 8.094e-05/0.5451, allocations: 94.78 kB / 453.5 MB, free: 9.664 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.5452, allocations: 0 / 453.5 MB, free: 9.664 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004182/0.5456, allocations: 46.25 kB / 453.5 MB, free: 9.629 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.0008292/0.5464, allocations: 0.8151 MB / 454.3 MB, free: 8.824 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004621/0.5469, allocations: 179.1 kB / 454.5 MB, free: 8.691 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.484e-06/0.5469, allocations: 0 / 454.5 MB, free: 8.691 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001857/0.5471, allocations: 77.11 kB / 454.6 MB, free: 8.633 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002676/0.5474, allocations: 14.94 kB / 454.6 MB, free: 8.625 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009311/0.5483, allocations: 318.4 kB / 454.9 MB, free: 8.309 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004141/0.5488, allocations: 0.7404 MB / 455.7 MB, free: 7.543 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000153/0.5489, allocations: 63.98 kB / 455.7 MB, free: 7.516 MB / 330.7 MB Notification: Performance of SimCode: time 1.092e-06/0.549, allocations: 0 / 455.7 MB, free: 7.516 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.618/3.167, allocations: 3.079 MB / 458.8 MB, free: 4.469 MB / 330.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_StateGraph_Examples_FirstExample_Variant3_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_StateGraph_Examples_FirstExample_Variant3.fmu > Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat does not exist to compare? outputFormat=mat