Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Utilities.Math.Functions.Examples.RegStep.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: translateModel(Buildings.Utilities.Math.Functions.Examples.RegStep,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.Utilities.Math.Functions.Examples.RegStep") translateModel(Buildings.Utilities.Math.Functions.Examples.RegStep,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.Utilities.Math.Functions.Examples.RegStep") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.763/1.763, allocations: 288.3 MB / 303.2 MB, free: 8.215 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001119/0.001119, allocations: 181.1 kB / 371.9 MB, free: 10.29 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.909/1.909, allocations: 205.4 MB / 0.6306 GB, free: 10.02 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009515/0.0009515, allocations: 104.8 kB / 0.7439 GB, free: 5.941 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004207/0.0004208, allocations: 12.25 kB / 0.8668 GB, free: 142.1 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2774/0.2778, allocations: 115.3 MB / 0.9794 GB, free: 27.69 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegStep): time 0.0009319/0.2788, allocations: 310.1 kB / 0.9797 GB, free: 27.38 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.0003069/0.2792, allocations: 49.55 kB / 0.9798 GB, free: 27.33 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.664e-05/0.2792, allocations: 0 / 0.9798 GB, free: 27.33 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 1.797e-05/0.2792, allocations: 0 / 0.9798 GB, free: 27.33 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 6.302e-06/0.2793, allocations: 0 / 0.9798 GB, free: 27.33 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.000263/0.2795, allocations: 19.91 kB / 0.9798 GB, free: 27.31 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 3.991e-05/0.2796, allocations: 4 kB / 0.9798 GB, free: 27.3 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 6.199e-05/0.2797, allocations: 0 / 0.9798 GB, free: 27.3 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 1.884e-05/0.2797, allocations: 0 / 0.9798 GB, free: 27.3 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 5.395e-05/0.2798, allocations: 0 / 0.9798 GB, free: 27.3 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.298e-05/0.2798, allocations: 4 kB / 0.9798 GB, free: 27.3 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001153/0.2799, allocations: 15.98 kB / 0.9798 GB, free: 27.29 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 1.153e-05/0.28, allocations: 3.984 kB / 0.9798 GB, free: 27.28 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 2.56e-05/0.28, allocations: 25.7 kB / 0.9798 GB, free: 27.25 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 7.645e-05/0.2801, allocations: 7.938 kB / 0.9799 GB, free: 27.24 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.2801, allocations: 0 / 0.9799 GB, free: 27.24 MB / 0.6198 GB Notification: Performance of FrontEnd: time 3.086e-06/0.2801, allocations: 4 kB / 0.9799 GB, free: 27.24 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 5.72e-06/0.2801, allocations: 4 kB / 0.9799 GB, free: 27.23 MB / 0.6198 GB 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.0002645/0.2804, allocations: 312.7 kB / 0.9802 GB, free: 26.88 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 5.013e-05/0.2805, allocations: 12.08 kB / 0.9802 GB, free: 26.87 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003781/0.2809, allocations: 27.97 kB / 0.9802 GB, free: 26.84 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.226e-05/0.281, allocations: 167 kB / 0.9804 GB, free: 26.64 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.88e-05/0.281, allocations: 0 / 0.9804 GB, free: 26.64 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.584e-05/0.281, allocations: 0 / 0.9804 GB, free: 26.64 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001886/0.2812, allocations: 41.62 kB / 0.9804 GB, free: 26.59 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.255e-05/0.2813, allocations: 3.984 kB / 0.9804 GB, free: 26.59 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.215e-05/0.2813, allocations: 0 / 0.9804 GB, free: 26.59 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.082e-06/0.2813, allocations: 0 / 0.9804 GB, free: 26.59 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001295/0.2814, allocations: 11.98 kB / 0.9804 GB, free: 26.58 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001586/0.2816, allocations: 149.6 kB / 0.9806 GB, free: 26.38 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001061/0.2817, allocations: 26.59 kB / 0.9806 GB, free: 26.35 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.536e-05/0.2818, allocations: 0 / 0.9806 GB, free: 26.35 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.511e-05/0.2818, allocations: 34.5 kB / 0.9806 GB, free: 26.3 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=1): time 1.393e-06/0.2818, allocations: 0 / 0.9806 GB, free: 26.3 MB / 0.6198 GB Notification: Performance of matching and sorting (n=1): time 0.0003433/0.2822, allocations: 41.75 kB / 0.9807 GB, free: 26.26 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.315e-05/0.2822, allocations: 51.41 kB / 0.9807 GB, free: 26.2 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.347e-05/0.2823, allocations: 97.97 kB / 0.9808 GB, free: 26.09 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.147e-05/0.2823, allocations: 25.7 kB / 0.9808 GB, free: 26.06 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 1.551e-05/0.2823, allocations: 88.14 kB / 0.9809 GB, free: 25.97 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 3.089e-05/0.2824, allocations: 3.906 kB / 0.9809 GB, free: 25.96 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.458e-06/0.2824, allocations: 0 / 0.9809 GB, free: 25.96 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 5.658e-05/0.2824, allocations: 310.8 kB / 0.9812 GB, free: 25.65 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.173e-05/0.2825, allocations: 4 kB / 0.9812 GB, free: 25.65 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.442e-05/0.2826, allocations: 7.984 kB / 0.9812 GB, free: 25.64 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.305e-05/0.2827, allocations: 4.062 kB / 0.9812 GB, free: 25.64 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.2827, allocations: 3.938 kB / 0.9812 GB, free: 25.63 MB / 0.6198 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001821/0.2829, allocations: 49.62 kB / 0.9813 GB, free: 25.58 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.884e-05/0.2829, allocations: 4 kB / 0.9813 GB, free: 25.57 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.111e-06/0.283, allocations: 3.938 kB / 0.9813 GB, free: 25.57 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.768e-05/0.283, allocations: 0 / 0.9813 GB, free: 25.57 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.355e-05/0.2831, allocations: 4 kB / 0.9813 GB, free: 25.57 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.284e-06/0.2831, allocations: 0 / 0.9813 GB, free: 25.57 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.22e-05/0.2832, allocations: 4.031 kB / 0.9813 GB, free: 25.56 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.438e-06/0.2832, allocations: 7.984 kB / 0.9813 GB, free: 25.55 MB / 0.6198 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 (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.934e-05/0.2833, allocations: 109.8 kB / 0.9814 GB, free: 25.44 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.291e-05/0.2833, allocations: 3.953 kB / 0.9814 GB, free: 25.43 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.818e-05/0.2834, allocations: 7.109 kB / 0.9814 GB, free: 25.43 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.2834, allocations: 0 / 0.9814 GB, free: 25.43 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.88e-06/0.2834, allocations: 0 / 0.9814 GB, free: 25.43 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.566e-06/0.2834, allocations: 4 kB / 0.9814 GB, free: 25.43 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.994e-05/0.2835, allocations: 153.9 kB / 0.9816 GB, free: 25.23 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-06/0.2835, allocations: 0 / 0.9816 GB, free: 25.23 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.734e-05/0.2836, allocations: 4 kB / 0.9816 GB, free: 25.22 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.405e-06/0.2836, allocations: 3.938 kB / 0.9816 GB, free: 25.22 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.018e-05/0.2836, allocations: 3.953 kB / 0.9816 GB, free: 25.21 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.354e-06/0.2836, allocations: 3.938 kB / 0.9816 GB, free: 25.21 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.2836, allocations: 0 / 0.9816 GB, free: 25.21 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001912/0.2838, allocations: 73.11 kB / 0.9816 GB, free: 25.12 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 2.313e-05/0.2839, allocations: 77.11 kB / 0.9817 GB, free: 25.03 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.686e-05/0.2839, allocations: 0 / 0.9817 GB, free: 25.03 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.147e-05/0.284, allocations: 3.953 kB / 0.9817 GB, free: 25.02 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.769e-05/0.284, allocations: 4 kB / 0.9817 GB, free: 25.02 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.303e-06/0.284, allocations: 7.984 kB / 0.9817 GB, free: 25.01 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 1.962e-05/0.284, allocations: 75.28 kB / 0.9818 GB, free: 24.94 MB / 0.6198 GB Notification: Performance of sort global known variables: time 3.71e-07/0.2841, allocations: 0 / 0.9818 GB, free: 24.94 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0003131/0.2844, allocations: 0 / 0.9818 GB, free: 24.94 MB / 0.6198 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 (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.0001425/0.2845, allocations: 107.2 kB / 0.9819 GB, free: 24.82 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0001992/0.2847, allocations: 15.92 kB / 0.9819 GB, free: 24.81 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 4.257e-06/0.2848, allocations: 4 kB / 0.9819 GB, free: 24.8 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 7.282e-05/0.2849, allocations: 4 kB / 0.9819 GB, free: 24.8 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001369/0.285, allocations: 0 / 0.9819 GB, free: 24.8 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000301/0.2853, allocations: 90.8 kB / 0.982 GB, free: 24.69 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000119/0.2855, allocations: 0.6692 MB / 0.9827 GB, free: 23.99 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 6.589e-05/0.2855, allocations: 4 kB / 0.9827 GB, free: 23.99 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.886e-05/0.2856, allocations: 7.438 kB / 0.9827 GB, free: 23.98 MB / 0.6198 GB Notification: Performance of SimCode: time 4.11e-07/0.2856, allocations: 0 / 0.9827 GB, free: 23.98 MB / 0.6198 GB Notification: Performance of Templates: time 0.002684/0.2883, allocations: 221.5 kB / 0.9829 GB, free: 23.77 MB / 0.6198 GB make -j1 -f Buildings_maint.8.0.x_Buildings.Utilities.Math.Functions.Examples.RegStep.makefile (rm -f Buildings_maint.8.0.x_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Utilities.Math.Functions.Examples.RegStep.sim & ./Buildings_maint.8.0.x_Buildings.Utilities.Math.Functions.Examples.RegStep -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.8.0.x_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe 2>&1)