Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.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,fileNamePrefix="Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample,fileNamePrefix="Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample",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.001517/0.001517, allocations: 172.3 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.343/1.343, allocations: 205.2 MB / 219.8 MB, free: 14.2 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.0008353/0.0008353, allocations: 78.73 kB / 268 MB, free: 14.03 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.36e-05/2.363e-05, allocations: 0 / 322.5 MB, free: 17.27 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07654/0.07658, allocations: 47.57 MB / 370.1 MB, free: 1.629 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.295/0.3716, allocations: 75.08 MB / 445.2 MB, free: 1.824 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001945/0.3719, allocations: 63.66 kB / 445.2 MB, free: 1.793 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006881/0.3788, allocations: 2.826 MB / 448.1 MB, free: 15.34 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.312e-06/0.3788, allocations: 4 kB / 448.1 MB, free: 15.33 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.262e-05/0.3788, allocations: 8 kB / 448.1 MB, free: 15.32 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: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0004929/0.3793, allocations: 439.3 kB / 448.5 MB, free: 14.87 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.949e-05/0.3793, allocations: 11.97 kB / 448.5 MB, free: 14.86 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.863e-05/0.3794, allocations: 60.59 kB / 448.6 MB, free: 14.8 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.528e-05/0.3795, allocations: 19.81 kB / 448.6 MB, free: 14.78 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002518/0.3797, allocations: 224.4 kB / 448.8 MB, free: 14.54 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.81e-05/0.3798, allocations: 26.81 kB / 448.8 MB, free: 14.52 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.579e-05/0.3798, allocations: 22 kB / 448.9 MB, free: 14.5 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003622/0.3802, allocations: 237.5 kB / 449.1 MB, free: 14.32 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.134e-05/0.3802, allocations: 4 kB / 449.1 MB, free: 14.32 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.109e-05/0.3802, allocations: 3.875 kB / 449.1 MB, free: 14.32 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.317e-06/0.3802, allocations: 8 kB / 449.1 MB, free: 14.31 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002802/0.3805, allocations: 156.3 kB / 449.3 MB, free: 14.21 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008723/0.3814, allocations: 0.6857 MB / 450 MB, free: 13.59 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002444/0.3817, allocations: 171 kB / 450.1 MB, free: 13.46 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001051/0.3818, allocations: 80.14 kB / 450.2 MB, free: 13.41 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.202e-05/0.3818, allocations: 12.16 kB / 450.2 MB, free: 13.4 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001676/0.382, allocations: 116.8 kB / 450.3 MB, free: 13.3 MB / 330.7 MB Notification: Performance of pre-optimization done (n=24): time 1.603e-06/0.382, allocations: 7.938 kB / 450.3 MB, free: 13.29 MB / 330.7 MB Notification: Performance of matching and sorting (n=24): time 0.0002948/0.3823, allocations: 159.6 kB / 450.5 MB, free: 13.16 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.647e-05/0.3823, allocations: 55.41 kB / 450.5 MB, free: 13.09 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001/0.3824, allocations: 143.8 kB / 450.7 MB, free: 12.96 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.384e-05/0.3825, allocations: 33.08 kB / 450.7 MB, free: 12.92 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.434e-05/0.3826, allocations: 130.8 kB / 450.8 MB, free: 12.8 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.236e-05/0.3826, allocations: 60.81 kB / 450.9 MB, free: 12.75 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.122e-05/0.3826, allocations: 10 kB / 450.9 MB, free: 12.75 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001158/0.3827, allocations: 328.6 kB / 451.2 MB, free: 12.42 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.79e-05/0.3828, allocations: 59.03 kB / 451.3 MB, free: 12.38 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001278/0.383, allocations: 119.9 kB / 451.4 MB, free: 12.27 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001135/0.3831, allocations: 69.08 kB / 451.5 MB, free: 12.21 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.375e-06/0.3831, allocations: 0 / 451.5 MB, free: 12.21 MB / 330.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003081/0.3834, allocations: 242 kB / 451.7 MB, free: 12.02 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.448e-05/0.3834, allocations: 4 kB / 451.7 MB, free: 12.02 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.684e-06/0.3835, allocations: 8.172 kB / 451.7 MB, free: 12.01 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.543e-05/0.3835, allocations: 4 kB / 451.7 MB, free: 12 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001325/0.3836, allocations: 35.47 kB / 451.8 MB, free: 11.97 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.237e-06/0.3836, allocations: 4 kB / 451.8 MB, free: 11.97 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.315e-05/0.3837, allocations: 15.56 kB / 451.8 MB, free: 11.96 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.643e-05/0.3838, allocations: 11.69 kB / 451.8 MB, free: 11.95 MB / 330.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 () * 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 8.438e-05/0.3839, allocations: 131.3 kB / 451.9 MB, free: 11.82 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.999e-05/0.3839, allocations: 15.44 kB / 451.9 MB, free: 11.81 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003048/0.3842, allocations: 199.6 kB / 452.1 MB, free: 11.65 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.118e-06/0.3842, allocations: 3.953 kB / 452.1 MB, free: 11.64 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.118e-06/0.3842, allocations: 4 kB / 452.1 MB, free: 11.64 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.058e-06/0.3842, allocations: 0 / 452.1 MB, free: 11.64 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006451/0.3849, allocations: 0.5643 MB / 452.7 MB, free: 11.11 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.3849, allocations: 0 / 452.7 MB, free: 11.11 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.348e-05/0.385, allocations: 19.98 kB / 452.7 MB, free: 11.09 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.799e-06/0.385, allocations: 4 kB / 452.7 MB, free: 11.08 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.185e-05/0.385, allocations: 3.438 kB / 452.7 MB, free: 11.08 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.946e-06/0.385, allocations: 0 / 452.7 MB, free: 11.08 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.385, allocations: 3.938 kB / 452.7 MB, free: 11.08 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002596/0.3853, allocations: 267.3 kB / 453 MB, free: 10.84 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.148e-05/0.3853, allocations: 104.7 kB / 453.1 MB, free: 10.71 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.355e-05/0.3854, allocations: 7.5 kB / 453.1 MB, free: 10.71 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.563e-05/0.3855, allocations: 15.55 kB / 453.1 MB, free: 10.7 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.817e-05/0.3855, allocations: 23.28 kB / 453.1 MB, free: 10.68 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.297e-05/0.3856, allocations: 4 kB / 453.1 MB, free: 10.68 MB / 330.7 MB Notification: Performance of sorting global known variables: time 5.508e-05/0.3856, allocations: 103.1 kB / 453.2 MB, free: 10.58 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3856, allocations: 0 / 453.2 MB, free: 10.58 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002421/0.3859, allocations: 39.06 kB / 453.3 MB, free: 10.55 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 (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) * 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.0005449/0.3864, allocations: 0.8204 MB / 454.1 MB, free: 9.746 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002641/0.3867, allocations: 167.8 kB / 454.3 MB, free: 9.621 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.3867, allocations: 0 / 454.3 MB, free: 9.621 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001165/0.3868, allocations: 90.8 kB / 454.4 MB, free: 9.555 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001695/0.387, allocations: 17.2 kB / 454.4 MB, free: 9.543 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005573/0.3876, allocations: 297.1 kB / 454.7 MB, free: 9.262 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002881/0.3879, allocations: 0.7363 MB / 455.4 MB, free: 8.5 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 7.81e-05/0.388, allocations: 30.06 kB / 455.4 MB, free: 8.469 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.655e-05/0.3881, allocations: 59.34 kB / 455.5 MB, free: 8.441 MB / 330.7 MB Notification: Performance of SimCode: time 2.31e-07/0.3881, allocations: 0 / 455.5 MB, free: 8.441 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01476/0.4028, allocations: 3.313 MB / 458.8 MB, free: 5.141 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002562/0.4031, allocations: 146.6 kB / 458.9 MB, free: 4.914 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.527/1.93, allocations: 0 / 458.9 MB, free: 4.914 MB / 330.7 MB (rm -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample.fmu > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_res.mat does not exist to compare? outputFormat=mat