Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant2,fileNamePrefix="Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant2,fileNamePrefix="Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001072/0.001072, allocations: 92.53 kB / 16.3 MB, free: 5.539 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001059/0.001059, allocations: 184.6 kB / 17.2 MB, free: 5.473 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.475/1.475, allocations: 223.2 MB / 241.1 MB, free: 14.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003296/0.0003297, allocations: 4 kB / 300.8 MB, free: 6.133 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1506/0.1509, allocations: 50.41 MB / 351.2 MB, free: 3.711 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.002115/0.1531, allocations: 1.378 MB / 352.6 MB, free: 2.316 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007181/0.1538, allocations: 299.2 kB / 352.9 MB, free: 2.023 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001028/0.154, allocations: 4 kB / 352.9 MB, free: 2.02 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000115/0.1541, allocations: 23.8 kB / 352.9 MB, free: 1.996 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 5.463e-05/0.1541, allocations: 11.92 kB / 352.9 MB, free: 1.984 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004168/0.1546, allocations: 95.88 kB / 353 MB, free: 1.891 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002756/0.1548, allocations: 159.6 kB / 353.2 MB, free: 1.734 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002741/0.1551, allocations: 165.5 kB / 353.3 MB, free: 1.562 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000112/0.1552, allocations: 67.78 kB / 353.4 MB, free: 1.496 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001167/0.1554, allocations: 75.55 kB / 353.5 MB, free: 1.422 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.759e-05/0.1554, allocations: 12 kB / 353.5 MB, free: 1.41 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.203e-05/0.1555, allocations: 19.98 kB / 353.5 MB, free: 1.391 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.156e-05/0.1556, allocations: 43.83 kB / 353.6 MB, free: 1.348 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.073e-05/0.1556, allocations: 57.58 kB / 353.6 MB, free: 1.285 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00021/0.1558, allocations: 159.6 kB / 353.8 MB, free: 1.129 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.355e-06/0.1559, allocations: 0 / 353.8 MB, free: 1.129 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.1559, allocations: 4 kB / 353.8 MB, free: 1.125 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.65e-06/0.1559, allocations: 0 / 353.8 MB, free: 1.125 MB / 286.1 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.0006034/0.1565, allocations: 446.8 kB / 354.2 MB, free: 0.6406 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.361e-05/0.1565, allocations: 11.97 kB / 354.2 MB, free: 0.6289 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.538e-05/0.1566, allocations: 62.53 kB / 354.3 MB, free: 0.5586 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.45e-05/0.1567, allocations: 27.72 kB / 354.3 MB, free: 0.5312 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002648/0.157, allocations: 218.8 kB / 354.5 MB, free: 284 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.568e-05/0.157, allocations: 32.55 kB / 354.5 MB, free: 252 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.179e-05/0.1571, allocations: 28 kB / 354.6 MB, free: 224 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004581/0.1575, allocations: 266 kB / 354.8 MB, free: 15.94 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.223e-05/0.1575, allocations: 3.938 kB / 354.8 MB, free: 15.94 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.835e-05/0.1576, allocations: 11.94 kB / 354.9 MB, free: 15.93 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.567e-05/0.1576, allocations: 8 kB / 354.9 MB, free: 15.92 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002914/0.1579, allocations: 165.6 kB / 355 MB, free: 15.76 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001275/0.1592, allocations: 0.9791 MB / 356 MB, free: 14.71 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002845/0.1595, allocations: 177 kB / 356.2 MB, free: 14.52 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.067e-05/0.1595, allocations: 192 / 356.2 MB, free: 14.52 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002871/0.1598, allocations: 137.3 kB / 356.3 MB, free: 14.37 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.222e-06/0.1598, allocations: 0 / 356.3 MB, free: 14.37 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.0005138/0.1603, allocations: 227.3 kB / 356.5 MB, free: 14.14 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.87e-05/0.1604, allocations: 89.23 kB / 356.6 MB, free: 14.04 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001411/0.1606, allocations: 153.5 kB / 356.8 MB, free: 13.88 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.811e-05/0.1606, allocations: 37.7 kB / 356.8 MB, free: 13.84 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001577/0.1608, allocations: 144.5 kB / 356.9 MB, free: 13.69 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.367e-05/0.1608, allocations: 59.2 kB / 357 MB, free: 13.63 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.134e-05/0.1609, allocations: 7.938 kB / 357 MB, free: 13.62 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001472/0.161, allocations: 326.8 kB / 357.3 MB, free: 13.3 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001139/0.1611, allocations: 63.97 kB / 357.4 MB, free: 13.23 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001633/0.1613, allocations: 148.5 kB / 357.5 MB, free: 13.06 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001244/0.1614, allocations: 72.45 kB / 357.6 MB, free: 12.99 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.1614, allocations: 3.938 kB / 357.6 MB, free: 12.98 MB / 302.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003642/0.1618, allocations: 253.2 kB / 357.9 MB, free: 12.73 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.787e-05/0.1618, allocations: 4 kB / 357.9 MB, free: 12.73 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.506e-06/0.1619, allocations: 4.281 kB / 357.9 MB, free: 12.72 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.896e-05/0.1619, allocations: 11.98 kB / 357.9 MB, free: 12.71 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001506/0.162, allocations: 27.92 kB / 357.9 MB, free: 12.68 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.095e-05/0.1621, allocations: 4 kB / 357.9 MB, free: 12.68 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001745/0.1622, allocations: 35.73 kB / 357.9 MB, free: 12.64 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.764e-05/0.1623, allocations: 11.94 kB / 358 MB, free: 12.63 MB / 302.1 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,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,$PRE.step.localActive,step.localActive,$PRE.step.newActive,step.newActive,$PRE.step.oldActive,step.oldActive,step.active,transition2.condition,transition2.enableFire,$PRE.timer.entryTime,timer.entryTime,stateGraphRoot.activeSteps,$PRE.transition2.t_start,transition2.t_start,stateGraphRoot.resume,stateGraphRoot.suspend,transition1.condition) * Number of discrete states: 0 () * Number of clocked 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 0.0001765/0.1625, allocations: 158.5 kB / 358.1 MB, free: 12.47 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.61e-05/0.1625, allocations: 15.81 kB / 358.1 MB, free: 12.45 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003596/0.1629, allocations: 198.4 kB / 358.3 MB, free: 12.25 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.781e-06/0.1629, allocations: 0 / 358.3 MB, free: 12.25 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.354e-06/0.1629, allocations: 4 kB / 358.3 MB, free: 12.25 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.069e-06/0.1629, allocations: 0 / 358.3 MB, free: 12.25 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008055/0.1637, allocations: 0.5952 MB / 358.9 MB, free: 11.59 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.555e-06/0.1637, allocations: 0 / 358.9 MB, free: 11.59 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.574e-05/0.1638, allocations: 19.92 kB / 358.9 MB, free: 11.57 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.53e-06/0.1638, allocations: 8 kB / 358.9 MB, free: 11.57 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.982e-05/0.1638, allocations: 4 kB / 358.9 MB, free: 11.56 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.008e-06/0.1639, allocations: 3.953 kB / 359 MB, free: 11.56 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.587e-06/0.1639, allocations: 4 kB / 359 MB, free: 11.55 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003406/0.1642, allocations: 298.1 kB / 359.2 MB, free: 11.24 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.077e-05/0.1643, allocations: 96.94 kB / 359.3 MB, free: 11.12 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.102e-05/0.1643, allocations: 11.95 kB / 359.4 MB, free: 11.11 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.661e-05/0.1644, allocations: 4 kB / 359.4 MB, free: 11.11 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.073e-05/0.1645, allocations: 27.95 kB / 359.4 MB, free: 11.08 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.74e-05/0.1645, allocations: 8 kB / 359.4 MB, free: 11.07 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.966e-05/0.1646, allocations: 95.27 kB / 359.5 MB, free: 10.98 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1646, allocations: 0 / 359.5 MB, free: 10.98 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003311/0.165, allocations: 55.75 kB / 359.5 MB, free: 10.93 MB / 302.1 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.active,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.condition,transition2.enableFire,timer.entryTime,stateGraphRoot.activeSteps) * Number of discrete states: 3 (initialStep.newActive,step.newActive,transition2.t_start) * Number of clocked states: 0 () * 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.0007535/0.1657, allocations: 0.9043 MB / 360.4 MB, free: 9.988 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003794/0.1661, allocations: 184.2 kB / 360.6 MB, free: 9.809 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.807e-06/0.1661, allocations: 8.062 kB / 360.6 MB, free: 9.801 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001362/0.1663, allocations: 84.28 kB / 360.7 MB, free: 9.719 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002254/0.1665, allocations: 15.94 kB / 360.7 MB, free: 9.703 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002339/0.1689, allocations: 2.347 MB / 363.1 MB, free: 7.254 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003601/0.1692, allocations: 0.7445 MB / 363.8 MB, free: 6.484 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.831e-05/0.1693, allocations: 25.95 kB / 363.8 MB, free: 6.461 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001057/0.1694, allocations: 63.47 kB / 363.9 MB, free: 6.398 MB / 302.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1694, allocations: 0 / 363.9 MB, free: 6.398 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01653/0.186, allocations: 3.362 MB / 367.3 MB, free: 3.168 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001987/0.1862, allocations: 182.9 kB / 367.5 MB, free: 2.926 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.986/2.172, allocations: 4 kB / 367.5 MB, free: 2.922 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_Variant2_fmu --startTime=0 --stopTime=5.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_Variant2.fmu > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat does not exist to compare? outputFormat=mat