Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep.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.Clocked.Examples.Elementary.RealSignals.TickBasedStep,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedStep",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedStep",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.00101/0.00101, allocations: 93.08 kB / 16.3 MB, free: 6.133 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.001029/0.001029, allocations: 179 kB / 17.2 MB, free: 6.016 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.524/1.524, allocations: 223.2 MB / 241.1 MB, free: 316 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003426/0.0003427, allocations: 4 kB / 300.8 MB, free: 6.367 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.16/0.1604, allocations: 50.42 MB / 351.2 MB, free: 3.934 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep): time 0.001805/0.1622, allocations: 1.155 MB / 352.4 MB, free: 2.766 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002126/0.1625, allocations: 35.91 kB / 352.4 MB, free: 2.73 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.262e-05/0.1626, allocations: 3.938 kB / 352.4 MB, free: 2.727 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 1.715e-05/0.1626, allocations: 0 / 352.4 MB, free: 2.727 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 4.295e-05/0.1626, allocations: 0 / 352.4 MB, free: 2.727 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002843/0.1629, allocations: 19.97 kB / 352.5 MB, free: 2.707 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 9.061e-05/0.163, allocations: 27.91 kB / 352.5 MB, free: 2.68 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001008/0.1631, allocations: 8 kB / 352.5 MB, free: 2.672 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.231e-05/0.1632, allocations: 0 / 352.5 MB, free: 2.672 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.485e-05/0.1632, allocations: 15.92 kB / 352.5 MB, free: 2.656 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.888e-05/0.1633, allocations: 4 kB / 352.5 MB, free: 2.652 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.173e-05/0.1633, allocations: 0 / 352.5 MB, free: 2.652 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 1.544e-05/0.1633, allocations: 7.875 kB / 352.5 MB, free: 2.645 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.065e-05/0.1634, allocations: 37.64 kB / 352.5 MB, free: 2.602 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 6.965e-05/0.1634, allocations: 19.94 kB / 352.6 MB, free: 2.582 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.436e-06/0.1634, allocations: 0 / 352.6 MB, free: 2.582 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.1635, allocations: 4 kB / 352.6 MB, free: 2.578 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.985e-06/0.1635, allocations: 0 / 352.6 MB, free: 2.578 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004449/0.1639, allocations: 339.5 kB / 352.9 MB, free: 2.199 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.792e-05/0.164, allocations: 12.03 kB / 352.9 MB, free: 2.188 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.856e-05/0.164, allocations: 30.56 kB / 352.9 MB, free: 2.148 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.251e-05/0.1641, allocations: 11.86 kB / 353 MB, free: 2.137 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000214/0.1643, allocations: 171.1 kB / 353.1 MB, free: 1.93 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.811e-05/0.1643, allocations: 0 / 353.1 MB, free: 1.93 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.315e-05/0.1644, allocations: 7.938 kB / 353.1 MB, free: 1.922 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000399/0.1648, allocations: 123.3 kB / 353.3 MB, free: 1.789 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.865e-06/0.1648, allocations: 0 / 353.3 MB, free: 1.789 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.025e-05/0.1648, allocations: 0 / 353.3 MB, free: 1.789 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.105e-06/0.1648, allocations: 3.953 kB / 353.3 MB, free: 1.785 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001212/0.1649, allocations: 27.97 kB / 353.3 MB, free: 1.758 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001513/0.1651, allocations: 153.7 kB / 353.4 MB, free: 1.559 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001828/0.1653, allocations: 62.48 kB / 353.5 MB, free: 1.488 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.384e-05/0.1653, allocations: 4.031 kB / 353.5 MB, free: 1.484 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.507e-05/0.1653, allocations: 34.56 kB / 353.5 MB, free: 1.441 MB / 286.1 MB Notification: Performance of pre-optimization done (n=4): time 1.112e-06/0.1653, allocations: 0 / 353.5 MB, free: 1.441 MB / 286.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002956/0.1656, allocations: 85.69 kB / 353.6 MB, free: 1.352 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.027e-05/0.1657, allocations: 55.41 kB / 353.7 MB, free: 1.285 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.989e-05/0.1658, allocations: 109.7 kB / 353.8 MB, free: 1.168 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.714e-05/0.1658, allocations: 33.7 kB / 353.8 MB, free: 1.129 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.452e-05/0.1659, allocations: 88.08 kB / 353.9 MB, free: 1.039 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.324e-05/0.1659, allocations: 0 / 353.9 MB, free: 1.039 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.604e-06/0.1659, allocations: 0 / 353.9 MB, free: 1.039 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001345/0.1661, allocations: 322.8 kB / 354.2 MB, free: 0.7148 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.167e-05/0.1661, allocations: 0 / 354.2 MB, free: 0.7148 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.494e-05/0.1661, allocations: 31.44 kB / 354.2 MB, free: 0.6719 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.454e-05/0.1661, allocations: 11.98 kB / 354.3 MB, free: 0.6602 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.1662, allocations: 0 / 354.3 MB, free: 0.6602 MB / 286.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 8.777e-05/0.1662, allocations: 57.64 kB / 354.3 MB, free: 0.5977 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.746e-05/0.1663, allocations: 4 kB / 354.3 MB, free: 0.5938 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.005e-06/0.1663, allocations: 3.984 kB / 354.3 MB, free: 0.5898 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.389e-05/0.1663, allocations: 7.938 kB / 354.3 MB, free: 0.582 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.136e-05/0.1664, allocations: 8.125 kB / 354.3 MB, free: 0.5742 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.105e-05/0.1664, allocations: 4.375 kB / 354.3 MB, free: 0.5703 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.444e-05/0.1664, allocations: 3.906 kB / 354.3 MB, free: 0.5664 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.793e-06/0.1664, allocations: 7.953 kB / 354.3 MB, free: 0.5586 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 2 (step.counter,$CLKPRE.step.counter) * Number of discrete states: 0 () * Number of clocked states: 1 (step.counter) * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * 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.309e-05/0.1665, allocations: 117.8 kB / 354.5 MB, free: 444 kB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000139/0.1667, allocations: 65.61 kB / 354.5 MB, free: 372 kB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.707e-05/0.1667, allocations: 11.89 kB / 354.5 MB, free: 352 kB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-06/0.1667, allocations: 4 kB / 354.5 MB, free: 348 kB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.108e-06/0.1667, allocations: 0 / 354.5 MB, free: 348 kB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.475e-06/0.1668, allocations: 4 kB / 354.5 MB, free: 344 kB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.057e-05/0.1668, allocations: 157.6 kB / 354.7 MB, free: 136 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.1669, allocations: 0 / 354.7 MB, free: 136 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.054e-05/0.1669, allocations: 11.98 kB / 354.7 MB, free: 124 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.886e-06/0.1669, allocations: 0 / 354.7 MB, free: 124 kB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.863e-06/0.1669, allocations: 0 / 354.7 MB, free: 124 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.342e-06/0.1669, allocations: 0 / 354.7 MB, free: 124 kB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.917e-06/0.167, allocations: 4 kB / 354.7 MB, free: 120 kB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001682/0.1671, allocations: 101 kB / 354.8 MB, free: 0 / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.312e-05/0.1672, allocations: 84.95 kB / 354.9 MB, free: 15.9 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.812e-05/0.1672, allocations: 8 kB / 354.9 MB, free: 15.89 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.17e-05/0.1673, allocations: 0 / 354.9 MB, free: 15.89 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.316e-06/0.1673, allocations: 0 / 354.9 MB, free: 15.89 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.392e-06/0.1673, allocations: 4 kB / 354.9 MB, free: 15.89 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.137e-05/0.1673, allocations: 87.2 kB / 355 MB, free: 15.8 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1673, allocations: 0 / 355 MB, free: 15.8 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002109/0.1675, allocations: 8 kB / 355 MB, free: 15.79 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: 1 (step.counter) * Number of discrete states: 0 () * Number of clocked states: 1 (step.counter) * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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 Backend phase and start with SimCode phase: time 0.000532/0.1681, allocations: 0.6506 MB / 355.7 MB, free: 15.12 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001346/0.1682, allocations: 27.92 kB / 355.7 MB, free: 15.09 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.1682, allocations: 0 / 355.7 MB, free: 15.09 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 6.52e-07/0.1682, allocations: 4 kB / 355.7 MB, free: 15.09 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003002/0.1686, allocations: 39.44 kB / 355.7 MB, free: 15.05 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007596/0.1693, allocations: 0.8451 MB / 356.6 MB, free: 14.14 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002499/0.1696, allocations: 0.6848 MB / 357.3 MB, free: 13.43 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.501e-05/0.1696, allocations: 0 / 357.3 MB, free: 13.43 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.061e-05/0.1697, allocations: 15.44 kB / 357.3 MB, free: 13.42 MB / 302.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1697, allocations: 0 / 357.3 MB, free: 13.42 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01143/0.1811, allocations: 1.145 MB / 358.4 MB, free: 12.42 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001986/0.1814, allocations: 194.6 kB / 358.6 MB, free: 12.18 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.892/2.074, allocations: 0 / 358.6 MB, free: 12.18 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedStep_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedStep.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep_res.mat does not exist to compare? outputFormat=mat