Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.RegStep.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Utilities.Math.Functions.Examples.RegStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.RegStep") translateModel(Buildings.Utilities.Math.Functions.Examples.RegStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.RegStep") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.356/1.356, allocations: 251.9 MB / 266.9 MB, free: 11.02 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001097/0.001097, allocations: 179.2 kB / 326.5 MB, free: 2.258 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.641/1.641, allocations: 205.4 MB / 0.5775 GB, free: 20.25 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008237/0.0008237, allocations: 92.77 kB / 0.6821 GB, free: 12.89 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0002964/0.0002964, allocations: 8.656 kB / 0.7963 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1927/0.193, allocations: 106.3 MB / 0.9001 GB, free: 63.95 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1569/0.35, allocations: 131 MB / 1.028 GB, free: 12.8 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002538/0.3503, allocations: 79.94 kB / 1.028 GB, free: 12.73 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.001303/0.3516, allocations: 0.5356 MB / 1.029 GB, free: 12.19 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.164e-06/0.3516, allocations: 0 / 1.029 GB, free: 12.19 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 5.22e-06/0.3516, allocations: 0 / 1.029 GB, free: 12.19 MB / 0.6823 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.0002623/0.3519, allocations: 327.6 kB / 1.029 GB, free: 11.82 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 5.511e-05/0.3519, allocations: 8.031 kB / 1.029 GB, free: 11.81 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001924/0.3521, allocations: 19.97 kB / 1.029 GB, free: 11.79 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.038e-05/0.3522, allocations: 163 kB / 1.029 GB, free: 11.59 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.213e-05/0.3523, allocations: 0 / 1.029 GB, free: 11.59 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.051e-05/0.3523, allocations: 0 / 1.029 GB, free: 11.59 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001607/0.3524, allocations: 33.69 kB / 1.029 GB, free: 11.55 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.754e-06/0.3525, allocations: 0 / 1.029 GB, free: 11.55 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.937e-06/0.3525, allocations: 4 kB / 1.029 GB, free: 11.55 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.198e-06/0.3525, allocations: 3.984 kB / 1.029 GB, free: 11.55 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.113e-05/0.3526, allocations: 15.92 kB / 1.029 GB, free: 11.53 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000146/0.3527, allocations: 153.6 kB / 1.029 GB, free: 11.33 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 7.239e-05/0.3528, allocations: 18.61 kB / 1.029 GB, free: 11.3 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 1.869e-05/0.3528, allocations: 0 / 1.029 GB, free: 11.3 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.514e-05/0.3529, allocations: 38.55 kB / 1.029 GB, free: 11.26 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=1): time 8.82e-07/0.3529, allocations: 4.062 kB / 1.029 GB, free: 11.25 MB / 0.6823 GB Notification: Performance of matching and sorting (n=1): time 0.0002164/0.3531, allocations: 41.62 kB / 1.029 GB, free: 11.21 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.166e-05/0.3531, allocations: 51.41 kB / 1.029 GB, free: 11.14 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.003e-05/0.3532, allocations: 89 kB / 1.03 GB, free: 11.05 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 1.292e-05/0.3532, allocations: 29.7 kB / 1.03 GB, free: 11.02 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 2.42e-05/0.3532, allocations: 80.14 kB / 1.03 GB, free: 10.93 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 2.673e-05/0.3533, allocations: 8.031 kB / 1.03 GB, free: 10.93 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.236e-06/0.3533, allocations: 0 / 1.03 GB, free: 10.93 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001244/0.3534, allocations: 314.8 kB / 1.03 GB, free: 10.61 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.275e-05/0.3535, allocations: 4 kB / 1.03 GB, free: 10.61 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.514e-05/0.3535, allocations: 7.984 kB / 1.03 GB, free: 10.6 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.118e-05/0.3535, allocations: 0 / 1.03 GB, free: 10.6 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.433e-06/0.3536, allocations: 4 kB / 1.03 GB, free: 10.59 MB / 0.6823 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001109/0.3537, allocations: 49.64 kB / 1.03 GB, free: 10.54 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.394e-05/0.3537, allocations: 4 kB / 1.03 GB, free: 10.54 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.368e-06/0.3537, allocations: 0 / 1.03 GB, free: 10.54 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.15e-05/0.3537, allocations: 3.984 kB / 1.03 GB, free: 10.53 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.707e-05/0.3538, allocations: 4 kB / 1.03 GB, free: 10.53 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.552e-06/0.3538, allocations: 3.984 kB / 1.03 GB, free: 10.52 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.551e-05/0.3538, allocations: 11.94 kB / 1.03 GB, free: 10.51 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.418e-06/0.3539, allocations: 0 / 1.03 GB, free: 10.51 MB / 0.6823 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 8.757e-05/0.354, allocations: 117.8 kB / 1.03 GB, free: 10.39 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.035e-06/0.354, allocations: 3.953 kB / 1.03 GB, free: 10.38 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.974e-05/0.354, allocations: 3.125 kB / 1.03 GB, free: 10.38 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.92e-07/0.354, allocations: 0 / 1.03 GB, free: 10.38 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.354, allocations: 4 kB / 1.03 GB, free: 10.38 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.033e-06/0.354, allocations: 0 / 1.03 GB, free: 10.38 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.012e-05/0.3541, allocations: 145.7 kB / 1.03 GB, free: 10.18 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.42e-07/0.3541, allocations: 0 / 1.03 GB, free: 10.18 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.206e-05/0.3542, allocations: 7.984 kB / 1.03 GB, free: 10.18 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.056e-06/0.3542, allocations: 7.953 kB / 1.03 GB, free: 10.17 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.922e-06/0.3542, allocations: 0 / 1.03 GB, free: 10.17 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.82e-07/0.3542, allocations: 0 / 1.03 GB, free: 10.17 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.3542, allocations: 0 / 1.03 GB, free: 10.17 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001414/0.3543, allocations: 73.05 kB / 1.03 GB, free: 10.08 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 3.055e-05/0.3544, allocations: 77.11 kB / 1.03 GB, free: 9.984 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.157e-05/0.3544, allocations: 3.953 kB / 1.03 GB, free: 9.98 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.893e-05/0.3544, allocations: 4.031 kB / 1.03 GB, free: 9.977 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.067e-05/0.3545, allocations: 8 kB / 1.03 GB, free: 9.969 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.146e-06/0.3545, allocations: 0 / 1.03 GB, free: 9.969 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 2.982e-05/0.3545, allocations: 75.28 kB / 1.031 GB, free: 9.895 MB / 0.6823 GB Notification: Performance of sort global known variables: time 8e-08/0.3545, allocations: 0 / 1.031 GB, free: 9.895 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.000162/0.3547, allocations: 0 / 1.031 GB, free: 9.895 MB / 0.6823 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.0001131/0.3548, allocations: 103.2 kB / 1.031 GB, free: 9.785 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0001266/0.3549, allocations: 19.98 kB / 1.031 GB, free: 9.766 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.3549, allocations: 0 / 1.031 GB, free: 9.766 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 3.976e-05/0.355, allocations: 4 kB / 1.031 GB, free: 9.762 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.633e-05/0.3551, allocations: 4.453 kB / 1.031 GB, free: 9.758 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002459/0.3553, allocations: 82.69 kB / 1.031 GB, free: 9.648 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002785/0.3556, allocations: 0.677 MB / 1.031 GB, free: 8.945 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 3.702e-05/0.3557, allocations: 4.125 kB / 1.031 GB, free: 8.941 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.248e-05/0.3557, allocations: 7.438 kB / 1.031 GB, free: 8.934 MB / 0.6823 GB Notification: Performance of SimCode: time 3.5e-07/0.3557, allocations: 0 / 1.031 GB, free: 8.934 MB / 0.6823 GB Notification: Performance of Templates: time 0.001668/0.3574, allocations: 208 kB / 1.032 GB, free: 8.73 MB / 0.6823 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.RegStep.makefile (rm -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.RegStep.sim & ./Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.RegStep -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.RegStep_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Utilities_Math_Functions_Examples_RegStep.csv","../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.RegStep.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches