Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 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.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_latest_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_latest_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.009871/0.009871, allocations: 103 kB / 15.73 MB, free: 5.492 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.002/0.002, allocations: 190.2 kB / 16.67 MB, free: 5.422 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.402/1.402, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.624/2.624, allocations: 461.9 MB / 0.7348 GB, free: 11.06 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001407/0.001407, allocations: 63.89 kB / 1.054 GB, free: 7.66 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9257/0.9272, allocations: 157.4 MB / 1.208 GB, free: 13.61 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothBlocks): time 0.003588/0.9308, allocations: 1.77 MB / 1.209 GB, free: 11.84 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001394/0.9322, allocations: 0.6623 MB / 1.21 GB, free: 11.17 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001085/0.9324, allocations: 0 / 1.21 GB, free: 11.17 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 5.032e-05/0.9324, allocations: 11.86 kB / 1.21 GB, free: 11.16 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.000102/0.9326, allocations: 11.81 kB / 1.21 GB, free: 11.14 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006846/0.9332, allocations: 174.8 kB / 1.21 GB, free: 10.98 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0002169/0.9335, allocations: 127.6 kB / 1.21 GB, free: 10.85 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001645/0.9336, allocations: 45.05 kB / 1.21 GB, free: 10.81 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001816/0.9338, allocations: 67.81 kB / 1.211 GB, free: 10.74 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001116/0.9339, allocations: 43.78 kB / 1.211 GB, free: 10.7 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 3.108e-05/0.934, allocations: 8 kB / 1.211 GB, free: 10.69 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001279/0.9341, allocations: 47.95 kB / 1.211 GB, free: 10.64 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 4.476e-05/0.9342, allocations: 31.91 kB / 1.211 GB, free: 10.61 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 8.343e-05/0.9343, allocations: 55.7 kB / 1.211 GB, free: 10.56 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0002663/0.9345, allocations: 147.3 kB / 1.211 GB, free: 10.42 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 7.744e-06/0.9346, allocations: 7.984 kB / 1.211 GB, free: 10.41 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.122e-06/0.9346, allocations: 4 kB / 1.211 GB, free: 10.41 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 1.162e-05/0.9346, allocations: 0 / 1.211 GB, free: 10.41 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: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.0007151/0.9353, allocations: 432.8 kB / 1.211 GB, free: 9.938 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.786e-05/0.9353, allocations: 8.031 kB / 1.211 GB, free: 9.93 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008364/0.9362, allocations: 112.7 kB / 1.211 GB, free: 9.82 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001719/0.9364, allocations: 181.7 kB / 1.212 GB, free: 9.605 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001055/0.9365, allocations: 63.97 kB / 1.212 GB, free: 9.531 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.129e-05/0.9365, allocations: 8.375 kB / 1.212 GB, free: 9.523 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005136/0.937, allocations: 173.6 kB / 1.212 GB, free: 9.348 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.487e-06/0.9371, allocations: 4 kB / 1.212 GB, free: 9.344 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.841e-05/0.9371, allocations: 4 kB / 1.212 GB, free: 9.34 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.167e-05/0.9371, allocations: 7.938 kB / 1.212 GB, free: 9.332 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005385/0.9377, allocations: 151.8 kB / 1.212 GB, free: 9.184 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001136/0.9388, allocations: 497.8 kB / 1.212 GB, free: 8.648 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009326/0.9397, allocations: 218.3 kB / 1.213 GB, free: 8.426 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002713/0.94, allocations: 80.91 kB / 1.213 GB, free: 8.344 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.787e-05/0.9401, allocations: 4 kB / 1.213 GB, free: 8.34 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.089e-05/0.9401, allocations: 34.5 kB / 1.213 GB, free: 8.297 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=6): time 1.452e-06/0.9401, allocations: 0 / 1.213 GB, free: 8.297 MB / 0.9356 GB Notification: Performance of matching and sorting (n=6): time 0.0009553/0.9411, allocations: 265.5 kB / 1.213 GB, free: 8.031 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.369e-05/0.9411, allocations: 51.41 kB / 1.213 GB, free: 7.969 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001111/0.9412, allocations: 136.2 kB / 1.213 GB, free: 7.828 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 2.741e-05/0.9413, allocations: 29.7 kB / 1.213 GB, free: 7.793 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 8e-05/0.9414, allocations: 112.1 kB / 1.213 GB, free: 7.68 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 2.575e-05/0.9414, allocations: 23.64 kB / 1.213 GB, free: 7.656 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.339e-05/0.9415, allocations: 25.7 kB / 1.213 GB, free: 7.625 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001288/0.9416, allocations: 322.8 kB / 1.214 GB, free: 7.301 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002771/0.9419, allocations: 79.89 kB / 1.214 GB, free: 7.223 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002754/0.9422, allocations: 94.44 kB / 1.214 GB, free: 7.121 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005388/0.9427, allocations: 158.4 kB / 1.214 GB, free: 6.957 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.659e-06/0.9427, allocations: 3.984 kB / 1.214 GB, free: 6.953 MB / 0.9356 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0006177/0.9434, allocations: 201.4 kB / 1.214 GB, free: 6.75 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.723e-05/0.9434, allocations: 4 kB / 1.214 GB, free: 6.746 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.765e-06/0.9434, allocations: 4.297 kB / 1.214 GB, free: 6.742 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.765e-05/0.9434, allocations: 3.938 kB / 1.214 GB, free: 6.738 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002577/0.9437, allocations: 43.95 kB / 1.214 GB, free: 6.695 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.418e-06/0.9437, allocations: 4 kB / 1.214 GB, free: 6.691 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001791/0.9439, allocations: 27.91 kB / 1.214 GB, free: 6.664 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.503e-05/0.9439, allocations: 4 kB / 1.214 GB, free: 6.66 MB / 0.9356 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.0001103/0.944, allocations: 117.8 kB / 1.214 GB, free: 6.535 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.921e-05/0.9441, allocations: 7.906 kB / 1.214 GB, free: 6.527 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007005/0.9448, allocations: 218 kB / 1.215 GB, free: 6.301 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.715e-06/0.9448, allocations: 0 / 1.215 GB, free: 6.301 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.047e-06/0.9448, allocations: 0 / 1.215 GB, free: 6.301 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.785e-06/0.9448, allocations: 4 kB / 1.215 GB, free: 6.297 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002731/0.9451, allocations: 242.2 kB / 1.215 GB, free: 6.008 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.9451, allocations: 0 / 1.215 GB, free: 6.008 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002158/0.9453, allocations: 31.95 kB / 1.215 GB, free: 5.977 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.025e-06/0.9453, allocations: 0 / 1.215 GB, free: 5.977 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.828e-05/0.9454, allocations: 7.938 kB / 1.215 GB, free: 5.969 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.934e-06/0.9454, allocations: 0 / 1.215 GB, free: 5.969 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.9454, allocations: 0 / 1.215 GB, free: 5.969 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006713/0.9461, allocations: 283.3 kB / 1.215 GB, free: 5.676 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 4.316e-05/0.9461, allocations: 81.02 kB / 1.215 GB, free: 5.578 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.314e-05/0.9461, allocations: 7.938 kB / 1.215 GB, free: 5.57 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002782/0.9464, allocations: 35.95 kB / 1.215 GB, free: 5.535 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.362e-05/0.9465, allocations: 7.922 kB / 1.215 GB, free: 5.527 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.189e-05/0.9465, allocations: 7.984 kB / 1.215 GB, free: 5.52 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 7.846e-05/0.9466, allocations: 103.3 kB / 1.215 GB, free: 5.418 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.11e-07/0.9466, allocations: 0 / 1.215 GB, free: 5.418 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002757/0.9469, allocations: 31.84 kB / 1.215 GB, free: 5.387 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 (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.0001239/0.947, allocations: 99.23 kB / 1.216 GB, free: 5.281 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0006217/0.9476, allocations: 163.8 kB / 1.216 GB, free: 5.121 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.355e-06/0.9476, allocations: 0 / 1.216 GB, free: 5.121 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0002758/0.9479, allocations: 84.28 kB / 1.216 GB, free: 5.039 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003485/0.9483, allocations: 20.95 kB / 1.216 GB, free: 5.023 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006445/0.9489, allocations: 243.5 kB / 1.216 GB, free: 4.758 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003078/0.9493, allocations: 0.7002 MB / 1.217 GB, free: 4.031 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 8.884e-05/0.9494, allocations: 15.98 kB / 1.217 GB, free: 4.016 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.981e-05/0.9494, allocations: 15.42 kB / 1.217 GB, free: 4 MB / 0.9356 GB Notification: Performance of SimCode: time 1.964e-06/0.9494, allocations: 4 kB / 1.217 GB, free: 3.996 MB / 0.9356 GB Notification: Performance of Templates: time 0.00427/0.9537, allocations: 1.479 MB / 1.218 GB, free: 2.531 MB / 0.9356 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.SmoothBlocks.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.SmoothBlocks.sim & ./Buildings_latest_Buildings.Utilities.Math.Examples.SmoothBlocks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.SmoothBlocks_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_SmoothBlocks.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.SmoothBlocks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches