Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Utilities.Math.Examples.SmoothBlocks.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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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.SmoothBlocks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|smoMax.u1|smoMax.u2|smoMax.y|max.y|smoMin.y|Min.y",fileNamePrefix="Buildings_10_Buildings.Utilities.Math.Examples.SmoothBlocks") translateModel(Buildings.Utilities.Math.Examples.SmoothBlocks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|smoMax.u1|smoMax.u2|smoMax.y|max.y|smoMin.y|Min.y",fileNamePrefix="Buildings_10_Buildings.Utilities.Math.Examples.SmoothBlocks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005456/0.005456, allocations: 99.64 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.001235/0.001235, allocations: 192 kB / 16.67 MB, free: 5.961 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.336/1.336, allocations: 222.9 MB / 240.4 MB, free: 15.12 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.449/2.449, allocations: 437 MB / 0.7105 GB, free: 4.383 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001222/0.001222, allocations: 64.12 kB / 1.019 GB, free: 9.387 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8578/0.8591, allocations: 151.6 MB / 1.167 GB, free: 3.836 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothBlocks): time 0.002656/0.8617, allocations: 1.777 MB / 1.168 GB, free: 2.047 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.0009838/0.8627, allocations: 0.6476 MB / 1.169 GB, free: 1.391 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.616e-05/0.8628, allocations: 0 / 1.169 GB, free: 1.391 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 3.685e-05/0.8629, allocations: 19.8 kB / 1.169 GB, free: 1.371 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 6.297e-05/0.8629, allocations: 15.8 kB / 1.169 GB, free: 1.355 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005203/0.8635, allocations: 170.1 kB / 1.169 GB, free: 1.191 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0001536/0.8636, allocations: 127.6 kB / 1.169 GB, free: 1.066 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001365/0.8638, allocations: 45.11 kB / 1.169 GB, free: 1.023 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001098/0.8639, allocations: 55.83 kB / 1.169 GB, free: 0.9688 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 8.324e-05/0.864, allocations: 47.77 kB / 1.169 GB, free: 0.9219 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 2.937e-05/0.864, allocations: 12 kB / 1.169 GB, free: 0.9102 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001106/0.8641, allocations: 51.97 kB / 1.169 GB, free: 0.8594 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 3.626e-05/0.8642, allocations: 35.89 kB / 1.17 GB, free: 0.8242 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 5.944e-05/0.8642, allocations: 55.72 kB / 1.17 GB, free: 0.7695 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0002056/0.8644, allocations: 147.9 kB / 1.17 GB, free: 0.6289 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 3.306e-06/0.8644, allocations: 0 / 1.17 GB, free: 0.6289 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.493e-06/0.8645, allocations: 0 / 1.17 GB, free: 0.6289 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 8.496e-06/0.8645, allocations: 0 / 1.17 GB, free: 0.6289 MB / 0.8887 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.0005628/0.865, allocations: 438.8 kB / 1.17 GB, free: 156 kB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.356e-05/0.8651, allocations: 12.92 kB / 1.17 GB, free: 144 kB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008114/0.8659, allocations: 112.7 kB / 1.17 GB, free: 32 kB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001565/0.8661, allocations: 194.3 kB / 1.17 GB, free: 15.8 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.307e-05/0.8662, allocations: 63.97 kB / 1.171 GB, free: 15.73 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.304e-05/0.8662, allocations: 8.375 kB / 1.171 GB, free: 15.72 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005006/0.8667, allocations: 173.7 kB / 1.171 GB, free: 15.55 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.826e-06/0.8667, allocations: 7.938 kB / 1.171 GB, free: 15.54 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.973e-05/0.8668, allocations: 0 / 1.171 GB, free: 15.54 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.065e-06/0.8668, allocations: 3.984 kB / 1.171 GB, free: 15.54 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005878/0.8674, allocations: 159.8 kB / 1.171 GB, free: 15.38 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001012/0.8684, allocations: 493.5 kB / 1.171 GB, free: 14.85 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009553/0.8693, allocations: 218.3 kB / 1.172 GB, free: 14.62 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002966/0.8697, allocations: 84.89 kB / 1.172 GB, free: 14.54 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 2.687e-05/0.8697, allocations: 8 kB / 1.172 GB, free: 14.53 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.905e-05/0.8697, allocations: 30.56 kB / 1.172 GB, free: 14.49 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=6): time 1.002e-06/0.8697, allocations: 0 / 1.172 GB, free: 14.49 MB / 0.9044 GB Notification: Performance of matching and sorting (n=6): time 0.0009613/0.8707, allocations: 261.3 kB / 1.172 GB, free: 14.23 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.271e-05/0.8707, allocations: 55.41 kB / 1.172 GB, free: 14.16 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001076/0.8708, allocations: 133.8 kB / 1.172 GB, free: 14.02 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 2.122e-05/0.8709, allocations: 29.64 kB / 1.172 GB, free: 13.99 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 6.07e-05/0.8709, allocations: 116.2 kB / 1.172 GB, free: 13.87 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 2.723e-05/0.871, allocations: 27.78 kB / 1.172 GB, free: 13.84 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.318e-05/0.871, allocations: 21.72 kB / 1.172 GB, free: 13.81 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001046/0.8711, allocations: 318.8 kB / 1.173 GB, free: 13.49 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002952/0.8714, allocations: 79.86 kB / 1.173 GB, free: 13.41 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003186/0.8718, allocations: 98.48 kB / 1.173 GB, free: 13.31 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005621/0.8723, allocations: 158.4 kB / 1.173 GB, free: 13.14 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.8723, allocations: 0 / 1.173 GB, free: 13.14 MB / 0.9044 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0006479/0.873, allocations: 205.5 kB / 1.173 GB, free: 12.94 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.737e-05/0.873, allocations: 10.5 kB / 1.173 GB, free: 12.93 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.809e-06/0.873, allocations: 0 / 1.173 GB, free: 12.93 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.559e-05/0.8731, allocations: 3.938 kB / 1.173 GB, free: 12.93 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000246/0.8733, allocations: 35.95 kB / 1.173 GB, free: 12.89 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.656e-06/0.8733, allocations: 3.984 kB / 1.173 GB, free: 12.89 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001883/0.8735, allocations: 19.97 kB / 1.173 GB, free: 12.87 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.986e-05/0.8735, allocations: 8 kB / 1.173 GB, free: 12.86 MB / 0.9044 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (8): * Single equations (assignments): 8 * 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 0.0001058/0.8737, allocations: 121.8 kB / 1.173 GB, free: 12.73 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.038e-05/0.8737, allocations: 7.953 kB / 1.173 GB, free: 12.72 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006928/0.8744, allocations: 218.4 kB / 1.173 GB, free: 12.5 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.881e-06/0.8744, allocations: 4 kB / 1.173 GB, free: 12.5 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/0.8744, allocations: 3.984 kB / 1.173 GB, free: 12.5 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.835e-06/0.8744, allocations: 0 / 1.173 GB, free: 12.5 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002426/0.8747, allocations: 230.4 kB / 1.174 GB, free: 12.22 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.8747, allocations: 0 / 1.174 GB, free: 12.22 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002113/0.8749, allocations: 35.95 kB / 1.174 GB, free: 12.18 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.754e-06/0.8749, allocations: 0 / 1.174 GB, free: 12.18 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.684e-05/0.8749, allocations: 7.922 kB / 1.174 GB, free: 12.18 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.363e-06/0.8749, allocations: 4 kB / 1.174 GB, free: 12.17 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.52e-07/0.875, allocations: 0 / 1.174 GB, free: 12.17 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006454/0.8756, allocations: 283.3 kB / 1.174 GB, free: 11.88 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 3.995e-05/0.8757, allocations: 89.06 kB / 1.174 GB, free: 11.77 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.25e-05/0.8757, allocations: 3.938 kB / 1.174 GB, free: 11.77 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000277/0.876, allocations: 31.95 kB / 1.174 GB, free: 11.74 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.437e-05/0.876, allocations: 7.984 kB / 1.174 GB, free: 11.73 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.978e-05/0.876, allocations: 7.984 kB / 1.174 GB, free: 11.72 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 7.147e-05/0.8761, allocations: 105.3 kB / 1.174 GB, free: 11.62 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8761, allocations: 0 / 1.174 GB, free: 11.62 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002518/0.8764, allocations: 27.95 kB / 1.174 GB, free: 11.59 MB / 0.9044 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 (6): * Single equations (assignments): 6 * 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.0001231/0.8765, allocations: 101 kB / 1.174 GB, free: 11.49 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0006514/0.8772, allocations: 163.8 kB / 1.175 GB, free: 11.33 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.8772, allocations: 4.125 kB / 1.175 GB, free: 11.32 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0003004/0.8775, allocations: 79.91 kB / 1.175 GB, free: 11.25 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003387/0.8778, allocations: 8 kB / 1.175 GB, free: 11.24 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006416/0.8785, allocations: 267.1 kB / 1.175 GB, free: 10.95 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002723/0.8788, allocations: 0.6963 MB / 1.176 GB, free: 10.22 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 9.531e-05/0.8789, allocations: 23.97 kB / 1.176 GB, free: 10.2 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.647e-05/0.8789, allocations: 11.44 kB / 1.176 GB, free: 10.19 MB / 0.9044 GB Notification: Performance of SimCode: time 2.3e-07/0.8789, allocations: 0 / 1.176 GB, free: 10.19 MB / 0.9044 GB Notification: Performance of Templates: time 0.003661/0.8826, allocations: 1.482 MB / 1.177 GB, free: 8.727 MB / 0.9044 GB make -j1 -f Buildings_10_Buildings.Utilities.Math.Examples.SmoothBlocks.makefile (rm -f Buildings_10_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Examples.SmoothBlocks.sim & ./Buildings_10_Buildings.Utilities.Math.Examples.SmoothBlocks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Examples.SmoothBlocks_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Examples_SmoothBlocks.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Examples.SmoothBlocks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches