Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant2,fileNamePrefix="Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant2,fileNamePrefix="Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001345/0.001345, allocations: 171.9 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.344/1.344, allocations: 205.2 MB / 219.8 MB, free: 14.27 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007844/0.0007845, allocations: 90.62 kB / 268 MB, free: 14.09 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.278e-05/2.28e-05, allocations: 7.984 kB / 322.5 MB, free: 17.27 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07669/0.07673, allocations: 47.57 MB / 370.1 MB, free: 1.633 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2999/0.3767, allocations: 75.7 MB / 445.8 MB, free: 1.562 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001905/0.3769, allocations: 66.97 kB / 445.9 MB, free: 1.531 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007293/0.3842, allocations: 2.998 MB / 448.9 MB, free: 14.93 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.353e-06/0.3843, allocations: 4 kB / 448.9 MB, free: 14.93 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.137e-05/0.3843, allocations: 4 kB / 448.9 MB, free: 14.92 MB / 330.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.0005178/0.3848, allocations: 454.5 kB / 449.3 MB, free: 14.45 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.189e-05/0.3849, allocations: 8.031 kB / 449.3 MB, free: 14.44 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.107e-05/0.3849, allocations: 56.73 kB / 449.4 MB, free: 14.39 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.809e-05/0.385, allocations: 23.72 kB / 449.4 MB, free: 14.36 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002283/0.3852, allocations: 223.8 kB / 449.6 MB, free: 14.12 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.27e-05/0.3853, allocations: 21.56 kB / 449.6 MB, free: 14.11 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.949e-05/0.3853, allocations: 36.17 kB / 449.7 MB, free: 14.08 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003969/0.3857, allocations: 268.1 kB / 449.9 MB, free: 13.87 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.015e-05/0.3857, allocations: 0 / 449.9 MB, free: 13.87 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.087e-05/0.3858, allocations: 11.31 kB / 450 MB, free: 13.87 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.809e-06/0.3858, allocations: 8 kB / 450 MB, free: 13.86 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002671/0.386, allocations: 161 kB / 450.1 MB, free: 13.75 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001035/0.3871, allocations: 0.9653 MB / 451.1 MB, free: 12.84 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002202/0.3873, allocations: 145.6 kB / 451.2 MB, free: 12.74 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001015/0.3874, allocations: 76.94 kB / 451.3 MB, free: 12.68 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.18e-05/0.3875, allocations: 192 / 451.3 MB, free: 12.68 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001655/0.3876, allocations: 116.4 kB / 451.4 MB, free: 12.58 MB / 330.7 MB Notification: Performance of pre-optimization done (n=23): time 1.513e-06/0.3877, allocations: 0 / 451.4 MB, free: 12.58 MB / 330.7 MB Notification: Performance of matching and sorting (n=23): time 0.0002877/0.3879, allocations: 156.5 kB / 451.6 MB, free: 12.45 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.506e-05/0.388, allocations: 67.27 kB / 451.6 MB, free: 12.38 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001089/0.3881, allocations: 138.7 kB / 451.8 MB, free: 12.25 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.073e-05/0.3882, allocations: 43.88 kB / 451.8 MB, free: 12.2 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.325e-05/0.3882, allocations: 144.8 kB / 452 MB, free: 12.07 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.033e-05/0.3883, allocations: 52.47 kB / 452 MB, free: 12.03 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.039e-05/0.3883, allocations: 6.312 kB / 452 MB, free: 12.03 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001105/0.3884, allocations: 329.8 kB / 452.3 MB, free: 11.7 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.667e-05/0.3885, allocations: 60.53 kB / 452.4 MB, free: 11.66 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001364/0.3887, allocations: 139.6 kB / 452.5 MB, free: 11.52 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001173/0.3888, allocations: 70.58 kB / 452.6 MB, free: 11.47 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.308e-06/0.3888, allocations: 3.953 kB / 452.6 MB, free: 11.46 MB / 330.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003163/0.3891, allocations: 240.3 kB / 452.8 MB, free: 11.27 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.58e-05/0.3892, allocations: 4 kB / 452.8 MB, free: 11.27 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.877e-06/0.3892, allocations: 4 kB / 452.8 MB, free: 11.26 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.779e-05/0.3892, allocations: 8.219 kB / 452.9 MB, free: 11.25 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001431/0.3893, allocations: 43.47 kB / 452.9 MB, free: 11.21 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.436e-05/0.3894, allocations: 7.984 kB / 452.9 MB, free: 11.21 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.714e-05/0.3895, allocations: 15.22 kB / 452.9 MB, free: 11.2 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.607e-05/0.3895, allocations: 11.62 kB / 452.9 MB, free: 11.19 MB / 330.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: 30 ($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,stateGraphRoot.resume,stateGraphRoot.suspend,transition1.condition) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 40 * 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 9.745e-05/0.3896, allocations: 142.1 kB / 453.1 MB, free: 11.05 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.227e-05/0.3896, allocations: 15.77 kB / 453.1 MB, free: 11.04 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003037/0.3899, allocations: 193.5 kB / 453.3 MB, free: 10.89 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.988e-06/0.3899, allocations: 4 kB / 453.3 MB, free: 10.89 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.439e-06/0.39, allocations: 0 / 453.3 MB, free: 10.89 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.188e-06/0.39, allocations: 0 / 453.3 MB, free: 10.89 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006361/0.3906, allocations: 0.5809 MB / 453.9 MB, free: 10.33 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.386e-06/0.3906, allocations: 4 kB / 453.9 MB, free: 10.32 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.058e-05/0.3907, allocations: 19.17 kB / 453.9 MB, free: 10.31 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.001e-06/0.3907, allocations: 8 kB / 453.9 MB, free: 10.3 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.365e-05/0.3907, allocations: 0 / 453.9 MB, free: 10.3 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.376e-06/0.3908, allocations: 0 / 453.9 MB, free: 10.3 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.3908, allocations: 3.938 kB / 453.9 MB, free: 10.3 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002725/0.391, allocations: 274 kB / 454.2 MB, free: 10.05 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.664e-05/0.3911, allocations: 96.28 kB / 454.3 MB, free: 9.938 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.225e-05/0.3911, allocations: 0 / 454.3 MB, free: 9.938 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.051e-05/0.3912, allocations: 7.438 kB / 454.3 MB, free: 9.934 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.375e-05/0.3913, allocations: 31.14 kB / 454.3 MB, free: 9.906 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.402e-05/0.3913, allocations: 7.375 kB / 454.3 MB, free: 9.902 MB / 330.7 MB Notification: Performance of sorting global known variables: time 6.907e-05/0.3914, allocations: 103 kB / 454.4 MB, free: 9.805 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3914, allocations: 0 / 454.4 MB, free: 9.805 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002699/0.3917, allocations: 49.92 kB / 454.4 MB, free: 9.766 MB / 330.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 (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: 2 (initialStep.newActive,step.newActive) * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 21 * 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.00057/0.3922, allocations: 0.8161 MB / 455.3 MB, free: 8.957 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002716/0.3925, allocations: 178 kB / 455.4 MB, free: 8.824 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.473e-06/0.3925, allocations: 0 / 455.4 MB, free: 8.824 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001045/0.3926, allocations: 76.69 kB / 455.5 MB, free: 8.77 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001807/0.3928, allocations: 18.81 kB / 455.5 MB, free: 8.758 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006577/0.3935, allocations: 292.8 kB / 455.8 MB, free: 8.484 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002998/0.3938, allocations: 0.7443 MB / 456.6 MB, free: 7.715 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 8.469e-05/0.3939, allocations: 22.08 kB / 456.6 MB, free: 7.691 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.519e-05/0.394, allocations: 61.28 kB / 456.6 MB, free: 7.664 MB / 330.7 MB Notification: Performance of SimCode: time 3.61e-07/0.394, allocations: 0 / 456.6 MB, free: 7.664 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01395/0.408, allocations: 3.387 MB / 460 MB, free: 4.285 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000146/0.4082, allocations: 156.2 kB / 460.2 MB, free: 4.059 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.519/1.927, allocations: 0 / 460.2 MB, free: 4.059 MB / 330.7 MB (rm -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant2_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant2.fmu > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat does not exist to compare? outputFormat=mat