Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.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_Variant2,fileNamePrefix="Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant2,fileNamePrefix="Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001085/0.001085, allocations: 197.5 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.225/1.225, allocations: 227.2 MB / 245 MB, free: 5.945 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009491/0.0009492, allocations: 105.6 kB / 297.3 MB, free: 5.98 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002053/0.0002053, allocations: 8 kB / 358 MB, free: 9.25 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1821/0.1823, allocations: 51.48 MB / 409.5 MB, free: 26.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08369/0.266, allocations: 77.49 MB / 487 MB, free: 13.11 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001659/0.2662, allocations: 63.97 kB / 487 MB, free: 13.04 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0076/0.2739, allocations: 3.075 MB / 490.1 MB, free: 9.949 MB / 362.7 MB Notification: Performance of FrontEnd: time 9.82e-07/0.2739, allocations: 0 / 490.1 MB, free: 9.949 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.264e-05/0.2739, allocations: 4 kB / 490.1 MB, free: 9.945 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0005245/0.2744, allocations: 461 kB / 490.6 MB, free: 9.449 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.539e-05/0.2745, allocations: 12.03 kB / 490.6 MB, free: 9.438 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.404e-05/0.2745, allocations: 62.53 kB / 490.6 MB, free: 9.367 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.837e-05/0.2746, allocations: 27.72 kB / 490.7 MB, free: 9.34 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002658/0.2749, allocations: 226.8 kB / 490.9 MB, free: 9.078 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.943e-05/0.2749, allocations: 20.56 kB / 490.9 MB, free: 9.059 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.522e-05/0.2749, allocations: 24 kB / 490.9 MB, free: 9.035 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004246/0.2754, allocations: 274 kB / 491.2 MB, free: 8.746 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.011e-05/0.2754, allocations: 0 / 491.2 MB, free: 8.746 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.345e-05/0.2754, allocations: 12 kB / 491.2 MB, free: 8.734 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.698e-06/0.2754, allocations: 8 kB / 491.2 MB, free: 8.727 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002814/0.2757, allocations: 165.6 kB / 491.4 MB, free: 8.562 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001056/0.2768, allocations: 0.9598 MB / 492.3 MB, free: 7.535 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002674/0.2771, allocations: 184.6 kB / 492.5 MB, free: 7.34 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.896e-05/0.2771, allocations: 192 / 492.5 MB, free: 7.34 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001906/0.2773, allocations: 141.9 kB / 492.7 MB, free: 7.184 MB / 362.7 MB Notification: Performance of pre-optimization done (n=24): time 1.292e-06/0.2773, allocations: 4 kB / 492.7 MB, free: 7.18 MB / 362.7 MB Notification: Performance of matching and sorting (n=24): time 0.0004005/0.2777, allocations: 229 kB / 492.9 MB, free: 6.949 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.19e-05/0.2778, allocations: 89.09 kB / 493 MB, free: 6.844 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.794e-05/0.2779, allocations: 144.7 kB / 493.1 MB, free: 6.695 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.031e-05/0.2779, allocations: 37.7 kB / 493.2 MB, free: 6.652 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.407e-05/0.278, allocations: 140.5 kB / 493.3 MB, free: 6.512 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.852e-05/0.2781, allocations: 59.25 kB / 493.3 MB, free: 6.453 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.11e-05/0.2781, allocations: 4 kB / 493.4 MB, free: 6.449 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001095/0.2782, allocations: 331 kB / 493.7 MB, free: 6.117 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001135/0.2783, allocations: 59.97 kB / 493.7 MB, free: 6.059 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001556/0.2785, allocations: 144.2 kB / 493.9 MB, free: 5.887 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001216/0.2786, allocations: 68 kB / 493.9 MB, free: 5.82 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.2786, allocations: 4 kB / 493.9 MB, free: 5.816 MB / 362.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003849/0.279, allocations: 257.8 kB / 494.2 MB, free: 5.559 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.424e-05/0.279, allocations: 8 kB / 494.2 MB, free: 5.551 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.196e-06/0.2791, allocations: 3.984 kB / 494.2 MB, free: 5.547 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.503e-05/0.2791, allocations: 7.938 kB / 494.2 MB, free: 5.539 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001293/0.2792, allocations: 31.92 kB / 494.2 MB, free: 5.508 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.687e-06/0.2792, allocations: 4 kB / 494.3 MB, free: 5.504 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001085/0.2793, allocations: 19.91 kB / 494.3 MB, free: 5.484 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.713e-05/0.2794, allocations: 12 kB / 494.3 MB, free: 5.473 MB / 362.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: 32 ($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,$PRE.transition2.t_start,transition2.t_start,stateGraphRoot.resume,stateGraphRoot.suspend,transition1.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (41): * Single equations (assignments): 41 * 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.000131/0.2795, allocations: 166.5 kB / 494.4 MB, free: 5.301 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.422e-05/0.2795, allocations: 15.86 kB / 494.5 MB, free: 5.285 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003154/0.2799, allocations: 198.3 kB / 494.7 MB, free: 5.082 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.178e-06/0.2799, allocations: 4 kB / 494.7 MB, free: 5.078 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.597e-06/0.2799, allocations: 0 / 494.7 MB, free: 5.078 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.968e-06/0.2799, allocations: 0 / 494.7 MB, free: 5.078 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006872/0.2806, allocations: 0.5953 MB / 495.3 MB, free: 4.422 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.804e-06/0.2806, allocations: 0 / 495.3 MB, free: 4.422 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.475e-05/0.2807, allocations: 15.98 kB / 495.3 MB, free: 4.406 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.829e-06/0.2807, allocations: 3.938 kB / 495.3 MB, free: 4.402 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.529e-05/0.2807, allocations: 15.94 kB / 495.3 MB, free: 4.387 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.873e-06/0.2807, allocations: 0 / 495.3 MB, free: 4.387 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.973e-06/0.2807, allocations: 4 kB / 495.3 MB, free: 4.383 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003015/0.281, allocations: 297.8 kB / 495.6 MB, free: 4.066 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.325e-05/0.2811, allocations: 92.94 kB / 495.7 MB, free: 3.957 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.811e-05/0.2811, allocations: 8 kB / 495.7 MB, free: 3.949 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.997e-05/0.2812, allocations: 4 kB / 495.7 MB, free: 3.945 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.315e-05/0.2813, allocations: 23.95 kB / 495.7 MB, free: 3.922 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.743e-05/0.2813, allocations: 12 kB / 495.7 MB, free: 3.91 MB / 362.7 MB Notification: Performance of sorting global known variables: time 5.924e-05/0.2814, allocations: 102.2 kB / 495.8 MB, free: 3.812 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2814, allocations: 0 / 495.8 MB, free: 3.812 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002806/0.2817, allocations: 40 kB / 495.9 MB, free: 3.773 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 20 (transition2.t_start,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: 3 (initialStep.newActive,step.newActive,transition2.t_start) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0005985/0.2823, allocations: 0.9245 MB / 496.8 MB, free: 2.816 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002947/0.2826, allocations: 179.8 kB / 497 MB, free: 2.641 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.2826, allocations: 0 / 497 MB, free: 2.641 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001378/0.2827, allocations: 83.91 kB / 497 MB, free: 2.559 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001777/0.2829, allocations: 26.03 kB / 497.1 MB, free: 2.535 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001789/0.2847, allocations: 2.351 MB / 499.4 MB, free: 88 kB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000292/0.285, allocations: 0.7444 MB / 0.4884 GB, free: 15.31 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 8.022e-05/0.2851, allocations: 21.95 kB / 0.4885 GB, free: 15.29 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.927e-05/0.2852, allocations: 67.47 kB / 0.4885 GB, free: 15.23 MB / 378.7 MB Notification: Performance of SimCode: time 3.51e-07/0.2852, allocations: 0 / 0.4885 GB, free: 15.23 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01342/0.2986, allocations: 3.361 MB / 0.4918 GB, free: 12 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001662/0.2988, allocations: 175.9 kB / 0.492 GB, free: 11.76 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.498/1.796, allocations: 0 / 0.492 GB, free: 11.76 MB / 378.7 MB (rm -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat --tempDir=temp_Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant2_fmu --startTime=0 --stopTime=5.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant2.fmu > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat does not exist to compare? outputFormat=mat