Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Examples.RegNonZeroPower.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) 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: translateModel(BuildingSystems.Utilities.Math.Examples.RegNonZeroPower,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.RegNonZeroPower") translateModel(BuildingSystems.Utilities.Math.Examples.RegNonZeroPower,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.RegNonZeroPower") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004536/0.004536, allocations: 96.7 kB / 15.73 MB, free: 6.484 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.001081/0.001081, allocations: 191.3 kB / 16.67 MB, free: 6.391 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.3/1.3, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002062/0.002062, allocations: 283 kB / 290.8 MB, free: 1.906 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9368/0.9368, allocations: 169.3 MB / 0.4983 GB, free: 13.8 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001663/0.001664, allocations: 99.84 kB / 0.6815 GB, free: 15.48 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1601/0.1618, allocations: 86.97 MB / 0.7664 GB, free: 8.434 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.RegNonZeroPower): time 0.002259/0.1641, allocations: 1.439 MB / 0.7678 GB, free: 6.984 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0006894/0.1648, allocations: 391.5 kB / 0.7682 GB, free: 6.598 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.073e-05/0.1648, allocations: 0 / 0.7682 GB, free: 6.598 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 2.64e-05/0.1649, allocations: 3.938 kB / 0.7682 GB, free: 6.594 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 4.297e-05/0.1649, allocations: 3.938 kB / 0.7682 GB, free: 6.59 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003952/0.1653, allocations: 111.7 kB / 0.7683 GB, free: 6.48 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 6.484e-05/0.1654, allocations: 31.92 kB / 0.7683 GB, free: 6.449 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 8.456e-05/0.1655, allocations: 4 kB / 0.7683 GB, free: 6.445 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 4.038e-05/0.1655, allocations: 11.92 kB / 0.7683 GB, free: 6.434 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 3.713e-05/0.1656, allocations: 4 kB / 0.7683 GB, free: 6.43 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.299e-05/0.1656, allocations: 7.938 kB / 0.7683 GB, free: 6.422 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003796/0.166, allocations: 279.6 kB / 0.7686 GB, free: 6.148 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 1.416e-05/0.166, allocations: 7.984 kB / 0.7686 GB, free: 6.141 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 2.367e-05/0.166, allocations: 15.92 kB / 0.7686 GB, free: 6.125 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0001904/0.1662, allocations: 103.7 kB / 0.7687 GB, free: 6.023 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.1662, allocations: 0 / 0.7687 GB, free: 6.023 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.202e-06/0.1662, allocations: 4 kB / 0.7687 GB, free: 6.02 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 4.939e-06/0.1663, allocations: 3.938 kB / 0.7687 GB, free: 6.016 MB / 0.5606 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0004441/0.1667, allocations: 367.1 kB / 0.7691 GB, free: 5.605 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.185e-05/0.1667, allocations: 12.03 kB / 0.7691 GB, free: 5.594 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.187e-05/0.1668, allocations: 4.891 kB / 0.7691 GB, free: 5.59 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000112/0.1669, allocations: 164.4 kB / 0.7693 GB, free: 5.391 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.586e-06/0.1669, allocations: 384 / 0.7693 GB, free: 5.391 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.454e-06/0.1669, allocations: 384 / 0.7693 GB, free: 5.391 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001586/0.1671, allocations: 58.17 kB / 0.7693 GB, free: 5.328 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.613e-06/0.1671, allocations: 192 / 0.7693 GB, free: 5.328 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.178e-05/0.1671, allocations: 7.922 kB / 0.7693 GB, free: 5.32 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.058e-06/0.1671, allocations: 0 / 0.7693 GB, free: 5.32 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001588/0.1673, allocations: 39.95 kB / 0.7694 GB, free: 5.281 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002922/0.1676, allocations: 245 kB / 0.7696 GB, free: 4.992 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001185/0.1677, allocations: 50.44 kB / 0.7696 GB, free: 4.934 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.132e-05/0.1678, allocations: 20.91 kB / 0.7697 GB, free: 4.91 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006316/0.1685, allocations: 465.4 kB / 0.7701 GB, free: 4.363 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.147e-05/0.1685, allocations: 30.56 kB / 0.7701 GB, free: 4.324 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=2): time 2.455e-06/0.1685, allocations: 0 / 0.7701 GB, free: 4.324 MB / 0.5606 GB Notification: Performance of matching and sorting (n=2): time 0.0003707/0.1689, allocations: 89.53 kB / 0.7702 GB, free: 4.23 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.117e-05/0.1689, allocations: 59.53 kB / 0.7703 GB, free: 4.16 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.631e-05/0.169, allocations: 101.8 kB / 0.7704 GB, free: 4.051 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.052e-05/0.169, allocations: 25.7 kB / 0.7704 GB, free: 4.02 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 3.976e-05/0.1691, allocations: 88.14 kB / 0.7705 GB, free: 3.93 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 1.563e-05/0.1691, allocations: 7.891 kB / 0.7705 GB, free: 3.922 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.166e-05/0.1691, allocations: 17.72 kB / 0.7705 GB, free: 3.898 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001031/0.1692, allocations: 314.8 kB / 0.7708 GB, free: 3.582 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.075e-05/0.1693, allocations: 15.98 kB / 0.7708 GB, free: 3.566 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.054e-05/0.1694, allocations: 19.98 kB / 0.7708 GB, free: 3.547 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001458/0.1696, allocations: 40.81 kB / 0.7709 GB, free: 3.504 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.794e-06/0.1696, allocations: 256 / 0.7709 GB, free: 3.504 MB / 0.5606 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001989/0.1698, allocations: 69.7 kB / 0.7709 GB, free: 3.43 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.193e-05/0.1698, allocations: 8 kB / 0.771 GB, free: 3.422 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.614e-06/0.1698, allocations: 4 kB / 0.771 GB, free: 3.418 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.113e-05/0.1698, allocations: 0 / 0.771 GB, free: 3.418 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.022e-05/0.1699, allocations: 15.92 kB / 0.771 GB, free: 3.402 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.849e-06/0.1699, allocations: 0 / 0.771 GB, free: 3.402 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.634e-05/0.17, allocations: 11.92 kB / 0.771 GB, free: 3.391 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.33e-06/0.17, allocations: 0 / 0.771 GB, free: 3.391 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.356e-05/0.1701, allocations: 110.4 kB / 0.7711 GB, free: 3.273 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.699e-05/0.1701, allocations: 11.95 kB / 0.7711 GB, free: 3.262 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002204/0.1703, allocations: 73.19 kB / 0.7712 GB, free: 3.184 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.914e-06/0.1703, allocations: 0 / 0.7712 GB, free: 3.184 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.877e-06/0.1704, allocations: 3.938 kB / 0.7712 GB, free: 3.18 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.1704, allocations: 0 / 0.7712 GB, free: 3.18 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001593/0.1705, allocations: 161.6 kB / 0.7713 GB, free: 2.973 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.81e-07/0.1705, allocations: 0 / 0.7713 GB, free: 2.973 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.419e-05/0.1706, allocations: 11.98 kB / 0.7713 GB, free: 2.961 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.1706, allocations: 4.031 kB / 0.7713 GB, free: 2.957 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.653e-06/0.1706, allocations: 0 / 0.7713 GB, free: 2.957 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.935e-06/0.1706, allocations: 3.938 kB / 0.7713 GB, free: 2.953 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.1706, allocations: 4 kB / 0.7714 GB, free: 2.949 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002517/0.1709, allocations: 163.5 kB / 0.7715 GB, free: 2.773 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 2.878e-05/0.1709, allocations: 77.11 kB / 0.7716 GB, free: 2.68 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.37e-05/0.1709, allocations: 4.031 kB / 0.7716 GB, free: 2.676 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.455e-05/0.171, allocations: 15.92 kB / 0.7716 GB, free: 2.66 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.998e-05/0.1711, allocations: 0 / 0.7716 GB, free: 2.66 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.266e-06/0.1711, allocations: 4 kB / 0.7716 GB, free: 2.656 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 4.265e-05/0.1711, allocations: 83.27 kB / 0.7717 GB, free: 2.574 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1711, allocations: 0 / 0.7717 GB, free: 2.574 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002313/0.1714, allocations: 16 kB / 0.7717 GB, free: 2.559 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001498/0.1715, allocations: 107.2 kB / 0.7718 GB, free: 2.445 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0002041/0.1717, allocations: 47.89 kB / 0.7718 GB, free: 2.398 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.1717, allocations: 0 / 0.7718 GB, free: 2.398 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 8.941e-05/0.1718, allocations: 19.98 kB / 0.7719 GB, free: 2.379 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002516/0.1721, allocations: 3.938 kB / 0.7719 GB, free: 2.375 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002354/0.1723, allocations: 113.5 kB / 0.772 GB, free: 2.238 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002195/0.1726, allocations: 0.6807 MB / 0.7726 GB, free: 1.531 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 2.22e-05/0.1726, allocations: 0 / 0.7726 GB, free: 1.531 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.004e-05/0.1726, allocations: 11.44 kB / 0.7727 GB, free: 1.52 MB / 0.5606 GB Notification: Performance of SimCode: time 2.71e-07/0.1726, allocations: 0 / 0.7727 GB, free: 1.52 MB / 0.5606 GB Notification: Performance of Templates: time 0.002686/0.1753, allocations: 0.7368 MB / 0.7734 GB, free: 0.793 MB / 0.5606 GB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.RegNonZeroPower.makefile (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.RegNonZeroPower.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.RegNonZeroPower.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.RegNonZeroPower.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.RegNonZeroPower.sim & ./BuildingSystems_BuildingSystems.Utilities.Math.Examples.RegNonZeroPower -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Examples.RegNonZeroPower.pipe 2>&1)