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.0008482/0.0008487, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.006251/0.006251, allocations: 169.9 kB / 16.26 MB, free: 6.613 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.4/1.4, allocations: 223.3 MB / 240.3 MB, free: 5.348 MB / 190.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.638/2.638, allocations: 437.8 MB / 0.7121 GB, free: 6.949 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003909/0.0003914, allocations: 12 kB / 0.8728 GB, free: 3.285 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7342/0.7346, allocations: 153.8 MB / 1.023 GB, free: 15.84 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothBlocks): time 0.001982/0.7366, allocations: 1.481 MB / 1.024 GB, free: 14.34 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001108/0.7377, allocations: 0.6476 MB / 1.025 GB, free: 13.69 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.218e-05/0.7378, allocations: 0 / 1.025 GB, free: 13.69 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 2.263e-05/0.7378, allocations: 11.92 kB / 1.025 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 8.296e-05/0.7379, allocations: 15.86 kB / 1.025 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005075/0.7384, allocations: 156 kB / 1.025 GB, free: 13.51 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0001485/0.7386, allocations: 119.6 kB / 1.025 GB, free: 13.39 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001374/0.7387, allocations: 41.09 kB / 1.025 GB, free: 13.36 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001149/0.7388, allocations: 51.83 kB / 1.025 GB, free: 13.3 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 7.962e-05/0.7389, allocations: 35.78 kB / 1.026 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.124e-05/0.739, allocations: 4 kB / 1.026 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001072/0.7391, allocations: 39.97 kB / 1.026 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 3.869e-05/0.7391, allocations: 23.91 kB / 1.026 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 6.88e-05/0.7392, allocations: 73.36 kB / 1.026 GB, free: 13.12 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001937/0.7394, allocations: 133.6 kB / 1.026 GB, free: 13 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.7394, allocations: 0 / 1.026 GB, free: 13 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.463e-06/0.7394, allocations: 0 / 1.026 GB, free: 13 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.378e-06/0.7394, allocations: 0 / 1.026 GB, free: 13 MB / 0.7794 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.0005844/0.74, allocations: 430.9 kB / 1.026 GB, free: 12.53 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.327e-05/0.7401, allocations: 8.031 kB / 1.026 GB, free: 12.52 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000896/0.741, allocations: 144.7 kB / 1.026 GB, free: 12.38 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001562/0.7411, allocations: 176.2 kB / 1.026 GB, free: 12.17 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001169/0.7413, allocations: 79.86 kB / 1.027 GB, free: 12.08 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.135e-05/0.7413, allocations: 4.375 kB / 1.027 GB, free: 12.07 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005694/0.7419, allocations: 196 kB / 1.027 GB, free: 11.88 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.466e-06/0.7419, allocations: 0 / 1.027 GB, free: 11.88 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.425e-05/0.7419, allocations: 4 kB / 1.027 GB, free: 11.88 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.16e-06/0.7419, allocations: 0 / 1.027 GB, free: 11.88 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006969/0.7426, allocations: 199.8 kB / 1.027 GB, free: 11.68 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001231/0.7439, allocations: 0.494 MB / 1.027 GB, free: 11.13 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001166/0.745, allocations: 270.3 kB / 1.028 GB, free: 10.86 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003377/0.7454, allocations: 104.8 kB / 1.028 GB, free: 10.75 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.952e-05/0.7454, allocations: 3.984 kB / 1.028 GB, free: 10.75 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.937e-05/0.7455, allocations: 30.56 kB / 1.028 GB, free: 10.71 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=6): time 1.303e-06/0.7455, allocations: 0 / 1.028 GB, free: 10.71 MB / 0.7794 GB Notification: Performance of matching and sorting (n=6): time 0.001176/0.7466, allocations: 321.4 kB / 1.028 GB, free: 10.39 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.171e-05/0.7467, allocations: 51.41 kB / 1.028 GB, free: 10.33 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001349/0.7468, allocations: 139 kB / 1.028 GB, free: 10.18 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.124e-05/0.7469, allocations: 29.7 kB / 1.028 GB, free: 10.15 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 7.873e-05/0.747, allocations: 112.1 kB / 1.028 GB, free: 10.03 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.326e-05/0.747, allocations: 11.81 kB / 1.028 GB, free: 10.02 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.852e-05/0.747, allocations: 21.7 kB / 1.028 GB, free: 9.992 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001197/0.7472, allocations: 318.8 kB / 1.029 GB, free: 9.672 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003421/0.7475, allocations: 91.91 kB / 1.029 GB, free: 9.582 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003713/0.7479, allocations: 110.5 kB / 1.029 GB, free: 9.465 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006655/0.7486, allocations: 198.4 kB / 1.029 GB, free: 9.262 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.7486, allocations: 0 / 1.029 GB, free: 9.262 MB / 0.7794 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0007452/0.7493, allocations: 237.4 kB / 1.029 GB, free: 9.023 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.941e-05/0.7494, allocations: 4 kB / 1.029 GB, free: 9.02 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.887e-06/0.7494, allocations: 4 kB / 1.029 GB, free: 9.016 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.465e-05/0.7494, allocations: 3.938 kB / 1.029 GB, free: 9.012 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002856/0.7497, allocations: 55.92 kB / 1.029 GB, free: 8.957 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.071e-06/0.7497, allocations: 4 kB / 1.029 GB, free: 8.953 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002074/0.7499, allocations: 35.81 kB / 1.03 GB, free: 8.918 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.455e-05/0.7499, allocations: 8 kB / 1.03 GB, free: 8.91 MB / 0.7794 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.0001145/0.7501, allocations: 117.8 kB / 1.03 GB, free: 8.785 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.286e-05/0.7501, allocations: 11.89 kB / 1.03 GB, free: 8.773 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008156/0.7509, allocations: 242.2 kB / 1.03 GB, free: 8.531 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.717e-06/0.7509, allocations: 384 / 1.03 GB, free: 8.531 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/0.751, allocations: 0 / 1.03 GB, free: 8.531 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.486e-06/0.751, allocations: 3.938 kB / 1.03 GB, free: 8.527 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002737/0.7512, allocations: 245.9 kB / 1.03 GB, free: 8.238 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.7513, allocations: 0 / 1.03 GB, free: 8.238 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002411/0.7515, allocations: 47.94 kB / 1.03 GB, free: 8.191 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.981e-06/0.7515, allocations: 0 / 1.03 GB, free: 8.191 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.5e-05/0.7515, allocations: 11.88 kB / 1.03 GB, free: 8.18 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.146e-06/0.7515, allocations: 0 / 1.03 GB, free: 8.18 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.7516, allocations: 3.938 kB / 1.03 GB, free: 8.176 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008076/0.7524, allocations: 323.3 kB / 1.03 GB, free: 7.844 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.938e-05/0.7524, allocations: 81.02 kB / 1.031 GB, free: 7.746 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.998e-05/0.7525, allocations: 7.938 kB / 1.031 GB, free: 7.738 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003321/0.7528, allocations: 43.95 kB / 1.031 GB, free: 7.695 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.146e-05/0.7529, allocations: 3.984 kB / 1.031 GB, free: 7.691 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.2e-05/0.7529, allocations: 11.98 kB / 1.031 GB, free: 7.68 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 9.407e-05/0.753, allocations: 104.6 kB / 1.031 GB, free: 7.578 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.1e-07/0.753, allocations: 0 / 1.031 GB, free: 7.578 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002722/0.7533, allocations: 27.84 kB / 1.031 GB, free: 7.551 MB / 0.7794 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.0001399/0.7534, allocations: 99.23 kB / 1.031 GB, free: 7.445 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0007558/0.7542, allocations: 203.8 kB / 1.031 GB, free: 7.246 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.7542, allocations: 0 / 1.031 GB, free: 7.246 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0003501/0.7545, allocations: 108 kB / 1.031 GB, free: 7.141 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003221/0.7549, allocations: 8 kB / 1.031 GB, free: 7.133 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007115/0.7556, allocations: 309.4 kB / 1.031 GB, free: 6.805 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003029/0.7559, allocations: 0.7004 MB / 1.032 GB, free: 6.078 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 9.177e-05/0.756, allocations: 12 kB / 1.032 GB, free: 6.066 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.098e-05/0.7561, allocations: 15.42 kB / 1.032 GB, free: 6.051 MB / 0.7794 GB Notification: Performance of SimCode: time 5.61e-07/0.7561, allocations: 0 / 1.032 GB, free: 6.051 MB / 0.7794 GB Notification: Performance of Templates: time 0.003949/0.76, allocations: 1.363 MB / 1.033 GB, free: 4.699 MB / 0.7794 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