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.001306/0.001306, allocations: 105.1 kB / 16.35 MB, free: 5.824 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.001088/0.001088, allocations: 190.5 kB / 17.29 MB, free: 5.48 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.299/1.299, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002043/0.002043, allocations: 278.8 kB / 291.4 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9043/0.9043, allocations: 169.3 MB / 0.4989 GB, free: 4.457 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001793/0.001793, allocations: 95.08 kB / 0.5967 GB, free: 14.41 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1526/0.1544, allocations: 86.98 MB / 0.6816 GB, free: 7.43 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.RegStep): time 0.001778/0.1562, allocations: 0.5629 MB / 0.6822 GB, free: 6.867 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002431/0.1565, allocations: 51.92 kB / 0.6822 GB, free: 6.816 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.55e-05/0.1565, allocations: 8 kB / 0.6822 GB, free: 6.809 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.093e-05/0.1565, allocations: 0 / 0.6822 GB, free: 6.809 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 6.462e-06/0.1565, allocations: 0 / 0.6822 GB, free: 6.809 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002132/0.1568, allocations: 19.86 kB / 0.6822 GB, free: 6.789 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 3.818e-05/0.1568, allocations: 0 / 0.6822 GB, free: 6.789 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.355e-05/0.1569, allocations: 4 kB / 0.6822 GB, free: 6.785 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.437e-05/0.1569, allocations: 7.969 kB / 0.6823 GB, free: 6.777 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.833e-05/0.1569, allocations: 0 / 0.6823 GB, free: 6.777 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 9.348e-06/0.1569, allocations: 0 / 0.6823 GB, free: 6.777 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.687e-05/0.157, allocations: 19.98 kB / 0.6823 GB, free: 6.758 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 8.776e-06/0.157, allocations: 7.938 kB / 0.6823 GB, free: 6.75 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 1.557e-05/0.1571, allocations: 4 kB / 0.6823 GB, free: 6.746 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 7.723e-05/0.1571, allocations: 7.984 kB / 0.6823 GB, free: 6.738 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.556e-06/0.1571, allocations: 4 kB / 0.6823 GB, free: 6.734 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.1572, allocations: 0 / 0.6823 GB, free: 6.734 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.998e-06/0.1572, allocations: 0 / 0.6823 GB, free: 6.734 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.0002496/0.1574, allocations: 319.6 kB / 0.6826 GB, free: 6.371 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.195e-05/0.1575, allocations: 8.031 kB / 0.6826 GB, free: 6.363 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002419/0.1577, allocations: 20.91 kB / 0.6826 GB, free: 6.344 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.108e-05/0.1578, allocations: 160.4 kB / 0.6828 GB, free: 6.148 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.027e-06/0.1578, allocations: 384 / 0.6828 GB, free: 6.148 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.053e-05/0.1578, allocations: 4.375 kB / 0.6828 GB, free: 6.145 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001324/0.158, allocations: 46.16 kB / 0.6828 GB, free: 6.094 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.081e-06/0.158, allocations: 4.125 kB / 0.6828 GB, free: 6.09 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.407e-06/0.158, allocations: 3.938 kB / 0.6828 GB, free: 6.086 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.857e-06/0.158, allocations: 0 / 0.6828 GB, free: 6.086 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.063e-05/0.1581, allocations: 11.98 kB / 0.6828 GB, free: 6.074 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001272/0.1582, allocations: 149.7 kB / 0.683 GB, free: 5.879 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.949e-05/0.1583, allocations: 22.59 kB / 0.683 GB, free: 5.848 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.503e-05/0.1583, allocations: 4.859 kB / 0.683 GB, free: 5.84 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.877e-05/0.1584, allocations: 4.062 kB / 0.683 GB, free: 5.836 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.85e-05/0.1584, allocations: 34.5 kB / 0.6831 GB, free: 5.793 MB / 494.1 MB Notification: Performance of pre-optimization done (n=1): time 1.052e-06/0.1584, allocations: 4 kB / 0.6831 GB, free: 5.789 MB / 494.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002075/0.1586, allocations: 53.61 kB / 0.6831 GB, free: 5.73 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.111e-05/0.1586, allocations: 51.41 kB / 0.6832 GB, free: 5.668 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.551e-05/0.1587, allocations: 89.86 kB / 0.6832 GB, free: 5.57 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.098e-05/0.1587, allocations: 25.7 kB / 0.6833 GB, free: 5.539 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.295e-05/0.1587, allocations: 84.12 kB / 0.6833 GB, free: 5.453 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.606e-05/0.1588, allocations: 0 / 0.6833 GB, free: 5.453 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.029e-05/0.1588, allocations: 21.83 kB / 0.6834 GB, free: 5.426 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001014/0.1589, allocations: 310.8 kB / 0.6837 GB, free: 5.113 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.647e-05/0.159, allocations: 8 kB / 0.6837 GB, free: 5.105 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.66e-05/0.159, allocations: 3.984 kB / 0.6837 GB, free: 5.102 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.76e-05/0.1591, allocations: 24.78 kB / 0.6837 GB, free: 5.074 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.1591, allocations: 0 / 0.6837 GB, free: 5.074 MB / 494.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.000115/0.1592, allocations: 41.75 kB / 0.6837 GB, free: 5.027 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.298e-05/0.1593, allocations: 8 kB / 0.6837 GB, free: 5.02 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.837e-06/0.1593, allocations: 0 / 0.6837 GB, free: 5.02 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.245e-05/0.1593, allocations: 3.938 kB / 0.6838 GB, free: 5.016 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.452e-05/0.1594, allocations: 4 kB / 0.6838 GB, free: 5.012 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.593e-06/0.1594, allocations: 3.984 kB / 0.6838 GB, free: 5.008 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.22e-05/0.1594, allocations: 3.938 kB / 0.6838 GB, free: 5.004 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.091e-06/0.1594, allocations: 3.938 kB / 0.6838 GB, free: 5 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.709e-05/0.1595, allocations: 113.9 kB / 0.6839 GB, free: 4.879 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.824e-06/0.1595, allocations: 0 / 0.6839 GB, free: 4.879 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.728e-05/0.1595, allocations: 7.062 kB / 0.6839 GB, free: 4.871 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.347e-06/0.1595, allocations: 0 / 0.6839 GB, free: 4.871 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.397e-06/0.1596, allocations: 3.938 kB / 0.6839 GB, free: 4.867 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.937e-06/0.1596, allocations: 0 / 0.6839 GB, free: 4.867 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.81e-05/0.1597, allocations: 157.6 kB / 0.684 GB, free: 4.664 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.71e-07/0.1597, allocations: 0 / 0.684 GB, free: 4.664 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.008e-05/0.1597, allocations: 0 / 0.684 GB, free: 4.664 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.377e-06/0.1597, allocations: 8 kB / 0.684 GB, free: 4.656 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.476e-06/0.1597, allocations: 7.922 kB / 0.6841 GB, free: 4.648 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.1597, allocations: 0 / 0.6841 GB, free: 4.648 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.51e-07/0.1597, allocations: 0 / 0.6841 GB, free: 4.648 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001262/0.1599, allocations: 61.12 kB / 0.6841 GB, free: 4.57 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.901e-05/0.1599, allocations: 81.11 kB / 0.6842 GB, free: 4.473 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.188e-05/0.1599, allocations: 3.969 kB / 0.6842 GB, free: 4.469 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.096e-05/0.16, allocations: 7.984 kB / 0.6842 GB, free: 4.461 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.181e-05/0.16, allocations: 0 / 0.6842 GB, free: 4.461 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.246e-06/0.16, allocations: 0 / 0.6842 GB, free: 4.461 MB / 494.1 MB Notification: Performance of sorting global known variables: time 2.365e-05/0.16, allocations: 79.28 kB / 0.6843 GB, free: 4.383 MB / 494.1 MB Notification: Performance of sort global known variables: time 1e-07/0.16, allocations: 0 / 0.6843 GB, free: 4.383 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0001751/0.1602, allocations: 0 / 0.6843 GB, free: 4.383 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 9.698e-05/0.1603, allocations: 99.19 kB / 0.6844 GB, free: 4.273 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001226/0.1604, allocations: 15.98 kB / 0.6844 GB, free: 4.258 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.1605, allocations: 0 / 0.6844 GB, free: 4.258 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 3.956e-05/0.1605, allocations: 7.984 kB / 0.6844 GB, free: 4.25 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001208/0.1606, allocations: 6.031 kB / 0.6844 GB, free: 4.246 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002315/0.1609, allocations: 84.97 kB / 0.6845 GB, free: 4.137 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002125/0.1611, allocations: 0.669 MB / 0.6851 GB, free: 3.441 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 3.114e-05/0.1611, allocations: 12.11 kB / 0.6851 GB, free: 3.43 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.134e-05/0.1612, allocations: 7.438 kB / 0.6851 GB, free: 3.422 MB / 494.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1612, allocations: 0 / 0.6851 GB, free: 3.422 MB / 494.1 MB Notification: Performance of Templates: time 0.001795/0.163, allocations: 241.3 kB / 0.6854 GB, free: 3.188 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 -s cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegStep.pipe 2>&1)