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.001106/0.001106, allocations: 197.6 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.242/1.242, allocations: 227.2 MB / 245 MB, free: 7.652 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008585/0.0008585, allocations: 95.69 kB / 297.2 MB, free: 6.195 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002077/0.0002077, allocations: 8 kB / 358 MB, free: 9.461 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1872/0.1874, allocations: 51.49 MB / 409.5 MB, free: 26.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08391/0.2714, allocations: 76.87 MB / 486.4 MB, free: 13.74 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001776/0.2716, allocations: 63.97 kB / 486.4 MB, free: 13.68 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006829/0.2785, allocations: 2.911 MB / 489.3 MB, free: 10.75 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.393e-06/0.2785, allocations: 0 / 489.3 MB, free: 10.75 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.072e-05/0.2785, allocations: 4 kB / 489.3 MB, free: 10.75 MB / 362.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.0004759/0.279, allocations: 452.2 kB / 489.8 MB, free: 10.25 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.236e-05/0.279, allocations: 8.031 kB / 489.8 MB, free: 10.25 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.052e-05/0.2791, allocations: 54.55 kB / 489.8 MB, free: 10.18 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.475e-05/0.2791, allocations: 23.72 kB / 489.9 MB, free: 10.16 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002169/0.2793, allocations: 226.8 kB / 490.1 MB, free: 9.898 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.69e-05/0.2794, allocations: 20.56 kB / 490.1 MB, free: 9.879 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.445e-05/0.2794, allocations: 27.98 kB / 490.1 MB, free: 9.852 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003628/0.2798, allocations: 239.5 kB / 490.4 MB, free: 9.605 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.103e-05/0.2798, allocations: 3.984 kB / 490.4 MB, free: 9.602 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.322e-05/0.2798, allocations: 12 kB / 490.4 MB, free: 9.59 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.492e-06/0.2799, allocations: 4 kB / 490.4 MB, free: 9.586 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002614/0.2801, allocations: 153.6 kB / 490.5 MB, free: 9.434 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008632/0.281, allocations: 0.6977 MB / 491.2 MB, free: 8.68 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002732/0.2813, allocations: 174 kB / 491.4 MB, free: 8.504 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.658e-05/0.2813, allocations: 192 / 491.4 MB, free: 8.504 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001674/0.2815, allocations: 120.1 kB / 491.5 MB, free: 8.375 MB / 362.7 MB Notification: Performance of pre-optimization done (n=24): time 1.413e-06/0.2815, allocations: 0 / 491.5 MB, free: 8.375 MB / 362.7 MB Notification: Performance of matching and sorting (n=24): time 0.000383/0.2819, allocations: 227.1 kB / 491.7 MB, free: 8.148 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.158e-05/0.2819, allocations: 55.41 kB / 491.8 MB, free: 8.082 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.484e-05/0.282, allocations: 137 kB / 491.9 MB, free: 7.938 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.836e-05/0.2821, allocations: 37.69 kB / 492 MB, free: 7.895 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.815e-05/0.2822, allocations: 128.7 kB / 492.1 MB, free: 7.766 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.744e-05/0.2822, allocations: 63.16 kB / 492.1 MB, free: 7.703 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.164e-05/0.2822, allocations: 8 kB / 492.2 MB, free: 7.695 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001119/0.2823, allocations: 322.8 kB / 492.5 MB, free: 7.371 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001095/0.2825, allocations: 60.62 kB / 492.5 MB, free: 7.309 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000148/0.2826, allocations: 136.1 kB / 492.7 MB, free: 7.152 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001091/0.2827, allocations: 59.94 kB / 492.7 MB, free: 7.094 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.285e-06/0.2827, allocations: 0 / 492.7 MB, free: 7.094 MB / 362.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003368/0.2831, allocations: 237.9 kB / 493 MB, free: 6.855 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.236e-05/0.2831, allocations: 8 kB / 493 MB, free: 6.848 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.679e-06/0.2831, allocations: 0 / 493 MB, free: 6.848 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.563e-05/0.2831, allocations: 7.953 kB / 493 MB, free: 6.84 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001216/0.2833, allocations: 35.86 kB / 493 MB, free: 6.805 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.344e-06/0.2833, allocations: 7.938 kB / 493 MB, free: 6.797 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.117e-05/0.2834, allocations: 23.83 kB / 493 MB, free: 6.773 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.544e-05/0.2834, allocations: 12 kB / 493 MB, free: 6.762 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.0001328/0.2835, allocations: 154 kB / 493.2 MB, free: 6.602 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.989e-05/0.2836, allocations: 11.91 kB / 493.2 MB, free: 6.59 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003221/0.2839, allocations: 195.1 kB / 493.4 MB, free: 6.398 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.483e-06/0.2839, allocations: 11.94 kB / 493.4 MB, free: 6.387 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.657e-06/0.2839, allocations: 0 / 493.4 MB, free: 6.387 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.49e-06/0.2839, allocations: 3.984 kB / 493.4 MB, free: 6.383 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006621/0.2846, allocations: 0.5651 MB / 494 MB, free: 5.762 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.721e-06/0.2846, allocations: 7.953 kB / 494 MB, free: 5.754 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.488e-05/0.2847, allocations: 16 kB / 494 MB, free: 5.738 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.735e-06/0.2847, allocations: 0 / 494 MB, free: 5.738 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.82e-05/0.2847, allocations: 11.98 kB / 494 MB, free: 5.727 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.2847, allocations: 0 / 494 MB, free: 5.727 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.2847, allocations: 0 / 494 MB, free: 5.727 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002857/0.285, allocations: 279.2 kB / 494.3 MB, free: 5.438 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.521e-05/0.2851, allocations: 96.84 kB / 494.4 MB, free: 5.324 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.476e-05/0.2851, allocations: 8 kB / 494.4 MB, free: 5.316 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.036e-05/0.2852, allocations: 8 kB / 494.4 MB, free: 5.309 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.595e-05/0.2853, allocations: 27.95 kB / 494.4 MB, free: 5.281 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.341e-05/0.2853, allocations: 4 kB / 494.4 MB, free: 5.277 MB / 362.7 MB Notification: Performance of sorting global known variables: time 4.748e-05/0.2854, allocations: 91.27 kB / 494.5 MB, free: 5.188 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2854, allocations: 0 / 494.5 MB, free: 5.188 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000267/0.2856, allocations: 48 kB / 494.6 MB, free: 5.141 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.0005524/0.2862, allocations: 0.8257 MB / 495.4 MB, free: 4.285 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002859/0.2865, allocations: 184.1 kB / 495.6 MB, free: 4.105 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.2865, allocations: 4.062 kB / 495.6 MB, free: 4.102 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001204/0.2866, allocations: 83.91 kB / 495.7 MB, free: 4.02 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001632/0.2868, allocations: 15.22 kB / 495.7 MB, free: 4.008 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001585/0.2884, allocations: 1.986 MB / 497.7 MB, free: 1.938 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002559/0.2887, allocations: 0.7328 MB / 498.4 MB, free: 1.176 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 7.663e-05/0.2888, allocations: 29.89 kB / 498.4 MB, free: 1.145 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.553e-05/0.2889, allocations: 67.41 kB / 498.5 MB, free: 1.078 MB / 362.7 MB Notification: Performance of SimCode: time 3.1e-07/0.2889, allocations: 3.938 kB / 498.5 MB, free: 1.074 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01348/0.3024, allocations: 3.27 MB / 0.49 GB, free: 13.92 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001906/0.3026, allocations: 173.7 kB / 0.4902 GB, free: 13.68 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.513/1.815, allocations: 0 / 0.4902 GB, free: 13.68 MB / 378.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