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.001508/0.001508, allocations: 199.5 kB / 8.767 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.557/1.557, allocations: 225.6 MB / 234.8 MB, free: 3.266 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008525/0.0008526, allocations: 98.97 kB / 286.7 MB, free: 5.262 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.645e-05/1.655e-05, allocations: 0 / 343.8 MB, free: 8.227 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.118/0.1181, allocations: 51.48 MB / 395.2 MB, free: 4.711 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3683/0.4865, allocations: 76.75 MB / 472 MB, free: 14.53 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001724/0.4867, allocations: 63.69 kB / 472.1 MB, free: 14.5 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007982/0.4947, allocations: 3.023 MB / 475.1 MB, free: 12.84 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.092e-06/0.4948, allocations: 0 / 475.1 MB, free: 12.84 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.559e-05/0.4948, allocations: 8 kB / 475.1 MB, free: 12.83 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0005304/0.4953, allocations: 447.3 kB / 475.5 MB, free: 12.39 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.945e-05/0.4954, allocations: 8.031 kB / 475.5 MB, free: 12.39 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.531e-05/0.4954, allocations: 23.72 kB / 475.6 MB, free: 12.36 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002275/0.4957, allocations: 228.9 kB / 475.8 MB, free: 12.14 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.675e-05/0.4957, allocations: 15.81 kB / 475.8 MB, free: 12.12 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.908e-05/0.4958, allocations: 16 kB / 475.8 MB, free: 12.11 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000277/0.4961, allocations: 143.5 kB / 476 MB, free: 12.03 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003285/0.4964, allocations: 232.5 kB / 476.2 MB, free: 11.86 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.229e-05/0.4964, allocations: 0 / 476.2 MB, free: 11.86 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.161e-05/0.4964, allocations: 4.875 kB / 476.2 MB, free: 11.86 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.314e-06/0.4965, allocations: 8 kB / 476.2 MB, free: 11.85 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001032/0.4975, allocations: 0.9102 MB / 477.1 MB, free: 11.1 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002314/0.4977, allocations: 153.5 kB / 477.3 MB, free: 10.98 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.41e-05/0.4978, allocations: 74.84 kB / 477.3 MB, free: 10.93 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3e-05/0.4979, allocations: 8.141 kB / 477.3 MB, free: 10.92 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001961/0.4981, allocations: 132.1 kB / 477.5 MB, free: 10.82 MB / 346.7 MB Notification: Performance of pre-optimization done (n=24): time 1.374e-05/0.4981, allocations: 0 / 477.5 MB, free: 10.82 MB / 346.7 MB Notification: Performance of matching and sorting (n=24): time 0.0003535/0.4985, allocations: 147 kB / 477.6 MB, free: 10.71 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.167e-05/0.4985, allocations: 88.58 kB / 477.7 MB, free: 10.61 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001105/0.4986, allocations: 140 kB / 477.8 MB, free: 10.49 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.942e-05/0.4987, allocations: 31.25 kB / 477.9 MB, free: 10.45 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.136e-05/0.4988, allocations: 148 kB / 478 MB, free: 10.32 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.062e-05/0.4988, allocations: 50.55 kB / 478.1 MB, free: 10.29 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.005e-05/0.4988, allocations: 0 / 478.1 MB, free: 10.29 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 6.599e-05/0.4989, allocations: 329.9 kB / 478.4 MB, free: 9.969 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.869e-05/0.499, allocations: 55.58 kB / 478.4 MB, free: 9.934 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001073/0.4991, allocations: 125.5 kB / 478.6 MB, free: 9.812 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000106/0.4992, allocations: 65.22 kB / 478.6 MB, free: 9.773 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.4992, allocations: 0 / 478.6 MB, free: 9.773 MB / 346.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003133/0.4995, allocations: 216.1 kB / 478.8 MB, free: 9.613 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.743e-05/0.4996, allocations: 11.89 kB / 478.8 MB, free: 9.602 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.027e-06/0.4996, allocations: 4 kB / 478.8 MB, free: 9.598 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.429e-05/0.4996, allocations: 9.828 kB / 478.9 MB, free: 9.59 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001416/0.4998, allocations: 32.44 kB / 478.9 MB, free: 9.562 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.186e-05/0.4998, allocations: 9.719 kB / 478.9 MB, free: 9.555 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001054/0.4999, allocations: 9.547 kB / 478.9 MB, free: 9.547 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.25e-05/0.4999, allocations: 17.08 kB / 478.9 MB, free: 9.535 MB / 346.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 () * 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 8.207e-05/0.5, allocations: 127.2 kB / 479 MB, free: 9.406 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001978/0.5002, allocations: 161 kB / 479.2 MB, free: 9.281 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.159e-05/0.5003, allocations: 23.88 kB / 479.2 MB, free: 9.262 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002858/0.5006, allocations: 164.4 kB / 479.4 MB, free: 9.152 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.358e-06/0.5006, allocations: 4 kB / 479.4 MB, free: 9.148 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.701e-06/0.5006, allocations: 0 / 479.4 MB, free: 9.148 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.324e-06/0.5006, allocations: 2.438 kB / 479.4 MB, free: 9.148 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005796/0.5012, allocations: 0.5314 MB / 479.9 MB, free: 8.695 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.324e-06/0.5012, allocations: 4 kB / 479.9 MB, free: 8.691 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.333e-05/0.5013, allocations: 19.12 kB / 479.9 MB, free: 8.676 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.078e-06/0.5013, allocations: 0 / 479.9 MB, free: 8.676 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.373e-05/0.5013, allocations: 3.312 kB / 479.9 MB, free: 8.676 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.228e-06/0.5013, allocations: 5.359 kB / 480 MB, free: 8.672 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.117e-06/0.5013, allocations: 0 / 480 MB, free: 8.672 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002585/0.5016, allocations: 283.5 kB / 480.2 MB, free: 8.414 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.6e-05/0.5016, allocations: 87.64 kB / 480.3 MB, free: 8.312 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.566e-05/0.5017, allocations: 7.562 kB / 480.3 MB, free: 8.309 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.726e-05/0.5018, allocations: 8.641 kB / 480.3 MB, free: 8.305 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.868e-05/0.5018, allocations: 17.47 kB / 480.4 MB, free: 8.297 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.445e-05/0.5018, allocations: 15.31 kB / 480.4 MB, free: 8.285 MB / 346.7 MB Notification: Performance of sorting global known variables: time 3.738e-05/0.5019, allocations: 99.3 kB / 480.5 MB, free: 8.199 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5019, allocations: 0 / 480.5 MB, free: 8.199 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003124/0.5022, allocations: 32 kB / 480.5 MB, free: 8.168 MB / 346.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) * 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.0004314/0.5027, allocations: 0.8918 MB / 481.4 MB, free: 7.293 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002321/0.5029, allocations: 163.8 kB / 481.5 MB, free: 7.176 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.5029, allocations: 4.062 kB / 481.5 MB, free: 7.172 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 9.695e-05/0.503, allocations: 80.22 kB / 481.6 MB, free: 7.117 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001926/0.5032, allocations: 8.391 kB / 481.6 MB, free: 7.113 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005976/0.5038, allocations: 280.1 kB / 481.9 MB, free: 6.855 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001654/0.504, allocations: 0.7469 MB / 482.7 MB, free: 6.113 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 8.143e-05/0.5041, allocations: 20.94 kB / 482.7 MB, free: 6.102 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.25e-05/0.5042, allocations: 66.06 kB / 482.7 MB, free: 6.078 MB / 346.7 MB Notification: Performance of SimCode: time 2.81e-07/0.5042, allocations: 0 / 482.7 MB, free: 6.078 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02131/0.5255, allocations: 3.093 MB / 485.8 MB, free: 3.477 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001466/0.5257, allocations: 137.3 kB / 486 MB, free: 3.285 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.689/2.215, allocations: 0 / 486 MB, free: 3.285 MB / 346.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