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.001157/0.001157, 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.483/1.483, allocations: 223.2 MB / 240.3 MB, free: 11.88 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.0009888/0.0009887, allocations: 94.86 kB / 291.5 MB, free: 10.89 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003269/0.000327, allocations: 4 kB / 351.2 MB, free: 15.2 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2968/0.2971, allocations: 50.41 MB / 401.6 MB, free: 32.55 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09991/0.3971, allocations: 76.07 MB / 477.6 MB, free: 4.383 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002577/0.3974, allocations: 67.97 kB / 477.7 MB, free: 4.316 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007546/0.405, allocations: 2.916 MB / 480.6 MB, free: 1.375 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.554e-06/0.405, allocations: 0 / 480.6 MB, free: 1.375 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.391e-05/0.4051, allocations: 4 kB / 480.6 MB, free: 1.371 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.0005975/0.4057, allocations: 440.2 kB / 481.1 MB, free: 0.8945 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.06e-05/0.4057, allocations: 8.031 kB / 481.1 MB, free: 0.8867 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.104e-05/0.4058, allocations: 62.53 kB / 481.1 MB, free: 0.8164 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.619e-05/0.4059, allocations: 23.72 kB / 481.1 MB, free: 0.793 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002495/0.4061, allocations: 226.8 kB / 481.4 MB, free: 0.5312 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.823e-05/0.4062, allocations: 20.56 kB / 481.4 MB, free: 0.5078 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.7e-05/0.4062, allocations: 24 kB / 481.4 MB, free: 496 kB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004127/0.4066, allocations: 243.4 kB / 481.6 MB, free: 244 kB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.193e-05/0.4066, allocations: 0 / 481.6 MB, free: 244 kB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.445e-05/0.4067, allocations: 8 kB / 481.7 MB, free: 236 kB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.975e-06/0.4067, allocations: 4 kB / 481.7 MB, free: 232 kB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002961/0.407, allocations: 157.6 kB / 481.8 MB, free: 76 kB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009904/0.408, allocations: 0.6899 MB / 482.5 MB, free: 15.32 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002942/0.4083, allocations: 175.4 kB / 482.7 MB, free: 15.14 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.282e-05/0.4083, allocations: 4.188 kB / 482.7 MB, free: 15.14 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001911/0.4085, allocations: 117.4 kB / 482.8 MB, free: 15.02 MB / 362.7 MB Notification: Performance of pre-optimization done (n=24): time 1.653e-06/0.4085, allocations: 0 / 482.8 MB, free: 15.02 MB / 362.7 MB Notification: Performance of matching and sorting (n=24): time 0.0004311/0.409, allocations: 224.9 kB / 483 MB, free: 14.79 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.306e-05/0.409, allocations: 59.41 kB / 483.1 MB, free: 14.72 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001165/0.4092, allocations: 137.5 kB / 483.2 MB, free: 14.58 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.279e-05/0.4092, allocations: 33.7 kB / 483.2 MB, free: 14.54 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.152e-05/0.4093, allocations: 124.7 kB / 483.4 MB, free: 14.41 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.305e-05/0.4094, allocations: 59.25 kB / 483.4 MB, free: 14.36 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.233e-05/0.4094, allocations: 7.938 kB / 483.4 MB, free: 14.35 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000119/0.4095, allocations: 334.8 kB / 483.8 MB, free: 14.01 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001233/0.4096, allocations: 64.62 kB / 483.8 MB, free: 13.95 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001518/0.4098, allocations: 128.1 kB / 483.9 MB, free: 13.8 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001215/0.4099, allocations: 68.47 kB / 484 MB, free: 13.73 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.454e-06/0.4099, allocations: 0 / 484 MB, free: 13.73 MB / 362.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003511/0.4103, allocations: 241.2 kB / 484.2 MB, free: 13.49 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.813e-05/0.4103, allocations: 8 kB / 484.3 MB, free: 13.48 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.443e-06/0.4103, allocations: 0 / 484.3 MB, free: 13.48 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.72e-05/0.4103, allocations: 4 kB / 484.3 MB, free: 13.48 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001363/0.4105, allocations: 36.12 kB / 484.3 MB, free: 13.44 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.749e-06/0.4105, allocations: 8 kB / 484.3 MB, free: 13.43 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.217e-05/0.4106, allocations: 23.78 kB / 484.3 MB, free: 13.41 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.809e-05/0.4106, allocations: 8 kB / 484.3 MB, free: 13.4 MB / 362.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 () * Number of clocked 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.0001583/0.4108, allocations: 161.7 kB / 484.5 MB, free: 13.23 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.042e-05/0.4108, allocations: 11.91 kB / 484.5 MB, free: 13.22 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004236/0.4113, allocations: 202.2 kB / 484.7 MB, free: 13.02 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.909e-06/0.4113, allocations: 8 kB / 484.7 MB, free: 13.02 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.1e-06/0.4113, allocations: 0 / 484.7 MB, free: 13.02 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.27e-06/0.4113, allocations: 0 / 484.7 MB, free: 13.02 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000741/0.412, allocations: 0.5654 MB / 485.3 MB, free: 12.39 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.983e-06/0.4121, allocations: 0 / 485.3 MB, free: 12.39 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.933e-05/0.4121, allocations: 19.98 kB / 485.3 MB, free: 12.38 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.046e-06/0.4122, allocations: 0 / 485.3 MB, free: 12.38 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.498e-05/0.4122, allocations: 8 kB / 485.3 MB, free: 12.37 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.005e-06/0.4122, allocations: 3.984 kB / 485.3 MB, free: 12.36 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.078e-06/0.4122, allocations: 3.953 kB / 485.3 MB, free: 12.36 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002946/0.4125, allocations: 284.4 kB / 485.6 MB, free: 12.07 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.46e-05/0.4126, allocations: 88.95 kB / 485.7 MB, free: 11.96 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.841e-05/0.4126, allocations: 8 kB / 485.7 MB, free: 11.95 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.164e-05/0.4127, allocations: 11.98 kB / 485.7 MB, free: 11.94 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.167e-05/0.4128, allocations: 23.92 kB / 485.7 MB, free: 11.92 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.71e-05/0.4128, allocations: 12 kB / 485.7 MB, free: 11.91 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.232e-05/0.4129, allocations: 98.83 kB / 485.8 MB, free: 11.81 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4129, allocations: 0 / 485.8 MB, free: 11.81 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002871/0.4132, allocations: 44 kB / 485.9 MB, free: 11.77 MB / 362.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) * Number of clocked states: 0 () * 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.0006071/0.4138, allocations: 0.8176 MB / 486.7 MB, free: 10.92 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003054/0.4141, allocations: 175.8 kB / 486.9 MB, free: 10.75 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.4141, allocations: 0 / 486.9 MB, free: 10.75 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001299/0.4142, allocations: 91.84 kB / 486.9 MB, free: 10.66 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002/0.4145, allocations: 12 kB / 487 MB, free: 10.65 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00184/0.4163, allocations: 1.995 MB / 488.9 MB, free: 8.574 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003047/0.4166, allocations: 0.7367 MB / 489.7 MB, free: 7.812 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 8.55e-05/0.4167, allocations: 29.94 kB / 489.7 MB, free: 7.781 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001032/0.4168, allocations: 55.48 kB / 489.8 MB, free: 7.727 MB / 362.7 MB Notification: Performance of SimCode: time 2.61e-07/0.4168, allocations: 3.938 kB / 489.8 MB, free: 7.723 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01565/0.4325, allocations: 3.279 MB / 493.1 MB, free: 4.559 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001731/0.4327, allocations: 163.5 kB / 493.2 MB, free: 4.324 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.803/2.236, allocations: 0 / 493.2 MB, free: 4.324 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