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.001445/0.001445, 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 2.102/2.102, allocations: 225.4 MB / 240.1 MB, free: 15.1 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000962/0.0009621, allocations: 94.67 kB / 292.1 MB, free: 5.957 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.293e-05/3.313e-05, allocations: 4 kB / 350.6 MB, free: 2.445 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1095/0.1096, allocations: 51.49 MB / 402.1 MB, free: 14.91 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3597/0.4693, allocations: 77.41 MB / 479.5 MB, free: 12.01 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002417/0.4696, allocations: 63.97 kB / 479.6 MB, free: 11.98 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007336/0.477, allocations: 3.071 MB / 482.7 MB, free: 9.363 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.084e-06/0.4771, allocations: 0 / 482.7 MB, free: 9.363 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.583e-05/0.4771, allocations: 4 kB / 482.7 MB, free: 9.359 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.0005611/0.4776, allocations: 445.8 kB / 483.1 MB, free: 8.902 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.368e-05/0.4777, allocations: 12.03 kB / 483.1 MB, free: 8.891 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.627e-05/0.4778, allocations: 62.53 kB / 483.2 MB, free: 8.836 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.386e-05/0.4778, allocations: 24.59 kB / 483.2 MB, free: 8.812 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002526/0.4781, allocations: 228.5 kB / 483.4 MB, free: 8.57 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.476e-05/0.4781, allocations: 24.75 kB / 483.4 MB, free: 8.559 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.358e-05/0.4782, allocations: 26.31 kB / 483.5 MB, free: 8.539 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003972/0.4786, allocations: 270.9 kB / 483.7 MB, free: 8.324 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.214e-05/0.4786, allocations: 0 / 483.7 MB, free: 8.324 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.3e-05/0.4787, allocations: 9.75 kB / 483.7 MB, free: 8.32 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.377e-06/0.4787, allocations: 8 kB / 483.8 MB, free: 8.312 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002516/0.4789, allocations: 160.8 kB / 483.9 MB, free: 8.203 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009464/0.4799, allocations: 0.9739 MB / 484.9 MB, free: 7.301 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002329/0.4801, allocations: 171.6 kB / 485 MB, free: 7.16 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.453e-05/0.4802, allocations: 76.72 kB / 485.1 MB, free: 7.105 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.551e-05/0.4803, allocations: 4.188 kB / 485.1 MB, free: 7.102 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001619/0.4804, allocations: 131.7 kB / 485.3 MB, free: 6.98 MB / 346.7 MB Notification: Performance of pre-optimization done (n=24): time 1.342e-06/0.4804, allocations: 0 / 485.3 MB, free: 6.98 MB / 346.7 MB Notification: Performance of matching and sorting (n=24): time 0.0002982/0.4807, allocations: 170.8 kB / 485.4 MB, free: 6.84 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.6e-05/0.4808, allocations: 85.05 kB / 485.5 MB, free: 6.742 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.599e-05/0.4809, allocations: 139.2 kB / 485.6 MB, free: 6.617 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.303e-05/0.4809, allocations: 41.61 kB / 485.7 MB, free: 6.578 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.952e-05/0.481, allocations: 143.8 kB / 485.8 MB, free: 6.445 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.712e-05/0.481, allocations: 55.12 kB / 485.9 MB, free: 6.398 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.055e-05/0.481, allocations: 10.19 kB / 485.9 MB, free: 6.398 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.564e-05/0.4811, allocations: 326.3 kB / 486.2 MB, free: 6.078 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.402e-05/0.4812, allocations: 63.61 kB / 486.3 MB, free: 6.035 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001134/0.4813, allocations: 134.8 kB / 486.4 MB, free: 5.898 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001049/0.4814, allocations: 71.16 kB / 486.5 MB, free: 5.848 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-06/0.4814, allocations: 4 kB / 486.5 MB, free: 5.844 MB / 346.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0002942/0.4817, allocations: 248.3 kB / 486.7 MB, free: 5.645 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.657e-05/0.4818, allocations: 8 kB / 486.7 MB, free: 5.637 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.496e-06/0.4818, allocations: 5.562 kB / 486.7 MB, free: 5.633 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.735e-05/0.4818, allocations: 4 kB / 486.7 MB, free: 5.629 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001356/0.4819, allocations: 31.7 kB / 486.8 MB, free: 5.602 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.242e-05/0.482, allocations: 11.98 kB / 486.8 MB, free: 5.59 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.851e-05/0.4821, allocations: 15.59 kB / 486.8 MB, free: 5.578 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.928e-05/0.4821, allocations: 15.94 kB / 486.8 MB, free: 5.566 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.633e-05/0.4822, allocations: 137.8 kB / 486.9 MB, free: 5.438 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.667e-05/0.4822, allocations: 23.75 kB / 487 MB, free: 5.414 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003269/0.4826, allocations: 186.4 kB / 487.1 MB, free: 5.277 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.168e-06/0.4826, allocations: 8 kB / 487.2 MB, free: 5.27 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.569e-06/0.4826, allocations: 0 / 487.2 MB, free: 5.27 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.29e-06/0.4826, allocations: 0 / 487.2 MB, free: 5.27 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005651/0.4832, allocations: 0.5921 MB / 487.7 MB, free: 4.699 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.933e-06/0.4832, allocations: 0 / 487.7 MB, free: 4.699 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.181e-05/0.4833, allocations: 23.8 kB / 487.8 MB, free: 4.68 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.246e-06/0.4833, allocations: 0 / 487.8 MB, free: 4.68 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.391e-05/0.4833, allocations: 8 kB / 487.8 MB, free: 4.672 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.625e-06/0.4833, allocations: 1.219 kB / 487.8 MB, free: 4.672 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.213e-06/0.4833, allocations: 0 / 487.8 MB, free: 4.672 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002386/0.4836, allocations: 298.8 kB / 488.1 MB, free: 4.395 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.99e-05/0.4836, allocations: 92.86 kB / 488.2 MB, free: 4.285 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.392e-05/0.4836, allocations: 3.875 kB / 488.2 MB, free: 4.285 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.302e-05/0.4837, allocations: 20.39 kB / 488.2 MB, free: 4.27 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.592e-05/0.4838, allocations: 19.84 kB / 488.2 MB, free: 4.254 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.472e-05/0.4838, allocations: 10 kB / 488.2 MB, free: 4.246 MB / 346.7 MB Notification: Performance of sorting global known variables: time 4.576e-05/0.4839, allocations: 101.7 kB / 488.3 MB, free: 4.152 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.71e-07/0.4839, allocations: 0 / 488.3 MB, free: 4.152 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002678/0.4841, allocations: 46.5 kB / 488.4 MB, free: 4.117 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.0004451/0.4846, allocations: 0.9015 MB / 489.3 MB, free: 3.219 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002616/0.4849, allocations: 181.4 kB / 489.4 MB, free: 3.086 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.4849, allocations: 0.5625 kB / 489.4 MB, free: 3.086 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001079/0.485, allocations: 89.38 kB / 489.5 MB, free: 3.02 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001922/0.4852, allocations: 19.86 kB / 489.5 MB, free: 3.004 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005536/0.4857, allocations: 300 kB / 489.8 MB, free: 2.715 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001466/0.4859, allocations: 0.7476 MB / 490.6 MB, free: 1.945 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 7.613e-05/0.486, allocations: 26.06 kB / 490.6 MB, free: 1.922 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.831e-05/0.4861, allocations: 58.92 kB / 490.7 MB, free: 1.898 MB / 346.7 MB Notification: Performance of SimCode: time 6.11e-07/0.4861, allocations: 0 / 490.7 MB, free: 1.898 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02592/0.512, allocations: 3.418 MB / 494.1 MB, free: 14.73 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003232/0.5124, allocations: 153 kB / 494.2 MB, free: 14.5 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.672/2.184, allocations: 3.938 kB / 494.2 MB, free: 14.5 MB / 362.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