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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.008167/0.008167, allocations: 100.7 kB / 15.87 MB, free: 5.867 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.001983/0.001983, allocations: 191.2 kB / 16.79 MB, free: 5.809 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.443/1.443, allocations: 222.9 MB / 240.5 MB, free: 4.57 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.446/2.446, allocations: 390.2 MB / 0.6649 GB, free: 0.5703 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00202/0.00202, allocations: 55.91 kB / 0.8125 GB, free: 14.88 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.658/0.6601, allocations: 140.4 MB / 0.9496 GB, free: 9.133 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothBlocks): time 0.00276/0.6629, allocations: 1.82 MB / 0.9514 GB, free: 7.707 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0009843/0.6639, allocations: 0.6581 MB / 0.952 GB, free: 7.188 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.933e-05/0.664, allocations: 1.344 kB / 0.952 GB, free: 7.188 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 4.579e-05/0.664, allocations: 11.86 kB / 0.952 GB, free: 7.176 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.129e-05/0.6641, allocations: 10.88 kB / 0.952 GB, free: 7.168 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004699/0.6646, allocations: 151 kB / 0.9522 GB, free: 7.074 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001203/0.6647, allocations: 121 kB / 0.9523 GB, free: 7.008 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001314/0.6648, allocations: 49.58 kB / 0.9523 GB, free: 6.977 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001081/0.6649, allocations: 52.58 kB / 0.9524 GB, free: 6.949 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.832e-05/0.665, allocations: 48.02 kB / 0.9524 GB, free: 6.914 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.267e-05/0.6651, allocations: 11.77 kB / 0.9524 GB, free: 6.91 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001133/0.6652, allocations: 40.25 kB / 0.9525 GB, free: 6.895 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.029e-05/0.6652, allocations: 24.95 kB / 0.9525 GB, free: 6.875 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 6.562e-05/0.6653, allocations: 62.2 kB / 0.9526 GB, free: 6.828 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001478/0.6655, allocations: 98.91 kB / 0.9527 GB, free: 6.762 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/0.6655, allocations: 0 / 0.9527 GB, free: 6.762 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.232e-06/0.6655, allocations: 1.281 kB / 0.9527 GB, free: 6.762 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.389e-06/0.6655, allocations: 0 / 0.9527 GB, free: 6.762 MB / 0.7169 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.0005477/0.666, allocations: 434.3 kB / 0.9531 GB, free: 6.336 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.837e-05/0.6661, allocations: 9.156 kB / 0.9531 GB, free: 6.336 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008577/0.6669, allocations: 115.8 kB / 0.9532 GB, free: 6.277 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000117/0.6671, allocations: 188.8 kB / 0.9534 GB, free: 6.062 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.694e-05/0.6672, allocations: 63.02 kB / 0.9534 GB, free: 5.996 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.234e-05/0.6672, allocations: 9.344 kB / 0.9534 GB, free: 5.992 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005161/0.6677, allocations: 175.8 kB / 0.9536 GB, free: 5.879 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.556e-06/0.6677, allocations: 0 / 0.9536 GB, free: 5.879 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.327e-05/0.6678, allocations: 5.438 kB / 0.9536 GB, free: 5.875 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.591e-06/0.6678, allocations: 1.188 kB / 0.9536 GB, free: 5.875 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005977/0.6684, allocations: 160.8 kB / 0.9538 GB, free: 5.797 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001052/0.6694, allocations: 481.9 kB / 0.9542 GB, free: 5.363 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009796/0.6704, allocations: 219.4 kB / 0.9544 GB, free: 5.238 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002855/0.6707, allocations: 79.91 kB / 0.9545 GB, free: 5.195 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.589e-05/0.6708, allocations: 5.109 kB / 0.9545 GB, free: 5.191 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.2e-05/0.6708, allocations: 39.94 kB / 0.9546 GB, free: 5.145 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=6): time 1.273e-06/0.6708, allocations: 3.938 kB / 0.9546 GB, free: 5.141 MB / 0.7169 GB Notification: Performance of matching and sorting (n=6): time 0.0009632/0.6718, allocations: 259.7 kB / 0.9548 GB, free: 4.996 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.217e-05/0.6718, allocations: 60.41 kB / 0.9549 GB, free: 4.926 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.612e-05/0.6719, allocations: 138.8 kB / 0.955 GB, free: 4.805 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.058e-05/0.6719, allocations: 26.55 kB / 0.955 GB, free: 4.773 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.39e-05/0.672, allocations: 109.4 kB / 0.9551 GB, free: 4.664 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.179e-05/0.672, allocations: 14.88 kB / 0.9551 GB, free: 4.652 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.42e-05/0.6721, allocations: 28.02 kB / 0.9552 GB, free: 4.625 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.369e-05/0.6721, allocations: 320.8 kB / 0.9555 GB, free: 4.305 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002854/0.6724, allocations: 73.33 kB / 0.9555 GB, free: 4.27 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002811/0.6727, allocations: 94.42 kB / 0.9556 GB, free: 4.207 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005327/0.6732, allocations: 164.2 kB / 0.9558 GB, free: 4.109 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.6732, allocations: 0 / 0.9558 GB, free: 4.109 MB / 0.7169 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0006287/0.6739, allocations: 207.3 kB / 0.956 GB, free: 3.988 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.699e-05/0.6739, allocations: 4.469 kB / 0.956 GB, free: 3.988 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.11e-06/0.6739, allocations: 1.375 kB / 0.956 GB, free: 3.988 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.966e-05/0.6739, allocations: 4.969 kB / 0.956 GB, free: 3.984 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002657/0.6742, allocations: 39.3 kB / 0.956 GB, free: 3.969 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.394e-06/0.6742, allocations: 5.266 kB / 0.956 GB, free: 3.965 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001928/0.6744, allocations: 28.19 kB / 0.9561 GB, free: 3.949 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.631e-05/0.6745, allocations: 6.891 kB / 0.9561 GB, free: 3.945 MB / 0.7169 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 8.081e-05/0.6745, allocations: 117.9 kB / 0.9562 GB, free: 3.824 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.634e-05/0.6746, allocations: 16.69 kB / 0.9562 GB, free: 3.812 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006984/0.6753, allocations: 202.5 kB / 0.9564 GB, free: 3.688 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.156e-06/0.6753, allocations: 1.219 kB / 0.9564 GB, free: 3.688 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.068e-06/0.6753, allocations: 0 / 0.9564 GB, free: 3.688 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.696e-06/0.6753, allocations: 1.219 kB / 0.9564 GB, free: 3.688 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002103/0.6755, allocations: 246.1 kB / 0.9566 GB, free: 3.426 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.6755, allocations: 0 / 0.9566 GB, free: 3.426 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002201/0.6758, allocations: 37.67 kB / 0.9567 GB, free: 3.41 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.595e-06/0.6758, allocations: 0 / 0.9567 GB, free: 3.41 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.39e-05/0.6758, allocations: 3.938 kB / 0.9567 GB, free: 3.406 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.6758, allocations: 0 / 0.9567 GB, free: 3.406 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.6758, allocations: 1.906 kB / 0.9567 GB, free: 3.406 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006003/0.6764, allocations: 296.9 kB / 0.957 GB, free: 3.18 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.491e-05/0.6765, allocations: 88.78 kB / 0.957 GB, free: 3.078 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.516e-05/0.6765, allocations: 3.938 kB / 0.957 GB, free: 3.074 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002952/0.6768, allocations: 28.52 kB / 0.9571 GB, free: 3.062 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.317e-05/0.6768, allocations: 6.719 kB / 0.9571 GB, free: 3.059 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.986e-05/0.6769, allocations: 11.55 kB / 0.9571 GB, free: 3.051 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 5.146e-05/0.6769, allocations: 108.8 kB / 0.9572 GB, free: 2.961 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6769, allocations: 0 / 0.9572 GB, free: 2.961 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002722/0.6772, allocations: 23.69 kB / 0.9572 GB, free: 2.957 MB / 0.7169 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.0001204/0.6773, allocations: 95.91 kB / 0.9573 GB, free: 2.867 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0006082/0.6779, allocations: 173.3 kB / 0.9575 GB, free: 2.781 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.678, allocations: 0 / 0.9575 GB, free: 2.781 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0002761/0.6782, allocations: 77.92 kB / 0.9575 GB, free: 2.746 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000349/0.6786, allocations: 17.98 kB / 0.9576 GB, free: 2.734 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006086/0.6792, allocations: 311.9 kB / 0.9579 GB, free: 2.477 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001276/0.6794, allocations: 0.7036 MB / 0.9586 GB, free: 1.766 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.934e-05/0.6794, allocations: 19.55 kB / 0.9586 GB, free: 1.75 MB / 0.7169 GB Notification: Performance of SimCode: time 4.21e-07/0.6794, allocations: 0 / 0.9586 GB, free: 1.75 MB / 0.7169 GB Notification: Performance of Templates: time 0.002924/0.6824, allocations: 1.589 MB / 0.9601 GB, free: 0.9258 MB / 0.7169 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