Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegStep.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.Functions.Examples.RegStep,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegStep") translateModel(BuildingSystems.Utilities.Math.Functions.Examples.RegStep,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegStep") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00133/0.00133, allocations: 106.3 kB / 16.27 MB, free: 6.414 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.001233/0.001233, allocations: 189.7 kB / 17.2 MB, free: 5.953 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.275/1.275, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002085/0.002085, allocations: 295.4 kB / 291.3 MB, free: 14.54 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8851/0.8851, allocations: 169.3 MB / 0.4988 GB, free: 4.488 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001907/0.001907, allocations: 107.2 kB / 0.5959 GB, free: 15.12 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1711/0.173, allocations: 86.97 MB / 0.6808 GB, free: 8.16 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.RegStep): time 0.001958/0.175, allocations: 0.5723 MB / 0.6814 GB, free: 7.582 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002724/0.1753, allocations: 55.84 kB / 0.6815 GB, free: 7.527 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.52e-05/0.1753, allocations: 4 kB / 0.6815 GB, free: 7.523 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.445e-05/0.1753, allocations: 0 / 0.6815 GB, free: 7.523 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 1.503e-05/0.1754, allocations: 7.875 kB / 0.6815 GB, free: 7.516 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002146/0.1756, allocations: 7.984 kB / 0.6815 GB, free: 7.508 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 4.106e-05/0.1757, allocations: 3.984 kB / 0.6815 GB, free: 7.504 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.317e-05/0.1757, allocations: 4 kB / 0.6815 GB, free: 7.5 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.764e-05/0.1757, allocations: 4 kB / 0.6815 GB, free: 7.496 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.063e-05/0.1758, allocations: 0 / 0.6815 GB, free: 7.496 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 9.588e-06/0.1758, allocations: 0 / 0.6815 GB, free: 7.496 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001118/0.1759, allocations: 23.97 kB / 0.6815 GB, free: 7.473 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.109e-05/0.1759, allocations: 4 kB / 0.6815 GB, free: 7.469 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 1.958e-05/0.1759, allocations: 0 / 0.6815 GB, free: 7.469 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 9.448e-05/0.176, allocations: 23.97 kB / 0.6815 GB, free: 7.445 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.48e-06/0.1761, allocations: 0 / 0.6815 GB, free: 7.445 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1761, allocations: 0 / 0.6815 GB, free: 7.445 MB / 494.1 MB Notification: Performance of Transformations before backend: time 7.735e-06/0.1761, allocations: 0 / 0.6815 GB, free: 7.445 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0002942/0.1764, allocations: 315.5 kB / 0.6818 GB, free: 7.086 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.515e-05/0.1764, allocations: 8.031 kB / 0.6818 GB, free: 7.078 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000263/0.1767, allocations: 20.91 kB / 0.6819 GB, free: 7.059 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.851e-05/0.1768, allocations: 160.4 kB / 0.682 GB, free: 6.863 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.271e-05/0.1768, allocations: 4.375 kB / 0.682 GB, free: 6.859 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.646e-06/0.1768, allocations: 384 / 0.682 GB, free: 6.859 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001331/0.177, allocations: 38.19 kB / 0.6821 GB, free: 6.816 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.003e-06/0.177, allocations: 192 / 0.6821 GB, free: 6.816 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.16e-05/0.177, allocations: 3.938 kB / 0.6821 GB, free: 6.812 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.506e-06/0.177, allocations: 0 / 0.6821 GB, free: 6.812 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.952e-05/0.1771, allocations: 15.98 kB / 0.6821 GB, free: 6.797 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000159/0.1773, allocations: 149.7 kB / 0.6822 GB, free: 6.602 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.198e-05/0.1774, allocations: 22.55 kB / 0.6822 GB, free: 6.57 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.601e-05/0.1774, allocations: 16.89 kB / 0.6823 GB, free: 6.551 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.794e-05/0.1775, allocations: 0 / 0.6823 GB, free: 6.551 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.461e-05/0.1775, allocations: 34.56 kB / 0.6823 GB, free: 6.508 MB / 494.1 MB Notification: Performance of pre-optimization done (n=1): time 8.72e-07/0.1775, allocations: 4 kB / 0.6823 GB, free: 6.504 MB / 494.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002297/0.1777, allocations: 49.61 kB / 0.6823 GB, free: 6.449 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.433e-05/0.1778, allocations: 55.34 kB / 0.6824 GB, free: 6.383 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.925e-05/0.1778, allocations: 89.86 kB / 0.6825 GB, free: 6.285 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.248e-05/0.1778, allocations: 25.7 kB / 0.6825 GB, free: 6.254 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.227e-05/0.1779, allocations: 80.14 kB / 0.6826 GB, free: 6.172 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.673e-05/0.1779, allocations: 288 / 0.6826 GB, free: 6.172 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.361e-05/0.1779, allocations: 21.84 kB / 0.6826 GB, free: 6.145 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001203/0.1781, allocations: 314.8 kB / 0.6829 GB, free: 5.828 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.013e-05/0.1781, allocations: 7.984 kB / 0.6829 GB, free: 5.82 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.92e-05/0.1782, allocations: 4 kB / 0.6829 GB, free: 5.816 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.236e-05/0.1783, allocations: 16.84 kB / 0.6829 GB, free: 5.797 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.774e-06/0.1783, allocations: 64 / 0.6829 GB, free: 5.797 MB / 494.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001267/0.1784, allocations: 53.61 kB / 0.683 GB, free: 5.738 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.619e-05/0.1784, allocations: 4 kB / 0.683 GB, free: 5.734 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.689e-06/0.1784, allocations: 0 / 0.683 GB, free: 5.734 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.436e-05/0.1785, allocations: 3.938 kB / 0.683 GB, free: 5.73 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.396e-05/0.1785, allocations: 4 kB / 0.683 GB, free: 5.727 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.23e-06/0.1786, allocations: 0 / 0.683 GB, free: 5.727 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.698e-05/0.1786, allocations: 7.922 kB / 0.683 GB, free: 5.719 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.603e-06/0.1786, allocations: 0 / 0.683 GB, free: 5.719 MB / 494.1 MB 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 (1): * Single equations (assignments): 1 * 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.763e-05/0.1787, allocations: 117.9 kB / 0.6831 GB, free: 5.594 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.865e-06/0.1787, allocations: 0 / 0.6831 GB, free: 5.594 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.711e-05/0.1787, allocations: 7.062 kB / 0.6831 GB, free: 5.586 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.403e-06/0.1787, allocations: 0 / 0.6831 GB, free: 5.586 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.262e-06/0.1788, allocations: 0 / 0.6831 GB, free: 5.586 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.525e-06/0.1788, allocations: 3.938 kB / 0.6831 GB, free: 5.582 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.445e-05/0.1788, allocations: 149.7 kB / 0.6833 GB, free: 5.387 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.343e-06/0.1789, allocations: 0 / 0.6833 GB, free: 5.387 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.176e-05/0.1789, allocations: 0 / 0.6833 GB, free: 5.387 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.024e-06/0.1789, allocations: 8 kB / 0.6833 GB, free: 5.379 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.474e-06/0.1789, allocations: 3.938 kB / 0.6833 GB, free: 5.375 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.213e-06/0.1789, allocations: 0 / 0.6833 GB, free: 5.375 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.1789, allocations: 0 / 0.6833 GB, free: 5.375 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001433/0.1791, allocations: 73.05 kB / 0.6833 GB, free: 5.285 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.978e-05/0.1791, allocations: 77.11 kB / 0.6834 GB, free: 5.191 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.275e-05/0.1792, allocations: 7.969 kB / 0.6834 GB, free: 5.184 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.955e-05/0.1792, allocations: 0 / 0.6834 GB, free: 5.184 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.469e-05/0.1792, allocations: 3.984 kB / 0.6834 GB, free: 5.18 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.719e-06/0.1792, allocations: 4 kB / 0.6834 GB, free: 5.176 MB / 494.1 MB Notification: Performance of sorting global known variables: time 3.404e-05/0.1793, allocations: 75.28 kB / 0.6835 GB, free: 5.102 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1793, allocations: 0 / 0.6835 GB, free: 5.102 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0001758/0.1795, allocations: 0 / 0.6835 GB, free: 5.102 MB / 494.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 1 * 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.0001214/0.1796, allocations: 95.25 kB / 0.6836 GB, free: 4.996 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.000152/0.1797, allocations: 19.98 kB / 0.6836 GB, free: 4.977 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.1797, allocations: 0 / 0.6836 GB, free: 4.977 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 4.493e-05/0.1798, allocations: 15.92 kB / 0.6836 GB, free: 4.961 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001378/0.1799, allocations: 0 / 0.6836 GB, free: 4.961 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002748/0.1802, allocations: 110.7 kB / 0.6837 GB, free: 4.82 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002324/0.1805, allocations: 0.6728 MB / 0.6844 GB, free: 4.121 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.78e-05/0.1805, allocations: 15.56 kB / 0.6844 GB, free: 4.105 MB / 494.1 MB Notification: Performance of SimCode: time 4.21e-07/0.1805, allocations: 0 / 0.6844 GB, free: 4.105 MB / 494.1 MB Notification: Performance of Templates: time 0.001519/0.182, allocations: 394.8 kB / 0.6848 GB, free: 3.723 MB / 494.1 MB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegStep.makefile (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegStep.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegStep.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegStep.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegStep.sim & ./BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegStep -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegStep.pipe 2>&1)