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.001568/0.001568, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001871/0.001871, allocations: 195.3 kB / 16.53 MB, free: 6.664 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.357/1.357, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002186/0.002186, allocations: 291 kB / 290.7 MB, free: 2.012 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9809/0.9809, allocations: 169.3 MB / 0.4982 GB, free: 13.96 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001873/0.001873, allocations: 106.9 kB / 0.5953 GB, free: 27.98 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1625/0.1644, allocations: 86.98 MB / 0.6802 GB, free: 0.7266 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.RegStep): time 0.002023/0.1665, allocations: 0.5643 MB / 0.6807 GB, free: 176 kB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003341/0.1669, allocations: 59.72 kB / 0.6808 GB, free: 116 kB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.724e-05/0.1669, allocations: 0.625 kB / 0.6808 GB, free: 116 kB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 1.052e-05/0.1669, allocations: 0 / 0.6808 GB, free: 116 kB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 5.29e-06/0.1669, allocations: 1.781 kB / 0.6808 GB, free: 116 kB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002621/0.1672, allocations: 15.92 kB / 0.6808 GB, free: 100 kB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 3.826e-05/0.1673, allocations: 4 kB / 0.6808 GB, free: 96 kB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.541e-05/0.1673, allocations: 0 / 0.6808 GB, free: 96 kB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.416e-05/0.1673, allocations: 11.92 kB / 0.6808 GB, free: 84 kB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.942e-05/0.1674, allocations: 0 / 0.6808 GB, free: 84 kB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 1.027e-05/0.1674, allocations: 0 / 0.6808 GB, free: 84 kB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001083/0.1675, allocations: 27.97 kB / 0.6809 GB, free: 56 kB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 9.237e-06/0.1675, allocations: 0 / 0.6809 GB, free: 56 kB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 1.706e-05/0.1675, allocations: 0 / 0.6809 GB, free: 56 kB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 8.094e-05/0.1676, allocations: 15.98 kB / 0.6809 GB, free: 40 kB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.427e-06/0.1676, allocations: 0 / 0.6809 GB, free: 40 kB / 478.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1676, allocations: 0 / 0.6809 GB, free: 40 kB / 478.1 MB Notification: Performance of Transformations before backend: time 5.13e-06/0.1676, allocations: 0 / 0.6809 GB, free: 40 kB / 478.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.0003001/0.1679, allocations: 319.6 kB / 0.6812 GB, free: 15.68 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.298e-05/0.168, allocations: 8.031 kB / 0.6812 GB, free: 15.67 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002593/0.1683, allocations: 20.91 kB / 0.6812 GB, free: 15.65 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.648e-05/0.1684, allocations: 164.3 kB / 0.6814 GB, free: 15.45 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.053e-05/0.1684, allocations: 384 / 0.6814 GB, free: 15.45 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.187e-05/0.1684, allocations: 4.375 kB / 0.6814 GB, free: 15.45 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001363/0.1685, allocations: 38.19 kB / 0.6814 GB, free: 15.4 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.514e-06/0.1686, allocations: 4.188 kB / 0.6814 GB, free: 15.4 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.563e-05/0.1686, allocations: 3.938 kB / 0.6814 GB, free: 15.39 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.468e-06/0.1686, allocations: 0 / 0.6814 GB, free: 15.39 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001054/0.1687, allocations: 11.98 kB / 0.6814 GB, free: 15.38 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001445/0.1689, allocations: 149.7 kB / 0.6816 GB, free: 15.19 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.723e-05/0.1689, allocations: 18.61 kB / 0.6816 GB, free: 15.16 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.494e-05/0.169, allocations: 16.91 kB / 0.6816 GB, free: 15.14 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.825e-05/0.169, allocations: 0 / 0.6816 GB, free: 15.14 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.12e-05/0.1691, allocations: 34.5 kB / 0.6816 GB, free: 15.1 MB / 494.1 MB Notification: Performance of pre-optimization done (n=1): time 7.52e-07/0.1691, allocations: 0 / 0.6816 GB, free: 15.1 MB / 494.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002315/0.1693, allocations: 53.61 kB / 0.6817 GB, free: 15.04 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.163e-05/0.1693, allocations: 51.41 kB / 0.6817 GB, free: 14.98 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.027e-05/0.1694, allocations: 89.98 kB / 0.6818 GB, free: 14.88 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.295e-05/0.1694, allocations: 29.7 kB / 0.6818 GB, free: 14.84 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.471e-05/0.1694, allocations: 80.14 kB / 0.6819 GB, free: 14.76 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.849e-05/0.1695, allocations: 8.266 kB / 0.6819 GB, free: 14.75 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.971e-05/0.1695, allocations: 9.719 kB / 0.6819 GB, free: 14.74 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001032/0.1696, allocations: 310.8 kB / 0.6822 GB, free: 14.43 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.907e-05/0.1697, allocations: 7.984 kB / 0.6822 GB, free: 14.42 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.233e-05/0.1697, allocations: 8 kB / 0.6822 GB, free: 14.41 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.768e-05/0.1698, allocations: 20.84 kB / 0.6823 GB, free: 14.39 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.396e-06/0.1698, allocations: 4 kB / 0.6823 GB, free: 14.38 MB / 494.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001263/0.17, allocations: 41.67 kB / 0.6823 GB, free: 14.34 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.386e-05/0.17, allocations: 4 kB / 0.6823 GB, free: 14.33 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.27e-06/0.17, allocations: 0 / 0.6823 GB, free: 14.33 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.366e-05/0.17, allocations: 7.875 kB / 0.6823 GB, free: 14.32 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.284e-05/0.1701, allocations: 4 kB / 0.6823 GB, free: 14.32 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.551e-06/0.1701, allocations: 4.031 kB / 0.6823 GB, free: 14.32 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.963e-05/0.1702, allocations: 11.92 kB / 0.6823 GB, free: 14.3 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.021e-06/0.1702, allocations: 0 / 0.6823 GB, free: 14.3 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 6.84e-05/0.1702, allocations: 107.2 kB / 0.6824 GB, free: 14.19 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.183e-05/0.1703, allocations: 3.984 kB / 0.6824 GB, free: 14.19 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.09e-05/0.1703, allocations: 15 kB / 0.6825 GB, free: 14.17 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.368e-06/0.1703, allocations: 0 / 0.6825 GB, free: 14.17 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.245e-05/0.1703, allocations: 7.938 kB / 0.6825 GB, free: 14.16 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.615e-06/0.1703, allocations: 4 kB / 0.6825 GB, free: 14.16 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.017e-05/0.1704, allocations: 145.7 kB / 0.6826 GB, free: 13.97 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.1704, allocations: 0 / 0.6826 GB, free: 13.97 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.396e-05/0.1705, allocations: 4 kB / 0.6826 GB, free: 13.96 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-06/0.1705, allocations: 0 / 0.6826 GB, free: 13.96 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.196e-06/0.1705, allocations: 3.938 kB / 0.6826 GB, free: 13.96 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.1705, allocations: 0 / 0.6826 GB, free: 13.96 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.1705, allocations: 0 / 0.6826 GB, free: 13.96 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000148/0.1707, allocations: 73.11 kB / 0.6827 GB, free: 13.87 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.165e-05/0.1707, allocations: 77.11 kB / 0.6828 GB, free: 13.78 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.423e-05/0.1707, allocations: 7.938 kB / 0.6828 GB, free: 13.77 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.138e-05/0.1708, allocations: 0 / 0.6828 GB, free: 13.77 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.12e-05/0.1708, allocations: 7.984 kB / 0.6828 GB, free: 13.76 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.136e-06/0.1708, allocations: 0 / 0.6828 GB, free: 13.76 MB / 494.1 MB Notification: Performance of sorting global known variables: time 3.074e-05/0.1708, allocations: 75.28 kB / 0.6829 GB, free: 13.69 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1708, allocations: 0 / 0.6829 GB, free: 13.69 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0001741/0.171, allocations: 4.031 kB / 0.6829 GB, free: 13.68 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.0001133/0.1711, allocations: 105.2 kB / 0.683 GB, free: 13.57 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.000144/0.1713, allocations: 11.98 kB / 0.683 GB, free: 13.56 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.1713, allocations: 0 / 0.683 GB, free: 13.56 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 4.548e-05/0.1713, allocations: 7.984 kB / 0.683 GB, free: 13.55 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000141/0.1715, allocations: 4 kB / 0.683 GB, free: 13.55 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002849/0.1718, allocations: 89.09 kB / 0.6831 GB, free: 13.43 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002488/0.172, allocations: 0.6729 MB / 0.6837 GB, free: 12.73 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 3.591e-05/0.1721, allocations: 0 / 0.6837 GB, free: 12.73 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.481e-05/0.1721, allocations: 7.438 kB / 0.6837 GB, free: 12.73 MB / 494.1 MB Notification: Performance of SimCode: time 3.6e-07/0.1721, allocations: 4 kB / 0.6837 GB, free: 12.72 MB / 494.1 MB Notification: Performance of Templates: time 0.001856/0.174, allocations: 235.3 kB / 0.684 GB, free: 12.5 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)