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.004891/0.004891, allocations: 102.6 kB / 15.73 MB, free: 6.039 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.001127/0.001127, allocations: 190.7 kB / 16.67 MB, free: 5.953 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.408/1.408, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.593/2.593, allocations: 461.9 MB / 0.7348 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001272/0.001272, allocations: 63.91 kB / 1.054 GB, free: 7.668 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9717/0.973, allocations: 157.4 MB / 1.208 GB, free: 13.63 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegStep): time 0.001981/0.975, allocations: 0.5766 MB / 1.208 GB, free: 13.06 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0003166/0.9754, allocations: 49.75 kB / 1.208 GB, free: 13.01 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.697e-05/0.9754, allocations: 8 kB / 1.208 GB, free: 13 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 1.207e-05/0.9754, allocations: 0 / 1.208 GB, free: 13 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 6.873e-06/0.9755, allocations: 0 / 1.208 GB, free: 13 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002743/0.9757, allocations: 15.91 kB / 1.208 GB, free: 12.99 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 5.12e-05/0.9758, allocations: 0 / 1.208 GB, free: 12.99 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 5.118e-05/0.9759, allocations: 4 kB / 1.208 GB, free: 12.98 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 2.033e-05/0.9759, allocations: 7.938 kB / 1.208 GB, free: 12.98 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 2.469e-05/0.9759, allocations: 0 / 1.208 GB, free: 12.98 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.013e-05/0.9759, allocations: 0 / 1.208 GB, free: 12.98 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001217/0.9761, allocations: 19.98 kB / 1.208 GB, free: 12.96 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 1.15e-05/0.9761, allocations: 4 kB / 1.208 GB, free: 12.95 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 2.346e-05/0.9761, allocations: 0 / 1.208 GB, free: 12.95 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001047/0.9762, allocations: 19.95 kB / 1.208 GB, free: 12.93 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 5.029e-06/0.9762, allocations: 4 kB / 1.208 GB, free: 12.93 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.393e-06/0.9762, allocations: 0 / 1.208 GB, free: 12.93 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 1.022e-05/0.9763, allocations: 0 / 1.208 GB, free: 12.93 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.0003626/0.9766, allocations: 311.6 kB / 1.209 GB, free: 12.57 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.684e-05/0.9767, allocations: 8.031 kB / 1.209 GB, free: 12.57 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003048/0.977, allocations: 20.91 kB / 1.209 GB, free: 12.55 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001167/0.9771, allocations: 168.3 kB / 1.209 GB, free: 12.34 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.854e-05/0.9771, allocations: 4.359 kB / 1.209 GB, free: 12.34 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.852e-05/0.9772, allocations: 4.375 kB / 1.209 GB, free: 12.34 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001882/0.9774, allocations: 34.25 kB / 1.209 GB, free: 12.3 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.147e-05/0.9774, allocations: 192 / 1.209 GB, free: 12.3 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.543e-05/0.9774, allocations: 3.938 kB / 1.209 GB, free: 12.29 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.206e-05/0.9774, allocations: 0 / 1.209 GB, free: 12.29 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001002/0.9775, allocations: 19.92 kB / 1.209 GB, free: 12.27 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001844/0.9777, allocations: 145.7 kB / 1.209 GB, free: 12.08 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 9.472e-05/0.9778, allocations: 30.47 kB / 1.209 GB, free: 12.04 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.118e-05/0.9779, allocations: 4.859 kB / 1.209 GB, free: 12.04 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.935e-05/0.9779, allocations: 8.047 kB / 1.209 GB, free: 12.03 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.193e-05/0.978, allocations: 34.56 kB / 1.209 GB, free: 11.98 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=1): time 1.493e-06/0.978, allocations: 4 kB / 1.209 GB, free: 11.98 MB / 0.9356 GB Notification: Performance of matching and sorting (n=1): time 0.0002603/0.9782, allocations: 45.62 kB / 1.209 GB, free: 11.93 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.473e-05/0.9783, allocations: 51.41 kB / 1.209 GB, free: 11.87 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.985e-05/0.9783, allocations: 89.86 kB / 1.209 GB, free: 11.77 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.931e-05/0.9784, allocations: 29.69 kB / 1.209 GB, free: 11.73 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 2.879e-05/0.9784, allocations: 84.08 kB / 1.21 GB, free: 11.65 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 3.362e-05/0.9784, allocations: 0 / 1.21 GB, free: 11.65 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.427e-05/0.9785, allocations: 17.84 kB / 1.21 GB, free: 11.62 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001359/0.9786, allocations: 314.8 kB / 1.21 GB, free: 11.31 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.677e-05/0.9787, allocations: 4 kB / 1.21 GB, free: 11.3 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.612e-05/0.9787, allocations: 3.984 kB / 1.21 GB, free: 11.3 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.773e-05/0.9788, allocations: 16.84 kB / 1.21 GB, free: 11.28 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.138e-06/0.9788, allocations: 4.062 kB / 1.21 GB, free: 11.28 MB / 0.9356 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001281/0.979, allocations: 41.69 kB / 1.21 GB, free: 11.23 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.924e-05/0.979, allocations: 8 kB / 1.21 GB, free: 11.22 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.63e-06/0.979, allocations: 0 / 1.21 GB, free: 11.22 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.934e-05/0.979, allocations: 3.938 kB / 1.21 GB, free: 11.22 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.543e-05/0.9791, allocations: 11.92 kB / 1.21 GB, free: 11.21 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.023e-06/0.9791, allocations: 0 / 1.21 GB, free: 11.21 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.186e-05/0.9792, allocations: 0 / 1.21 GB, free: 11.21 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.453e-06/0.9792, allocations: 0 / 1.21 GB, free: 11.21 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 9.296e-05/0.9793, allocations: 117.9 kB / 1.21 GB, free: 11.08 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.16e-05/0.9793, allocations: 3.906 kB / 1.21 GB, free: 11.08 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.88e-05/0.9793, allocations: 11.05 kB / 1.21 GB, free: 11.07 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.884e-06/0.9794, allocations: 0 / 1.21 GB, free: 11.07 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.959e-06/0.9794, allocations: 0 / 1.21 GB, free: 11.07 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.778e-06/0.9794, allocations: 0 / 1.21 GB, free: 11.07 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001062/0.9795, allocations: 145.7 kB / 1.21 GB, free: 10.88 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.9795, allocations: 0 / 1.21 GB, free: 10.88 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.301e-05/0.9795, allocations: 3.984 kB / 1.21 GB, free: 10.87 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.188e-06/0.9796, allocations: 8 kB / 1.21 GB, free: 10.86 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.193e-05/0.9796, allocations: 3.938 kB / 1.21 GB, free: 10.86 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.013e-06/0.9796, allocations: 3.938 kB / 1.21 GB, free: 10.86 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.9796, allocations: 0 / 1.21 GB, free: 10.86 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001463/0.9797, allocations: 61.12 kB / 1.21 GB, free: 10.78 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 4.062e-05/0.9798, allocations: 89.03 kB / 1.21 GB, free: 10.67 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.47e-05/0.9798, allocations: 11.91 kB / 1.21 GB, free: 10.66 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.951e-05/0.9798, allocations: 0 / 1.21 GB, free: 10.66 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.309e-05/0.9799, allocations: 0 / 1.21 GB, free: 10.66 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.616e-06/0.9799, allocations: 0 / 1.21 GB, free: 10.66 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 2.797e-05/0.9799, allocations: 79.28 kB / 1.21 GB, free: 10.58 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.1e-07/0.9799, allocations: 0 / 1.21 GB, free: 10.58 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0001829/0.9801, allocations: 0 / 1.21 GB, free: 10.58 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.000125/0.9802, allocations: 95.25 kB / 1.211 GB, free: 10.48 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0001481/0.9804, allocations: 23.97 kB / 1.211 GB, free: 10.45 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.9804, allocations: 0 / 1.211 GB, free: 10.45 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 3.907e-05/0.9804, allocations: 4 kB / 1.211 GB, free: 10.45 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001445/0.9806, allocations: 5.719 kB / 1.211 GB, free: 10.45 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002667/0.9809, allocations: 80.86 kB / 1.211 GB, free: 10.34 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002388/0.9811, allocations: 0.669 MB / 1.211 GB, free: 9.645 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 3.476e-05/0.9812, allocations: 16.09 kB / 1.211 GB, free: 9.629 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.693e-05/0.9812, allocations: 7.438 kB / 1.211 GB, free: 9.625 MB / 0.9356 GB Notification: Performance of SimCode: time 3.3e-07/0.9812, allocations: 0 / 1.211 GB, free: 9.625 MB / 0.9356 GB Notification: Performance of Templates: time 0.00234/0.9835, allocations: 222.3 kB / 1.212 GB, free: 9.41 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/jenkins/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