Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample,fileNamePrefix="Modelica_trunk_Modelica_StateGraph_Examples_FirstExample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample,fileNamePrefix="Modelica_trunk_Modelica_StateGraph_Examples_FirstExample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001528/0.001528, allocations: 101.8 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001674/0.001674, allocations: 206.1 kB / 17.9 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.509/1.509, allocations: 227.3 MB / 245.9 MB, free: 10.3 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002739/0.0002744, allocations: 8 kB / 306.7 MB, free: 1.258 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.147/0.1473, allocations: 51.49 MB / 358.2 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.001969/0.1494, allocations: 1.202 MB / 359.4 MB, free: 12.56 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008373/0.1502, allocations: 303.1 kB / 359.7 MB, free: 12.26 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001276/0.1504, allocations: 7.938 kB / 359.7 MB, free: 12.25 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001391/0.1505, allocations: 19.86 kB / 359.7 MB, free: 12.23 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 4.414e-05/0.1506, allocations: 15.92 kB / 359.7 MB, free: 12.22 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004509/0.151, allocations: 87.88 kB / 359.8 MB, free: 12.13 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002795/0.1513, allocations: 151.7 kB / 360 MB, free: 11.98 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000328/0.1517, allocations: 138.2 kB / 360.1 MB, free: 11.84 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.597e-05/0.1518, allocations: 63.78 kB / 360.2 MB, free: 11.78 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001486/0.1519, allocations: 75.66 kB / 360.2 MB, free: 11.71 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.216e-05/0.152, allocations: 12 kB / 360.2 MB, free: 11.7 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.667e-05/0.1521, allocations: 15.94 kB / 360.3 MB, free: 11.68 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.369e-05/0.1521, allocations: 31.91 kB / 360.3 MB, free: 11.65 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.931e-05/0.1522, allocations: 57.58 kB / 360.3 MB, free: 11.59 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002303/0.1524, allocations: 151.7 kB / 360.5 MB, free: 11.44 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.1525, allocations: 4 kB / 360.5 MB, free: 11.43 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.076e-06/0.1525, allocations: 0 / 360.5 MB, free: 11.43 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.191e-05/0.1525, allocations: 4 kB / 360.5 MB, free: 11.43 MB / 302.1 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.0007445/0.1532, allocations: 438.8 kB / 360.9 MB, free: 10.95 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.096e-05/0.1533, allocations: 8.031 kB / 360.9 MB, free: 10.95 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.599e-05/0.1534, allocations: 62.47 kB / 361 MB, free: 10.88 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.185e-05/0.1535, allocations: 23.72 kB / 361 MB, free: 10.85 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003372/0.1538, allocations: 218.8 kB / 361.2 MB, free: 10.6 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.254e-05/0.1539, allocations: 32.55 kB / 361.3 MB, free: 10.57 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.032e-05/0.1539, allocations: 27.95 kB / 361.3 MB, free: 10.54 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005374/0.1545, allocations: 239.4 kB / 361.5 MB, free: 10.29 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.29e-05/0.1545, allocations: 0 / 361.5 MB, free: 10.29 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.598e-05/0.1546, allocations: 12 kB / 361.5 MB, free: 10.28 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.251e-05/0.1546, allocations: 4 kB / 361.5 MB, free: 10.28 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003401/0.1549, allocations: 153.7 kB / 361.7 MB, free: 10.12 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001201/0.1561, allocations: 0.713 MB / 362.4 MB, free: 9.355 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003367/0.1565, allocations: 174.6 kB / 362.6 MB, free: 9.18 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.371e-05/0.1565, allocations: 8.125 kB / 362.6 MB, free: 9.172 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002684/0.1568, allocations: 110.8 kB / 362.7 MB, free: 9.055 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.924e-06/0.1568, allocations: 0 / 362.7 MB, free: 9.055 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004834/0.1573, allocations: 213.2 kB / 362.9 MB, free: 8.84 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.369e-05/0.1574, allocations: 59.41 kB / 363 MB, free: 8.77 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001755/0.1576, allocations: 157.8 kB / 363.1 MB, free: 8.602 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.722e-05/0.1576, allocations: 33.7 kB / 363.2 MB, free: 8.562 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001298/0.1577, allocations: 128.6 kB / 363.3 MB, free: 8.434 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.348e-05/0.1578, allocations: 71.11 kB / 363.3 MB, free: 8.363 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.712e-05/0.1579, allocations: 11.94 kB / 363.4 MB, free: 8.352 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001892/0.158, allocations: 322.8 kB / 363.7 MB, free: 8.027 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001229/0.1582, allocations: 60.62 kB / 363.7 MB, free: 7.965 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000193/0.1584, allocations: 132.1 kB / 363.9 MB, free: 7.812 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001334/0.1585, allocations: 56 kB / 363.9 MB, free: 7.758 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.791e-06/0.1585, allocations: 0 / 363.9 MB, free: 7.758 MB / 302.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0004536/0.159, allocations: 249.7 kB / 364.2 MB, free: 7.508 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.72e-05/0.159, allocations: 8 kB / 364.2 MB, free: 7.5 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.117e-06/0.159, allocations: 0 / 364.2 MB, free: 7.5 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.255e-05/0.1591, allocations: 4 kB / 364.2 MB, free: 7.496 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001605/0.1592, allocations: 35.91 kB / 364.2 MB, free: 7.461 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.717e-05/0.1593, allocations: 4 kB / 364.2 MB, free: 7.457 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001245/0.1594, allocations: 35.92 kB / 364.2 MB, free: 7.422 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.967e-05/0.1594, allocations: 19.94 kB / 364.3 MB, free: 7.402 MB / 302.1 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,initialStep.active,$PRE.initialStep.localActive,initialStep.localActive,$PRE.initialStep.newActive,initialStep.newActive,$PRE.initialStep.oldActive,initialStep.oldActive,transition1.enableFire,transition1.fire,$PRE.transition1.t_start,transition1.t_start,step.active,$PRE.step.localActive,step.localActive,$PRE.step.newActive,step.newActive,$PRE.step.oldActive,step.oldActive,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 () * Number of clocked 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 0.0001991/0.1596, allocations: 157.7 kB / 364.4 MB, free: 7.238 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.169e-05/0.1597, allocations: 7.906 kB / 364.4 MB, free: 7.23 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004055/0.1601, allocations: 195.5 kB / 364.6 MB, free: 7.027 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.644e-06/0.1601, allocations: 4 kB / 364.6 MB, free: 7.023 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.951e-06/0.1601, allocations: 0 / 364.6 MB, free: 7.023 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.033e-06/0.1601, allocations: 0 / 364.6 MB, free: 7.023 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008888/0.161, allocations: 0.5734 MB / 365.2 MB, free: 6.395 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.161, allocations: 0 / 365.2 MB, free: 6.395 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.895e-05/0.1611, allocations: 23.92 kB / 365.2 MB, free: 6.371 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.948e-06/0.1611, allocations: 0 / 365.2 MB, free: 6.371 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.849e-05/0.1612, allocations: 4 kB / 365.2 MB, free: 6.367 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.209e-06/0.1612, allocations: 3.953 kB / 365.2 MB, free: 6.363 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.452e-06/0.1612, allocations: 0 / 365.2 MB, free: 6.363 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000359/0.1615, allocations: 279.2 kB / 365.5 MB, free: 6.074 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.111e-05/0.1616, allocations: 88.95 kB / 365.6 MB, free: 5.969 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.877e-05/0.1616, allocations: 8 kB / 365.6 MB, free: 5.961 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.799e-05/0.1617, allocations: 11.98 kB / 365.6 MB, free: 5.949 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.028e-05/0.1618, allocations: 31.86 kB / 365.6 MB, free: 5.918 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.728e-05/0.1619, allocations: 4 kB / 365.6 MB, free: 5.914 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.234e-05/0.1619, allocations: 99.02 kB / 365.7 MB, free: 5.82 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1619, allocations: 0 / 365.7 MB, free: 5.82 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003294/0.1623, allocations: 55.75 kB / 365.8 MB, free: 5.766 MB / 302.1 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.active,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.active,step.newActive,step.oldActive,transition2.fire,transition2.t_start,stateGraphRoot.activeSteps) * Number of discrete states: 2 (initialStep.newActive,step.newActive) * Number of clocked states: 0 () * 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.0007853/0.1631, allocations: 0.8099 MB / 366.6 MB, free: 4.93 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003998/0.1635, allocations: 180.5 kB / 366.8 MB, free: 4.754 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.1635, allocations: 0 / 366.8 MB, free: 4.754 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001481/0.1637, allocations: 91.78 kB / 366.9 MB, free: 4.664 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00025/0.1639, allocations: 15.95 kB / 366.9 MB, free: 4.648 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002262/0.1662, allocations: 1.994 MB / 368.9 MB, free: 2.574 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005219/0.1667, allocations: 0.7368 MB / 369.6 MB, free: 1.812 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001075/0.1669, allocations: 33.94 kB / 369.6 MB, free: 1.781 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001485/0.167, allocations: 55.42 kB / 369.7 MB, free: 1.727 MB / 302.1 MB Notification: Performance of SimCode: time 9.32e-07/0.167, allocations: 0 / 369.7 MB, free: 1.727 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2573/0.4243, allocations: 3.274 MB / 373 MB, free: 18.7 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002615/0.4247, allocations: 169.5 kB / 373.1 MB, free: 18.46 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.94/2.364, allocations: 3.812 kB / 373.1 MB, free: 18.46 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_res.mat --tempDir=temp_Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_fmu --startTime=0 --stopTime=5.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_StateGraph_Examples_FirstExample.fmu > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_res.mat does not exist to compare? outputFormat=mat