Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_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_9_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.001218/0.001222, allocations: 108.2 kB / 16.41 MB, free: 6.504 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.001105/0.001105, allocations: 187 kB / 17.34 MB, free: 5.742 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.426/1.426, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.364/2.364, allocations: 390.3 MB / 0.6655 GB, free: 0.6406 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001599/0.0016, allocations: 67.89 kB / 0.9515 GB, free: 7.641 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9486/0.9503, allocations: 140.4 MB / 1.089 GB, free: 5.523 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothBlocks): time 0.003033/0.9533, allocations: 1.772 MB / 1.09 GB, free: 4.285 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001113/0.9545, allocations: 0.668 MB / 1.091 GB, free: 3.816 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.207e-05/0.9545, allocations: 1.094 kB / 1.091 GB, free: 3.816 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 4.386e-05/0.9546, allocations: 10.5 kB / 1.091 GB, free: 3.809 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 6.811e-05/0.9547, allocations: 19.61 kB / 1.091 GB, free: 3.793 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005846/0.9553, allocations: 168.1 kB / 1.091 GB, free: 3.711 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002105/0.9555, allocations: 122 kB / 1.091 GB, free: 3.66 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001636/0.9557, allocations: 52.59 kB / 1.091 GB, free: 3.633 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001492/0.9558, allocations: 65.22 kB / 1.091 GB, free: 3.602 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001107/0.9559, allocations: 50.64 kB / 1.091 GB, free: 3.574 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.304e-05/0.956, allocations: 10.47 kB / 1.091 GB, free: 3.574 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001345/0.9561, allocations: 45.45 kB / 1.092 GB, free: 3.566 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 3.98e-05/0.9562, allocations: 32.19 kB / 1.092 GB, free: 3.547 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 5.986e-05/0.9562, allocations: 59.69 kB / 1.092 GB, free: 3.508 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002425/0.9565, allocations: 147.8 kB / 1.092 GB, free: 3.449 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.811e-06/0.9565, allocations: 0 / 1.092 GB, free: 3.449 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.064e-06/0.9565, allocations: 1.125 kB / 1.092 GB, free: 3.449 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.711e-06/0.9565, allocations: 0 / 1.092 GB, free: 3.449 MB / 0.8575 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.000564/0.9571, allocations: 435.4 kB / 1.092 GB, free: 3.047 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.817e-05/0.9571, allocations: 9.75 kB / 1.092 GB, free: 3.047 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000838/0.958, allocations: 112.5 kB / 1.092 GB, free: 3.035 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001012/0.9581, allocations: 180.8 kB / 1.092 GB, free: 2.828 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.622e-05/0.9582, allocations: 68.83 kB / 1.093 GB, free: 2.758 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.349e-05/0.9582, allocations: 5.375 kB / 1.093 GB, free: 2.758 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005457/0.9587, allocations: 173.8 kB / 1.093 GB, free: 2.688 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.428e-06/0.9588, allocations: 1.312 kB / 1.093 GB, free: 2.688 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.42e-05/0.9588, allocations: 8.688 kB / 1.093 GB, free: 2.68 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.35e-06/0.9588, allocations: 1.906 kB / 1.093 GB, free: 2.68 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006413/0.9594, allocations: 159.5 kB / 1.093 GB, free: 2.645 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001085/0.9605, allocations: 479.9 kB / 1.093 GB, free: 2.297 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001055/0.9616, allocations: 219.8 kB / 1.094 GB, free: 2.234 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003102/0.9619, allocations: 84.39 kB / 1.094 GB, free: 2.207 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.931e-05/0.962, allocations: 1.359 kB / 1.094 GB, free: 2.207 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.018e-05/0.962, allocations: 36.78 kB / 1.094 GB, free: 2.164 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=6): time 1.162e-06/0.962, allocations: 0 / 1.094 GB, free: 2.164 MB / 0.8575 GB Notification: Performance of matching and sorting (n=6): time 0.00104/0.963, allocations: 266.3 kB / 1.094 GB, free: 2.074 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.821e-05/0.9631, allocations: 52.78 kB / 1.094 GB, free: 2.012 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001128/0.9632, allocations: 136.5 kB / 1.094 GB, free: 1.902 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.106e-05/0.9632, allocations: 30.55 kB / 1.094 GB, free: 1.867 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 5.01e-05/0.9633, allocations: 110.6 kB / 1.094 GB, free: 1.762 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.273e-05/0.9633, allocations: 20.2 kB / 1.094 GB, free: 1.746 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.649e-05/0.9634, allocations: 22.86 kB / 1.094 GB, free: 1.727 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 5.391e-05/0.9634, allocations: 320.3 kB / 1.095 GB, free: 1.41 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000304/0.9637, allocations: 74.84 kB / 1.095 GB, free: 1.395 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003085/0.9641, allocations: 96.61 kB / 1.095 GB, free: 1.352 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005834/0.9646, allocations: 164.9 kB / 1.095 GB, free: 1.289 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.9647, allocations: 0 / 1.095 GB, free: 1.289 MB / 0.8575 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0006825/0.9653, allocations: 201.7 kB / 1.095 GB, free: 1.215 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.99e-05/0.9654, allocations: 9.234 kB / 1.095 GB, free: 1.215 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.901e-06/0.9654, allocations: 4.844 kB / 1.095 GB, free: 1.211 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.894e-05/0.9654, allocations: 4.688 kB / 1.095 GB, free: 1.207 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002658/0.9657, allocations: 36.17 kB / 1.095 GB, free: 1.207 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.043e-06/0.9657, allocations: 1.094 kB / 1.095 GB, free: 1.207 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001952/0.9659, allocations: 33.62 kB / 1.095 GB, free: 1.195 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.932e-05/0.9659, allocations: 3.703 kB / 1.095 GB, free: 1.195 MB / 0.8575 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 7.724e-05/0.966, allocations: 123.3 kB / 1.095 GB, free: 1.07 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.362e-05/0.9661, allocations: 7.875 kB / 1.095 GB, free: 1.066 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007503/0.9668, allocations: 204.6 kB / 1.095 GB, free: 0.9922 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.627e-06/0.9668, allocations: 4.812 kB / 1.095 GB, free: 0.9883 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.079e-06/0.9668, allocations: 0 / 1.095 GB, free: 0.9883 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.396e-06/0.9668, allocations: 1.531 kB / 1.095 GB, free: 0.9883 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002377/0.9671, allocations: 236.3 kB / 1.096 GB, free: 0.7656 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.435e-06/0.9671, allocations: 1.219 kB / 1.096 GB, free: 0.7656 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000232/0.9673, allocations: 35.17 kB / 1.096 GB, free: 0.7617 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.996e-06/0.9673, allocations: 1.062 kB / 1.096 GB, free: 0.7617 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.745e-05/0.9674, allocations: 6.969 kB / 1.096 GB, free: 0.7578 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.705e-06/0.9674, allocations: 0 / 1.096 GB, free: 0.7578 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.9674, allocations: 8.469 kB / 1.096 GB, free: 0.75 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007055/0.9681, allocations: 282.9 kB / 1.096 GB, free: 0.582 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.484e-05/0.9681, allocations: 83.2 kB / 1.096 GB, free: 496 kB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.771e-05/0.9682, allocations: 13.78 kB / 1.096 GB, free: 484 kB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003022/0.9685, allocations: 29.25 kB / 1.096 GB, free: 484 kB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.469e-05/0.9685, allocations: 4.922 kB / 1.096 GB, free: 484 kB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.186e-05/0.9686, allocations: 6.906 kB / 1.096 GB, free: 484 kB / 0.8575 GB Notification: Performance of sorting global known variables: time 6.39e-05/0.9686, allocations: 106.2 kB / 1.096 GB, free: 400 kB / 0.8575 GB Notification: Performance of sort global known variables: time 1.3e-07/0.9686, allocations: 1.094 kB / 1.096 GB, free: 400 kB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002724/0.9689, allocations: 30.88 kB / 1.096 GB, free: 388 kB / 0.8575 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.000128/0.969, allocations: 105.5 kB / 1.096 GB, free: 292 kB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0007126/0.9698, allocations: 164.6 kB / 1.097 GB, free: 256 kB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.9698, allocations: 0.5 kB / 1.097 GB, free: 256 kB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0003343/0.9701, allocations: 88.33 kB / 1.097 GB, free: 232 kB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003749/0.9705, allocations: 9.594 kB / 1.097 GB, free: 228 kB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008135/0.9713, allocations: 278.8 kB / 1.097 GB, free: 20 kB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004237/0.9718, allocations: 0.7025 MB / 1.098 GB, free: 15.32 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.454e-05/0.9719, allocations: 15.42 kB / 1.098 GB, free: 15.31 MB / 0.8731 GB Notification: Performance of SimCode: time 2.2e-07/0.9719, allocations: 0.7812 kB / 1.098 GB, free: 15.31 MB / 0.8731 GB Notification: Performance of Templates: time 0.005003/0.9769, allocations: 1.608 MB / 1.099 GB, free: 15.18 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks.sim & ./Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_SmoothBlocks.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches