Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2.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_Variant2,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant2,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_StateGraph_Examples_FirstExample_Variant2",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.00244/0.002439, 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.109/2.109, allocations: 205.2 MB / 219.4 MB, free: 14.27 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.001143/0.001143, allocations: 94.58 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.304e-05/4.323e-05, allocations: 11.98 kB / 321.6 MB, free: 17.75 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.101/0.1011, allocations: 47.57 MB / 369.2 MB, free: 2.117 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4249/0.5261, allocations: 75.7 MB / 444.9 MB, free: 1.508 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002408/0.5264, allocations: 64.53 kB / 444.9 MB, free: 1.477 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01305/0.5395, allocations: 2.999 MB / 447.9 MB, free: 14.88 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.475e-06/0.5395, allocations: 0 / 447.9 MB, free: 14.88 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.137e-05/0.5396, allocations: 8 kB / 447.9 MB, free: 14.87 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.0008407/0.5404, allocations: 453.7 kB / 448.4 MB, free: 14.39 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.533e-05/0.5405, allocations: 12.02 kB / 448.4 MB, free: 14.38 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001022/0.5406, allocations: 57.98 kB / 448.5 MB, free: 14.33 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.084e-05/0.5407, allocations: 23.72 kB / 448.5 MB, free: 14.3 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003513/0.541, allocations: 222 kB / 448.7 MB, free: 14.06 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.246e-05/0.5411, allocations: 23.75 kB / 448.7 MB, free: 14.05 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.486e-05/0.5412, allocations: 27 kB / 448.7 MB, free: 14.03 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006414/0.5418, allocations: 273.3 kB / 449 MB, free: 13.82 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.568e-05/0.5419, allocations: 0 / 449 MB, free: 13.82 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.488e-05/0.5419, allocations: 10.31 kB / 449 MB, free: 13.81 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.17e-05/0.5419, allocations: 4 kB / 449 MB, free: 13.81 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004554/0.5424, allocations: 154.7 kB / 449.2 MB, free: 13.71 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001768/0.5442, allocations: 0.9731 MB / 450.2 MB, free: 12.79 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004031/0.5446, allocations: 143.3 kB / 450.3 MB, free: 12.69 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001858/0.5449, allocations: 78.94 kB / 450.4 MB, free: 12.63 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.108e-05/0.5449, allocations: 8.125 kB / 450.4 MB, free: 12.62 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002748/0.5452, allocations: 109.1 kB / 450.5 MB, free: 12.53 MB / 330.7 MB Notification: Performance of pre-optimization done (n=23): time 3.216e-06/0.5452, allocations: 0 / 450.5 MB, free: 12.53 MB / 330.7 MB Notification: Performance of matching and sorting (n=23): time 0.0004861/0.5457, allocations: 158.4 kB / 450.6 MB, free: 12.4 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.211e-05/0.5458, allocations: 59.34 kB / 450.7 MB, free: 12.33 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001812/0.546, allocations: 145.2 kB / 450.8 MB, free: 12.2 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.032e-05/0.546, allocations: 36.83 kB / 450.9 MB, free: 12.16 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001495/0.5462, allocations: 221.6 kB / 451.1 MB, free: 11.95 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.773e-05/0.5463, allocations: 50.59 kB / 451.1 MB, free: 11.91 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.019e-05/0.5463, allocations: 11.38 kB / 451.1 MB, free: 11.91 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.000146/0.5465, allocations: 322.4 kB / 451.5 MB, free: 11.59 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001953/0.5467, allocations: 57.47 kB / 451.5 MB, free: 11.55 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002555/0.5469, allocations: 142.6 kB / 451.7 MB, free: 11.41 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002054/0.5472, allocations: 65.95 kB / 451.7 MB, free: 11.36 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.913e-06/0.5472, allocations: 3.953 kB / 451.7 MB, free: 11.35 MB / 330.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0005887/0.5478, allocations: 247.2 kB / 452 MB, free: 11.15 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.454e-05/0.5478, allocations: 4 kB / 452 MB, free: 11.15 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.299e-05/0.5478, allocations: 4 kB / 452 MB, free: 11.14 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.325e-05/0.5479, allocations: 7.938 kB / 452 MB, free: 11.14 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002598/0.5481, allocations: 31.2 kB / 452 MB, free: 11.11 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.237e-05/0.5482, allocations: 8 kB / 452 MB, free: 11.1 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001681/0.5484, allocations: 15.41 kB / 452 MB, free: 11.09 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.585e-05/0.5484, allocations: 19.42 kB / 452.1 MB, free: 11.07 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,greaterEqual.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.0001494/0.5486, allocations: 133.6 kB / 452.2 MB, free: 10.95 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.992e-05/0.5486, allocations: 15.86 kB / 452.2 MB, free: 10.93 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005259/0.5492, allocations: 197.2 kB / 452.4 MB, free: 10.78 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.141e-06/0.5492, allocations: 4 kB / 452.4 MB, free: 10.78 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/0.5492, allocations: 4 kB / 452.4 MB, free: 10.77 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.817e-06/0.5492, allocations: 3.984 kB / 452.4 MB, free: 10.77 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001123/0.5504, allocations: 0.5731 MB / 453 MB, free: 10.22 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.498e-06/0.5504, allocations: 0 / 453 MB, free: 10.22 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001446/0.5506, allocations: 19.3 kB / 453 MB, free: 10.2 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.015e-06/0.5506, allocations: 0 / 453 MB, free: 10.2 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.357e-05/0.5507, allocations: 8 kB / 453 MB, free: 10.2 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.965e-06/0.5507, allocations: 0 / 453 MB, free: 10.2 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.719e-06/0.5507, allocations: 3.938 kB / 453 MB, free: 10.19 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004567/0.5512, allocations: 277.1 kB / 453.3 MB, free: 9.941 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.375e-05/0.5512, allocations: 89.02 kB / 453.4 MB, free: 9.836 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.808e-05/0.5513, allocations: 2.938 kB / 453.4 MB, free: 9.836 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001561/0.5515, allocations: 11.61 kB / 453.4 MB, free: 9.828 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.808e-05/0.5516, allocations: 19.97 kB / 453.4 MB, free: 9.809 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.663e-05/0.5516, allocations: 15.25 kB / 453.4 MB, free: 9.797 MB / 330.7 MB Notification: Performance of sorting global known variables: time 9.852e-05/0.5517, allocations: 107 kB / 453.5 MB, free: 9.699 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.5517, allocations: 0 / 453.5 MB, free: 9.699 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.000447/0.5522, allocations: 42.91 kB / 453.6 MB, free: 9.664 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,greaterEqual.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.0008871/0.5531, allocations: 0.8219 MB / 454.4 MB, free: 8.852 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0005204/0.5536, allocations: 177.6 kB / 454.6 MB, free: 8.719 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.188e-06/0.5537, allocations: 0 / 454.6 MB, free: 8.719 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001883/0.5539, allocations: 71.75 kB / 454.6 MB, free: 8.668 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002956/0.5542, allocations: 14.98 kB / 454.6 MB, free: 8.656 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001048/0.5552, allocations: 321.3 kB / 455 MB, free: 8.348 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003974/0.5557, allocations: 0.7365 MB / 455.7 MB, free: 7.586 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001748/0.5559, allocations: 69.59 kB / 455.8 MB, free: 7.555 MB / 330.7 MB Notification: Performance of SimCode: time 1.103e-06/0.5559, allocations: 0 / 455.8 MB, free: 7.555 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.663/3.219, allocations: 3.096 MB / 458.9 MB, free: 4.488 MB / 330.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_StateGraph_Examples_FirstExample_Variant2_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_StateGraph_Examples_FirstExample_Variant2.fmu > Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat does not exist to compare? outputFormat=mat