Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.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/Buildings 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.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(Buildings.Utilities.Math.Functions.Examples.RegStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y",fileNamePrefix="Buildings_latest_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_latest_Buildings.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.001259/0.001259, allocations: 111.1 kB / 16.41 MB, free: 6.488 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.001264/0.001264, allocations: 189.5 kB / 17.34 MB, free: 5.762 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.394/1.394, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.58/2.58, allocations: 461.9 MB / 0.7355 GB, free: 11.05 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.00152/0.00152, allocations: 63.91 kB / 1.055 GB, free: 7.633 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8652/0.8668, allocations: 157.4 MB / 1.208 GB, free: 13.58 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegStep): time 0.001678/0.8685, allocations: 0.5891 MB / 1.209 GB, free: 13 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0002588/0.8688, allocations: 51.8 kB / 1.209 GB, free: 12.95 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.485e-05/0.8688, allocations: 0 / 1.209 GB, free: 12.95 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 1.12e-05/0.8688, allocations: 0 / 1.209 GB, free: 12.95 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 5.55e-06/0.8688, allocations: 0 / 1.209 GB, free: 12.95 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002154/0.869, allocations: 19.92 kB / 1.209 GB, free: 12.93 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 4.382e-05/0.8691, allocations: 7.969 kB / 1.209 GB, free: 12.92 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 4.612e-05/0.8692, allocations: 3.938 kB / 1.209 GB, free: 12.92 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 1.256e-05/0.8692, allocations: 4 kB / 1.209 GB, free: 12.91 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 2.032e-05/0.8692, allocations: 4 kB / 1.209 GB, free: 12.91 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 9.047e-06/0.8692, allocations: 0 / 1.209 GB, free: 12.91 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 9.868e-05/0.8693, allocations: 15.98 kB / 1.209 GB, free: 12.89 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 8.576e-06/0.8693, allocations: 0 / 1.209 GB, free: 12.89 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 1.644e-05/0.8693, allocations: 4 kB / 1.209 GB, free: 12.89 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 8.453e-05/0.8694, allocations: 19.95 kB / 1.209 GB, free: 12.87 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.8694, allocations: 0 / 1.209 GB, free: 12.87 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.673e-06/0.8695, allocations: 0 / 1.209 GB, free: 12.87 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 4.969e-06/0.8695, allocations: 0 / 1.209 GB, free: 12.87 MB / 0.9356 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.000278/0.8697, allocations: 315.6 kB / 1.209 GB, free: 12.51 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.522e-05/0.8698, allocations: 12.03 kB / 1.209 GB, free: 12.5 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002578/0.8701, allocations: 16.91 kB / 1.209 GB, free: 12.48 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.528e-05/0.8702, allocations: 168.4 kB / 1.21 GB, free: 12.28 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.588e-06/0.8702, allocations: 384 / 1.21 GB, free: 12.28 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.048e-05/0.8702, allocations: 384 / 1.21 GB, free: 12.28 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001301/0.8703, allocations: 38.19 kB / 1.21 GB, free: 12.24 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.542e-06/0.8703, allocations: 192 / 1.21 GB, free: 12.24 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.919e-06/0.8704, allocations: 7.938 kB / 1.21 GB, free: 12.23 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.542e-06/0.8704, allocations: 4 kB / 1.21 GB, free: 12.23 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.552e-05/0.8705, allocations: 11.92 kB / 1.21 GB, free: 12.21 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001254/0.8706, allocations: 141.7 kB / 1.21 GB, free: 12.03 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 8.998e-05/0.8707, allocations: 26.59 kB / 1.21 GB, free: 11.99 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.005e-05/0.8708, allocations: 8.922 kB / 1.21 GB, free: 11.98 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 1.886e-05/0.8708, allocations: 7.938 kB / 1.21 GB, free: 11.97 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.183e-05/0.8708, allocations: 34.55 kB / 1.21 GB, free: 11.93 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=1): time 1.022e-06/0.8708, allocations: 0 / 1.21 GB, free: 11.93 MB / 0.9356 GB Notification: Performance of matching and sorting (n=1): time 0.0002238/0.871, allocations: 45.62 kB / 1.21 GB, free: 11.88 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.084e-05/0.8711, allocations: 51.41 kB / 1.21 GB, free: 11.82 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.177e-05/0.8711, allocations: 89.86 kB / 1.21 GB, free: 11.72 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.232e-05/0.8712, allocations: 37.77 kB / 1.21 GB, free: 11.68 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 2.561e-05/0.8712, allocations: 84.14 kB / 1.21 GB, free: 11.59 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 2.542e-05/0.8712, allocations: 3.984 kB / 1.21 GB, free: 11.59 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.792e-05/0.8712, allocations: 9.719 kB / 1.21 GB, free: 11.57 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001052/0.8714, allocations: 310.8 kB / 1.211 GB, free: 11.26 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.465e-05/0.8714, allocations: 4 kB / 1.211 GB, free: 11.25 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.2e-05/0.8715, allocations: 11.92 kB / 1.211 GB, free: 11.24 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.388e-05/0.8716, allocations: 20.91 kB / 1.211 GB, free: 11.22 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.8716, allocations: 0 / 1.211 GB, free: 11.22 MB / 0.9356 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.000123/0.8717, allocations: 41.69 kB / 1.211 GB, free: 11.17 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.371e-05/0.8717, allocations: 6.188 kB / 1.211 GB, free: 11.17 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.571e-06/0.8717, allocations: 4 kB / 1.211 GB, free: 11.16 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.306e-05/0.8717, allocations: 3.938 kB / 1.211 GB, free: 11.16 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.789e-05/0.8718, allocations: 3.984 kB / 1.211 GB, free: 11.16 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.3e-06/0.8718, allocations: 4.031 kB / 1.211 GB, free: 11.15 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.216e-05/0.8719, allocations: 4 kB / 1.211 GB, free: 11.15 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.071e-06/0.8719, allocations: 0 / 1.211 GB, free: 11.15 MB / 0.9356 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.284e-05/0.872, allocations: 105.8 kB / 1.211 GB, free: 11.04 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.135e-05/0.872, allocations: 3.906 kB / 1.211 GB, free: 11.03 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.988e-05/0.872, allocations: 15 kB / 1.211 GB, free: 11.02 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-06/0.872, allocations: 0 / 1.211 GB, free: 11.02 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.751e-06/0.872, allocations: 3.984 kB / 1.211 GB, free: 11.01 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.284e-06/0.872, allocations: 4 kB / 1.211 GB, free: 11.01 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.773e-05/0.8721, allocations: 141.7 kB / 1.211 GB, free: 10.82 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.8721, allocations: 4 kB / 1.211 GB, free: 10.82 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.509e-05/0.8722, allocations: 7.984 kB / 1.211 GB, free: 10.81 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-06/0.8722, allocations: 3.938 kB / 1.211 GB, free: 10.8 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.688e-06/0.8722, allocations: 7.938 kB / 1.211 GB, free: 10.8 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-06/0.8722, allocations: 0 / 1.211 GB, free: 10.8 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.8722, allocations: 4 kB / 1.211 GB, free: 10.79 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001411/0.8724, allocations: 61.12 kB / 1.211 GB, free: 10.71 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 3.135e-05/0.8724, allocations: 77.11 kB / 1.211 GB, free: 10.62 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.375e-05/0.8724, allocations: 7.922 kB / 1.211 GB, free: 10.61 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.553e-05/0.8725, allocations: 4 kB / 1.211 GB, free: 10.61 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.269e-05/0.8725, allocations: 0 / 1.211 GB, free: 10.61 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.136e-06/0.8725, allocations: 0 / 1.211 GB, free: 10.61 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 3.476e-05/0.8725, allocations: 79.28 kB / 1.211 GB, free: 10.53 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8726, allocations: 3.938 kB / 1.211 GB, free: 10.53 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0001798/0.8727, allocations: 8.031 kB / 1.211 GB, free: 10.52 MB / 0.9356 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 (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.0001082/0.8728, allocations: 101.9 kB / 1.211 GB, free: 10.41 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.000138/0.873, allocations: 11.98 kB / 1.211 GB, free: 10.4 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 4.489e-06/0.873, allocations: 0 / 1.211 GB, free: 10.4 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 4.538e-05/0.8731, allocations: 11.92 kB / 1.211 GB, free: 10.39 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001315/0.8732, allocations: 0 / 1.211 GB, free: 10.39 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002435/0.8735, allocations: 114.8 kB / 1.211 GB, free: 10.24 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000225/0.8737, allocations: 0.669 MB / 1.212 GB, free: 9.547 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.581e-05/0.8737, allocations: 11.42 kB / 1.212 GB, free: 9.539 MB / 0.9356 GB Notification: Performance of SimCode: time 3e-07/0.8737, allocations: 0 / 1.212 GB, free: 9.539 MB / 0.9356 GB Notification: Performance of Templates: time 0.001496/0.8752, allocations: 393.8 kB / 1.212 GB, free: 9.156 MB / 0.9356 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegStep.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegStep.sim & ./Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegStep -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegStep_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_RegStep.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegStep.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches