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.001153/0.001153, allocations: 91.61 kB / 15.06 MB, free: 1.098 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.0009627/0.0009629, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.34/1.34, allocations: 223.3 MB / 240 MB, free: 5.438 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001744/0.001744, allocations: 274.3 kB / 291.4 MB, free: 1.992 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9177/0.9177, allocations: 169.5 MB / 0.5 GB, free: 14.24 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004707/0.0004708, allocations: 15.44 kB / 0.598 GB, free: 28.31 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1527/0.1531, allocations: 88.55 MB / 0.6845 GB, free: 15.5 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.RegStep): time 0.0006302/0.1538, allocations: 307.8 kB / 0.6848 GB, free: 15.2 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002095/0.154, allocations: 44.52 kB / 0.6848 GB, free: 15.16 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.017e-05/0.1541, allocations: 3.938 kB / 0.6848 GB, free: 15.16 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.054e-05/0.1541, allocations: 0.5625 kB / 0.6848 GB, free: 15.16 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 6.111e-06/0.1541, allocations: 0.5938 kB / 0.6848 GB, free: 15.16 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001747/0.1543, allocations: 9.938 kB / 0.6848 GB, free: 15.15 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 3.714e-05/0.1543, allocations: 0 / 0.6848 GB, free: 15.15 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.528e-05/0.1544, allocations: 3.984 kB / 0.6849 GB, free: 15.14 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.489e-05/0.1544, allocations: 3.984 kB / 0.6849 GB, free: 15.14 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.176e-05/0.1544, allocations: 7.938 kB / 0.6849 GB, free: 15.13 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 8.115e-06/0.1544, allocations: 0.9375 kB / 0.6849 GB, free: 15.13 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.882e-05/0.1545, allocations: 15.98 kB / 0.6849 GB, free: 15.12 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 6.272e-06/0.1545, allocations: 0 / 0.6849 GB, free: 15.12 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.205e-05/0.1546, allocations: 26.27 kB / 0.6849 GB, free: 15.09 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 5.795e-05/0.1546, allocations: 18.23 kB / 0.6849 GB, free: 15.07 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.467e-06/0.1546, allocations: 0 / 0.6849 GB, free: 15.07 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.052e-06/0.1546, allocations: 0 / 0.6849 GB, free: 15.07 MB / 494.1 MB Notification: Performance of Transformations before backend: time 6.171e-06/0.1547, allocations: 0 / 0.6849 GB, free: 15.07 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.0002215/0.1549, allocations: 311.4 kB / 0.6852 GB, free: 14.72 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.442e-05/0.1549, allocations: 14.5 kB / 0.6852 GB, free: 14.71 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002312/0.1552, allocations: 15.97 kB / 0.6852 GB, free: 14.69 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.486e-05/0.1552, allocations: 163 kB / 0.6854 GB, free: 14.49 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.528e-06/0.1553, allocations: 0 / 0.6854 GB, free: 14.49 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.235e-06/0.1553, allocations: 0 / 0.6854 GB, free: 14.49 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001169/0.1554, allocations: 34.44 kB / 0.6854 GB, free: 14.45 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.078e-05/0.1554, allocations: 0.6562 kB / 0.6854 GB, free: 14.45 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.614e-06/0.1554, allocations: 5.312 kB / 0.6854 GB, free: 14.45 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.147e-06/0.1554, allocations: 4 kB / 0.6854 GB, free: 14.45 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.667e-05/0.1555, allocations: 19.92 kB / 0.6855 GB, free: 14.43 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001224/0.1556, allocations: 152.9 kB / 0.6856 GB, free: 14.23 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.365e-05/0.1557, allocations: 18.61 kB / 0.6856 GB, free: 14.2 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.426e-05/0.1558, allocations: 16.91 kB / 0.6856 GB, free: 14.18 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.577e-05/0.1558, allocations: 0 / 0.6856 GB, free: 14.18 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.029e-05/0.1558, allocations: 35.34 kB / 0.6857 GB, free: 14.14 MB / 494.1 MB Notification: Performance of pre-optimization done (n=1): time 8.72e-07/0.1558, allocations: 4 kB / 0.6857 GB, free: 14.14 MB / 494.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001958/0.156, allocations: 47.17 kB / 0.6857 GB, free: 14.09 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.011e-05/0.1561, allocations: 52.28 kB / 0.6858 GB, free: 14.02 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.443e-05/0.1561, allocations: 89.86 kB / 0.6859 GB, free: 13.93 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.528e-05/0.1561, allocations: 30.39 kB / 0.6859 GB, free: 13.89 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.367e-05/0.1562, allocations: 80.89 kB / 0.686 GB, free: 13.81 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.582e-05/0.1562, allocations: 288 / 0.686 GB, free: 13.81 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.867e-06/0.1562, allocations: 1.312 kB / 0.686 GB, free: 13.81 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001109/0.1563, allocations: 314.8 kB / 0.6863 GB, free: 13.49 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.34e-05/0.1564, allocations: 12.11 kB / 0.6863 GB, free: 13.48 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.027e-05/0.1564, allocations: 11.94 kB / 0.6863 GB, free: 13.47 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.12e-05/0.1564, allocations: 3.984 kB / 0.6863 GB, free: 13.46 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.1565, allocations: 4 kB / 0.6863 GB, free: 13.46 MB / 494.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.979e-05/0.1566, allocations: 41.62 kB / 0.6863 GB, free: 13.41 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.285e-05/0.1566, allocations: 4 kB / 0.6863 GB, free: 13.41 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.657e-06/0.1566, allocations: 0 / 0.6863 GB, free: 13.41 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.646e-06/0.1566, allocations: 0 / 0.6863 GB, free: 13.41 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.138e-05/0.1567, allocations: 8.094 kB / 0.6864 GB, free: 13.4 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.998e-06/0.1567, allocations: 0 / 0.6864 GB, free: 13.4 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.305e-05/0.1567, allocations: 11.92 kB / 0.6864 GB, free: 13.39 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.27e-06/0.1567, allocations: 0 / 0.6864 GB, free: 13.39 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.201e-05/0.1568, allocations: 110.5 kB / 0.6865 GB, free: 13.27 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.092e-06/0.1568, allocations: 0 / 0.6865 GB, free: 13.27 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.29e-05/0.1568, allocations: 3.125 kB / 0.6865 GB, free: 13.27 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.652e-06/0.1568, allocations: 3.984 kB / 0.6865 GB, free: 13.27 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/0.1569, allocations: 8 kB / 0.6865 GB, free: 13.26 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.823e-06/0.1569, allocations: 0 / 0.6865 GB, free: 13.26 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.758e-05/0.1569, allocations: 153.6 kB / 0.6866 GB, free: 13.06 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.01e-07/0.157, allocations: 3.938 kB / 0.6866 GB, free: 13.05 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.779e-05/0.157, allocations: 4 kB / 0.6866 GB, free: 13.05 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.443e-06/0.157, allocations: 0 / 0.6866 GB, free: 13.05 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.42e-06/0.157, allocations: 0 / 0.6866 GB, free: 13.05 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.945e-06/0.157, allocations: 3.984 kB / 0.6866 GB, free: 13.05 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.81e-07/0.157, allocations: 0 / 0.6866 GB, free: 13.05 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000124/0.1572, allocations: 73.06 kB / 0.6867 GB, free: 12.96 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.853e-05/0.1572, allocations: 81.06 kB / 0.6868 GB, free: 12.86 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.027e-05/0.1572, allocations: 0 / 0.6868 GB, free: 12.86 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.839e-05/0.1572, allocations: 3.984 kB / 0.6868 GB, free: 12.86 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.13e-05/0.1573, allocations: 4 kB / 0.6868 GB, free: 12.85 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.635e-06/0.1573, allocations: 0 / 0.6868 GB, free: 12.85 MB / 494.1 MB Notification: Performance of sorting global known variables: time 2.681e-05/0.1573, allocations: 75.28 kB / 0.6869 GB, free: 12.78 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1573, allocations: 4.031 kB / 0.6869 GB, free: 12.77 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0001648/0.1575, allocations: 0 / 0.6869 GB, free: 12.77 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 (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.0001102/0.1576, allocations: 99.25 kB / 0.687 GB, free: 12.66 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001113/0.1577, allocations: 11.98 kB / 0.687 GB, free: 12.65 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.1577, allocations: 0 / 0.687 GB, free: 12.65 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 3.829e-05/0.1578, allocations: 11.92 kB / 0.687 GB, free: 12.64 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001256/0.1579, allocations: 8.594 kB / 0.687 GB, free: 12.64 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000207/0.1581, allocations: 86.66 kB / 0.6871 GB, free: 12.53 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001877/0.1583, allocations: 0.6692 MB / 0.6877 GB, free: 11.83 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 3.489e-05/0.1583, allocations: 4 kB / 0.6877 GB, free: 11.83 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.803e-05/0.1584, allocations: 15.38 kB / 0.6878 GB, free: 11.81 MB / 494.1 MB Notification: Performance of SimCode: time 1.81e-07/0.1584, allocations: 0 / 0.6878 GB, free: 11.81 MB / 494.1 MB Notification: Performance of Templates: time 0.001692/0.1601, allocations: 217.9 kB / 0.688 GB, free: 11.6 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)