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.00572/0.005719, allocations: 109.1 kB / 15.74 MB, free: 6.016 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.001275/0.001275, allocations: 190.3 kB / 16.67 MB, free: 5.941 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.391/1.391, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.612/2.612, allocations: 461.9 MB / 0.7348 GB, free: 11.09 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001185/0.001185, allocations: 76.12 kB / 1.054 GB, free: 7.664 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.843/0.8442, allocations: 157.4 MB / 1.208 GB, free: 13.64 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegStep): time 0.00176/0.846, allocations: 0.5908 MB / 1.208 GB, free: 13.05 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0002735/0.8463, allocations: 53.7 kB / 1.208 GB, free: 13 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.549e-05/0.8463, allocations: 0 / 1.208 GB, free: 13 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 1.291e-05/0.8464, allocations: 0 / 1.208 GB, free: 13 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 6.172e-06/0.8464, allocations: 3.938 kB / 1.208 GB, free: 13 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002373/0.8466, allocations: 11.98 kB / 1.208 GB, free: 12.98 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 3.925e-05/0.8467, allocations: 4 kB / 1.208 GB, free: 12.98 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 4.676e-05/0.8467, allocations: 0 / 1.208 GB, free: 12.98 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 1.578e-05/0.8468, allocations: 11.92 kB / 1.208 GB, free: 12.97 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 1.936e-05/0.8468, allocations: 0 / 1.208 GB, free: 12.97 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 8.907e-06/0.8468, allocations: 0 / 1.208 GB, free: 12.97 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 9.585e-05/0.8469, allocations: 23.97 kB / 1.208 GB, free: 12.95 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 8.456e-06/0.8469, allocations: 0 / 1.208 GB, free: 12.95 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 1.551e-05/0.8469, allocations: 0 / 1.208 GB, free: 12.95 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 7.845e-05/0.847, allocations: 15.98 kB / 1.208 GB, free: 12.93 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.847, allocations: 0 / 1.208 GB, free: 12.93 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.212e-06/0.847, allocations: 0 / 1.208 GB, free: 12.93 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 5.089e-06/0.8471, allocations: 3.938 kB / 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.0002694/0.8473, allocations: 319.6 kB / 1.209 GB, free: 12.56 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.283e-05/0.8474, allocations: 8.031 kB / 1.209 GB, free: 12.55 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002409/0.8476, allocations: 20.91 kB / 1.209 GB, free: 12.54 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.878e-05/0.8477, allocations: 164.4 kB / 1.209 GB, free: 12.34 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.898e-06/0.8477, allocations: 384 / 1.209 GB, free: 12.34 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.251e-05/0.8478, allocations: 384 / 1.209 GB, free: 12.34 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001289/0.8479, allocations: 38.19 kB / 1.209 GB, free: 12.29 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.027e-05/0.8479, allocations: 8.172 kB / 1.209 GB, free: 12.29 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.408e-06/0.8479, allocations: 3.938 kB / 1.209 GB, free: 12.28 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.497e-06/0.8479, allocations: 0 / 1.209 GB, free: 12.28 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.34e-05/0.848, allocations: 15.92 kB / 1.209 GB, free: 12.27 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001239/0.8482, allocations: 145.7 kB / 1.209 GB, free: 12.07 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 7.59e-05/0.8483, allocations: 22.59 kB / 1.209 GB, free: 12.04 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 5e-05/0.8483, allocations: 12.92 kB / 1.209 GB, free: 12.03 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 1.551e-05/0.8483, allocations: 0 / 1.209 GB, free: 12.03 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.014e-05/0.8484, allocations: 30.56 kB / 1.209 GB, free: 11.99 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=1): time 1.042e-06/0.8484, allocations: 0 / 1.209 GB, free: 11.99 MB / 0.9356 GB Notification: Performance of matching and sorting (n=1): time 0.0002241/0.8486, allocations: 53.55 kB / 1.209 GB, free: 11.93 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.183e-05/0.8486, allocations: 51.41 kB / 1.209 GB, free: 11.87 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.114e-05/0.8487, allocations: 93.98 kB / 1.209 GB, free: 11.77 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.15e-05/0.8487, allocations: 29.7 kB / 1.209 GB, free: 11.73 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 2.577e-05/0.8487, allocations: 84.12 kB / 1.21 GB, free: 11.64 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 2.225e-05/0.8487, allocations: 0 / 1.21 GB, free: 11.64 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.877e-05/0.8488, allocations: 13.72 kB / 1.21 GB, free: 11.62 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 9.115e-05/0.8489, allocations: 314.8 kB / 1.21 GB, free: 11.31 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.68e-05/0.8489, allocations: 4 kB / 1.21 GB, free: 11.3 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.573e-05/0.849, allocations: 7.984 kB / 1.21 GB, free: 11.3 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001/0.8491, allocations: 16.92 kB / 1.21 GB, free: 11.28 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.714e-06/0.8491, allocations: 0 / 1.21 GB, free: 11.28 MB / 0.9356 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001297/0.8492, allocations: 49.61 kB / 1.21 GB, free: 11.22 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.436e-05/0.8493, allocations: 5.719 kB / 1.21 GB, free: 11.22 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.937e-06/0.8493, allocations: 0 / 1.21 GB, free: 11.22 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.127e-05/0.8493, allocations: 3.938 kB / 1.21 GB, free: 11.21 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.613e-05/0.8494, allocations: 4 kB / 1.21 GB, free: 11.21 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.007e-06/0.8494, allocations: 4.031 kB / 1.21 GB, free: 11.21 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.413e-05/0.8494, allocations: 3.984 kB / 1.21 GB, free: 11.2 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.042e-06/0.8494, allocations: 4 kB / 1.21 GB, free: 11.2 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 5.787e-05/0.8495, allocations: 105.8 kB / 1.21 GB, free: 11.09 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.498e-06/0.8495, allocations: 3.906 kB / 1.21 GB, free: 11.08 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.277e-05/0.8495, allocations: 7.062 kB / 1.21 GB, free: 11.07 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.542e-06/0.8495, allocations: 0 / 1.21 GB, free: 11.07 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.329e-06/0.8496, allocations: 3.938 kB / 1.21 GB, free: 11.07 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.214e-06/0.8496, allocations: 11.94 kB / 1.21 GB, free: 11.06 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.69e-05/0.8497, allocations: 153.7 kB / 1.21 GB, free: 10.86 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.52e-07/0.8497, allocations: 0 / 1.21 GB, free: 10.86 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.437e-05/0.8497, allocations: 4 kB / 1.21 GB, free: 10.86 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.933e-06/0.8497, allocations: 0 / 1.21 GB, free: 10.86 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.337e-06/0.8497, allocations: 3.938 kB / 1.21 GB, free: 10.85 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.442e-06/0.8497, allocations: 0 / 1.21 GB, free: 10.85 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.285e-06/0.8497, allocations: 3.984 kB / 1.21 GB, free: 10.85 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001455/0.8499, allocations: 69.06 kB / 1.21 GB, free: 10.76 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 3.302e-05/0.8499, allocations: 77.11 kB / 1.21 GB, free: 10.67 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.104e-05/0.85, allocations: 3.938 kB / 1.21 GB, free: 10.66 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.635e-05/0.85, allocations: 7.984 kB / 1.21 GB, free: 10.66 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.169e-05/0.85, allocations: 7.984 kB / 1.21 GB, free: 10.65 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.697e-06/0.85, allocations: 0 / 1.21 GB, free: 10.65 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 2.481e-05/0.8501, allocations: 75.28 kB / 1.21 GB, free: 10.57 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1e-07/0.8501, allocations: 0 / 1.21 GB, free: 10.57 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0001869/0.8502, allocations: 4.031 kB / 1.21 GB, free: 10.57 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.0001095/0.8504, allocations: 99.25 kB / 1.211 GB, free: 10.46 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0001402/0.8505, allocations: 15.92 kB / 1.211 GB, free: 10.45 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.8505, allocations: 0 / 1.211 GB, free: 10.45 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 4.864e-05/0.8506, allocations: 7.984 kB / 1.211 GB, free: 10.44 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001262/0.8507, allocations: 3.938 kB / 1.211 GB, free: 10.43 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002429/0.851, allocations: 89.05 kB / 1.211 GB, free: 10.32 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000196/0.8512, allocations: 0.669 MB / 1.211 GB, free: 9.625 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 3.043e-05/0.8512, allocations: 4 kB / 1.211 GB, free: 9.621 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.171e-05/0.8512, allocations: 7.438 kB / 1.211 GB, free: 9.617 MB / 0.9356 GB Notification: Performance of SimCode: time 2.11e-07/0.8512, allocations: 0 / 1.211 GB, free: 9.617 MB / 0.9356 GB Notification: Performance of Templates: time 0.001887/0.8531, allocations: 233.1 kB / 1.212 GB, free: 9.395 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