Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample,fileNamePrefix="Modelica_trunk_Modelica_StateGraph_Examples_FirstExample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample,fileNamePrefix="Modelica_trunk_Modelica_StateGraph_Examples_FirstExample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00135/0.001351, allocations: 197 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.555/1.555, allocations: 225.4 MB / 240.1 MB, free: 15.13 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000981/0.0009811, allocations: 90.03 kB / 292.1 MB, free: 5.984 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.916e-05/4.956e-05, allocations: 4 kB / 350.6 MB, free: 2.449 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.129/0.1291, allocations: 51.48 MB / 402.1 MB, free: 14.92 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4245/0.5537, allocations: 76.8 MB / 478.9 MB, free: 12.62 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001691/0.5539, allocations: 62.84 kB / 479 MB, free: 12.59 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00636/0.5603, allocations: 2.899 MB / 481.9 MB, free: 10.11 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.312e-06/0.5603, allocations: 0 / 481.9 MB, free: 10.11 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.123e-05/0.5603, allocations: 4 kB / 481.9 MB, free: 10.1 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.0004224/0.5608, allocations: 434.7 kB / 482.3 MB, free: 9.656 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.475e-05/0.5608, allocations: 12.03 kB / 482.3 MB, free: 9.645 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.482e-05/0.5609, allocations: 57.78 kB / 482.4 MB, free: 9.594 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.194e-05/0.5609, allocations: 21.5 kB / 482.4 MB, free: 9.574 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000192/0.5611, allocations: 234 kB / 482.6 MB, free: 9.332 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.696e-05/0.5612, allocations: 20.19 kB / 482.6 MB, free: 9.32 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.989e-05/0.5612, allocations: 23.69 kB / 482.7 MB, free: 9.305 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003297/0.5615, allocations: 240.9 kB / 482.9 MB, free: 9.125 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.043e-05/0.5615, allocations: 0 / 482.9 MB, free: 9.125 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.016e-05/0.5616, allocations: 5.812 kB / 482.9 MB, free: 9.125 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.855e-06/0.5616, allocations: 8 kB / 482.9 MB, free: 9.117 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002289/0.5618, allocations: 147.8 kB / 483.1 MB, free: 9.02 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007517/0.5626, allocations: 0.6976 MB / 483.8 MB, free: 8.391 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002269/0.5628, allocations: 170 kB / 483.9 MB, free: 8.27 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.449e-05/0.5629, allocations: 78.95 kB / 484 MB, free: 8.215 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.025e-05/0.563, allocations: 192 / 484 MB, free: 8.215 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001509/0.5631, allocations: 122.9 kB / 484.1 MB, free: 8.105 MB / 346.7 MB Notification: Performance of pre-optimization done (n=24): time 1.683e-06/0.5631, allocations: 0 / 484.1 MB, free: 8.105 MB / 346.7 MB Notification: Performance of matching and sorting (n=24): time 0.0002882/0.5634, allocations: 155.2 kB / 484.3 MB, free: 7.98 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.078e-05/0.5635, allocations: 59.34 kB / 484.3 MB, free: 7.91 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.007e-05/0.5636, allocations: 139.6 kB / 484.5 MB, free: 7.781 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.298e-05/0.5636, allocations: 35.36 kB / 484.5 MB, free: 7.746 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.208e-05/0.5637, allocations: 131.4 kB / 484.6 MB, free: 7.625 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.877e-05/0.5637, allocations: 66.73 kB / 484.7 MB, free: 7.57 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.01e-05/0.5637, allocations: 3.75 kB / 484.7 MB, free: 7.57 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 6.327e-05/0.5638, allocations: 330.1 kB / 485 MB, free: 7.246 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.248e-05/0.5639, allocations: 58.22 kB / 485.1 MB, free: 7.207 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001082/0.564, allocations: 121.4 kB / 485.2 MB, free: 7.09 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.992e-05/0.5641, allocations: 65.78 kB / 485.3 MB, free: 7.043 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.5641, allocations: 0 / 485.3 MB, free: 7.043 MB / 346.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0002933/0.5644, allocations: 233.7 kB / 485.5 MB, free: 6.855 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.44e-05/0.5644, allocations: 9.344 kB / 485.5 MB, free: 6.848 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.615e-06/0.5644, allocations: 12.17 kB / 485.5 MB, free: 6.836 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.611e-05/0.5645, allocations: 5.188 kB / 485.5 MB, free: 6.832 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001252/0.5646, allocations: 31.48 kB / 485.5 MB, free: 6.805 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.176e-05/0.5646, allocations: 7.922 kB / 485.5 MB, free: 6.797 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.38e-05/0.5647, allocations: 15.69 kB / 485.6 MB, free: 6.785 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.226e-05/0.5647, allocations: 16.48 kB / 485.6 MB, free: 6.773 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 7.413e-05/0.5648, allocations: 128.9 kB / 485.7 MB, free: 6.652 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.991e-05/0.5649, allocations: 19.8 kB / 485.7 MB, free: 6.633 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002898/0.5651, allocations: 190.9 kB / 485.9 MB, free: 6.488 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.441e-06/0.5652, allocations: 7.953 kB / 485.9 MB, free: 6.48 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.5652, allocations: 0.9375 kB / 485.9 MB, free: 6.48 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.518e-06/0.5652, allocations: 0 / 485.9 MB, free: 6.48 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005325/0.5657, allocations: 0.5614 MB / 486.5 MB, free: 5.945 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.5657, allocations: 4 kB / 486.5 MB, free: 5.941 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.206e-05/0.5658, allocations: 24.77 kB / 486.5 MB, free: 5.922 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.636e-06/0.5658, allocations: 4 kB / 486.5 MB, free: 5.918 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.281e-05/0.5658, allocations: 3.688 kB / 486.5 MB, free: 5.918 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.154e-06/0.5658, allocations: 0 / 486.5 MB, free: 5.918 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.5659, allocations: 4 kB / 486.5 MB, free: 5.914 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002107/0.5661, allocations: 265.9 kB / 486.8 MB, free: 5.672 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.724e-05/0.5661, allocations: 103.8 kB / 486.9 MB, free: 5.555 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.263e-05/0.5661, allocations: 6.75 kB / 486.9 MB, free: 5.551 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.31e-05/0.5662, allocations: 10.3 kB / 486.9 MB, free: 5.543 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.602e-05/0.5663, allocations: 25.28 kB / 486.9 MB, free: 5.523 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.31e-05/0.5663, allocations: 4 kB / 486.9 MB, free: 5.52 MB / 346.7 MB Notification: Performance of sorting global known variables: time 3.565e-05/0.5664, allocations: 97.7 kB / 487 MB, free: 5.43 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.5664, allocations: 0 / 487 MB, free: 5.43 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002573/0.5666, allocations: 42.88 kB / 487.1 MB, free: 5.395 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.000422/0.5671, allocations: 0.8168 MB / 487.9 MB, free: 4.594 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002448/0.5673, allocations: 180.1 kB / 488.1 MB, free: 4.461 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.5673, allocations: 3.938 kB / 488.1 MB, free: 4.457 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 9.91e-05/0.5674, allocations: 82.98 kB / 488.1 MB, free: 4.395 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001801/0.5676, allocations: 16.12 kB / 488.2 MB, free: 4.387 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005203/0.5681, allocations: 291.5 kB / 488.4 MB, free: 4.109 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001546/0.5683, allocations: 0.7364 MB / 489.2 MB, free: 3.348 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 7.683e-05/0.5684, allocations: 28.31 kB / 489.2 MB, free: 3.32 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.262e-05/0.5685, allocations: 60.34 kB / 489.3 MB, free: 3.293 MB / 346.7 MB Notification: Performance of SimCode: time 2.31e-07/0.5685, allocations: 0 / 489.3 MB, free: 3.293 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01299/0.5815, allocations: 3.318 MB / 492.6 MB, free: 224 kB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001434/0.5817, allocations: 147.1 kB / 492.7 MB, free: 15.99 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.676/2.258, allocations: 0 / 492.7 MB, free: 15.99 MB / 362.7 MB (rm -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_res.mat --tempDir=temp_Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_fmu --startTime=0 --stopTime=5.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_StateGraph_Examples_FirstExample.fmu > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_res.mat does not exist to compare? outputFormat=mat