Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.Examples.SmoothLimit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|smoLim.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit") translateModel(Buildings.Utilities.Math.Examples.SmoothLimit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|smoLim.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00153/0.00153, allocations: 101.1 kB / 16.27 MB, free: 6.414 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.00156/0.00156, allocations: 190.3 kB / 17.2 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.416/1.416, allocations: 222.9 MB / 240.9 MB, free: 15.23 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.827/2.827, allocations: 482.4 MB / 0.7553 GB, free: 6.969 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.002035/0.002035, allocations: 72.42 kB / 0.9245 GB, free: 15.95 MB / 0.7012 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7714/0.7735, allocations: 162.2 MB / 1.083 GB, free: 1.621 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothLimit): time 0.002574/0.7761, allocations: 1.469 MB / 1.084 GB, free: 0.5859 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0008367/0.777, allocations: 0.5554 MB / 1.085 GB, free: 204 kB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.635e-05/0.777, allocations: 4 kB / 1.085 GB, free: 200 kB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 2.431e-05/0.7771, allocations: 0.7969 kB / 1.085 GB, free: 200 kB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 4.811e-05/0.7771, allocations: 5.172 kB / 1.085 GB, free: 196 kB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002611/0.7774, allocations: 53.91 kB / 1.085 GB, free: 168 kB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 5.953e-05/0.7774, allocations: 29.95 kB / 1.085 GB, free: 152 kB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 9.227e-05/0.7775, allocations: 8.781 kB / 1.085 GB, free: 148 kB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 7.492e-05/0.7776, allocations: 7.453 kB / 1.085 GB, free: 148 kB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 4.982e-05/0.7777, allocations: 20 kB / 1.085 GB, free: 136 kB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.257e-05/0.7777, allocations: 0.9062 kB / 1.085 GB, free: 136 kB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001223/0.7778, allocations: 54.81 kB / 1.085 GB, free: 120 kB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 1.363e-05/0.7778, allocations: 9.406 kB / 1.085 GB, free: 112 kB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 2.339e-05/0.7779, allocations: 11.95 kB / 1.085 GB, free: 104 kB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001373/0.778, allocations: 65.77 kB / 1.085 GB, free: 76 kB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.778, allocations: 1.312 kB / 1.085 GB, free: 76 kB / 0.8262 GB Notification: Performance of FrontEnd: time 1.222e-06/0.778, allocations: 0 / 1.085 GB, free: 76 kB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.799e-06/0.778, allocations: 0 / 1.085 GB, free: 76 kB / 0.8262 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0004765/0.7785, allocations: 346.1 kB / 1.085 GB, free: 15.71 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.478e-05/0.7786, allocations: 13.88 kB / 1.085 GB, free: 15.71 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.334e-05/0.7786, allocations: 6.859 kB / 1.085 GB, free: 15.7 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001504/0.7788, allocations: 164.9 kB / 1.086 GB, free: 15.51 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.705e-06/0.7788, allocations: 1.531 kB / 1.086 GB, free: 15.51 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.357e-05/0.7788, allocations: 1.438 kB / 1.086 GB, free: 15.51 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001467/0.7789, allocations: 50.88 kB / 1.086 GB, free: 15.46 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.005e-06/0.779, allocations: 3.938 kB / 1.086 GB, free: 15.46 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.678e-06/0.779, allocations: 5.062 kB / 1.086 GB, free: 15.46 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.288e-06/0.779, allocations: 0 / 1.086 GB, free: 15.46 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.277e-05/0.7791, allocations: 24.61 kB / 1.086 GB, free: 15.45 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003655/0.7795, allocations: 261.9 kB / 1.086 GB, free: 15.16 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 9.084e-05/0.7796, allocations: 34.27 kB / 1.086 GB, free: 15.13 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.934e-05/0.7796, allocations: 14.98 kB / 1.086 GB, free: 15.12 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008874/0.7805, allocations: 479.4 kB / 1.086 GB, free: 14.65 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.359e-05/0.7806, allocations: 31.72 kB / 1.087 GB, free: 14.61 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=2): time 1.162e-06/0.7806, allocations: 0 / 1.087 GB, free: 14.61 MB / 0.8419 GB Notification: Performance of matching and sorting (n=2): time 0.0002667/0.7808, allocations: 62.94 kB / 1.087 GB, free: 14.57 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.006e-05/0.7809, allocations: 56.14 kB / 1.087 GB, free: 14.5 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.835e-05/0.781, allocations: 107.2 kB / 1.087 GB, free: 14.4 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.465e-05/0.781, allocations: 29.64 kB / 1.087 GB, free: 14.37 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 5.204e-05/0.7811, allocations: 88.25 kB / 1.087 GB, free: 14.28 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 1.643e-05/0.7811, allocations: 4.469 kB / 1.087 GB, free: 14.28 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.436e-05/0.7811, allocations: 12.83 kB / 1.087 GB, free: 14.26 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001467/0.7813, allocations: 318.8 kB / 1.087 GB, free: 13.95 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.502e-05/0.7813, allocations: 10.94 kB / 1.087 GB, free: 13.94 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.849e-05/0.7814, allocations: 11.77 kB / 1.087 GB, free: 13.94 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.371e-05/0.7815, allocations: 29.89 kB / 1.087 GB, free: 13.92 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.7815, allocations: 0 / 1.087 GB, free: 13.92 MB / 0.8419 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001371/0.7816, allocations: 52.09 kB / 1.087 GB, free: 13.89 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.572e-05/0.7817, allocations: 4.625 kB / 1.087 GB, free: 13.89 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.769e-06/0.7817, allocations: 0 / 1.087 GB, free: 13.89 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.508e-05/0.7817, allocations: 6.016 kB / 1.087 GB, free: 13.88 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.62e-05/0.7818, allocations: 10.06 kB / 1.087 GB, free: 13.88 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.901e-06/0.7818, allocations: 0.7031 kB / 1.087 GB, free: 13.88 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.862e-05/0.7818, allocations: 10.39 kB / 1.087 GB, free: 13.87 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.542e-06/0.7818, allocations: 1.203 kB / 1.087 GB, free: 13.87 MB / 0.8419 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 (2): * Single equations (assignments): 2 * 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 8.495e-05/0.7819, allocations: 116.4 kB / 1.087 GB, free: 13.75 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.554e-05/0.782, allocations: 2.766 kB / 1.087 GB, free: 13.75 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001766/0.7821, allocations: 64.88 kB / 1.087 GB, free: 13.7 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.685e-06/0.7822, allocations: 0 / 1.087 GB, free: 13.7 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.7822, allocations: 1.062 kB / 1.087 GB, free: 13.7 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.59e-06/0.7822, allocations: 0.5156 kB / 1.087 GB, free: 13.7 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00019/0.7824, allocations: 170 kB / 1.088 GB, free: 13.5 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.7824, allocations: 0.75 kB / 1.088 GB, free: 13.5 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.46e-05/0.7824, allocations: 6.125 kB / 1.088 GB, free: 13.5 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.441e-06/0.7824, allocations: 0.8438 kB / 1.088 GB, free: 13.5 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.863e-06/0.7824, allocations: 4.922 kB / 1.088 GB, free: 13.5 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.413e-06/0.7825, allocations: 0.5312 kB / 1.088 GB, free: 13.5 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.7825, allocations: 4.562 kB / 1.088 GB, free: 13.49 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001843/0.7827, allocations: 152.5 kB / 1.088 GB, free: 13.35 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 5.896e-05/0.7827, allocations: 89.53 kB / 1.088 GB, free: 13.25 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.483e-05/0.7827, allocations: 1.594 kB / 1.088 GB, free: 13.25 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.022e-05/0.7828, allocations: 3.062 kB / 1.088 GB, free: 13.25 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.273e-05/0.7828, allocations: 2.031 kB / 1.088 GB, free: 13.25 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.939e-06/0.7829, allocations: 1.281 kB / 1.088 GB, free: 13.25 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 6.511e-05/0.7829, allocations: 92.81 kB / 1.088 GB, free: 13.16 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.11e-07/0.7829, allocations: 0 / 1.088 GB, free: 13.16 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002423/0.7832, allocations: 16.84 kB / 1.088 GB, free: 13.16 MB / 0.8419 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 (2): * Single equations (assignments): 2 * 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.0001789/0.7834, allocations: 114.9 kB / 1.088 GB, free: 13.07 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0001434/0.7835, allocations: 26.86 kB / 1.088 GB, free: 13.06 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.7835, allocations: 0 / 1.088 GB, free: 13.06 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 5.308e-05/0.7836, allocations: 18.19 kB / 1.088 GB, free: 13.05 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002108/0.7838, allocations: 10.98 kB / 1.088 GB, free: 13.04 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003364/0.7841, allocations: 143.4 kB / 1.088 GB, free: 12.9 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003293/0.7845, allocations: 0.6794 MB / 1.089 GB, free: 12.2 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.377e-05/0.7845, allocations: 9.875 kB / 1.089 GB, free: 12.2 MB / 0.8419 GB Notification: Performance of SimCode: time 2.21e-07/0.7845, allocations: 0 / 1.089 GB, free: 12.2 MB / 0.8419 GB Notification: Performance of Templates: time 0.00266/0.7872, allocations: 0.8119 MB / 1.09 GB, free: 12.12 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit.sim & ./Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_SmoothLimit.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches