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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.0019/0.0019, allocations: 102.5 kB / 16.27 MB, free: 5.996 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.001875/0.001875, allocations: 186.5 kB / 17.2 MB, free: 5.605 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.449/1.449, allocations: 222.9 MB / 240.9 MB, free: 15.25 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.802/2.802, allocations: 482.4 MB / 0.7553 GB, free: 6.965 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001963/0.001963, allocations: 65.08 kB / 0.9245 GB, free: 15.98 MB / 0.7012 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9219/0.9239, allocations: 162.2 MB / 1.083 GB, free: 1.641 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothBlocks): time 0.002798/0.9267, allocations: 1.776 MB / 1.085 GB, free: 400 kB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001153/0.9279, allocations: 0.6602 MB / 1.085 GB, free: 15.93 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.669e-05/0.928, allocations: 1.312 kB / 1.085 GB, free: 15.93 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 4.491e-05/0.9281, allocations: 11.19 kB / 1.085 GB, free: 15.92 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 7.289e-05/0.9281, allocations: 23.12 kB / 1.085 GB, free: 15.9 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006095/0.9288, allocations: 164.5 kB / 1.085 GB, free: 15.82 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0001763/0.9289, allocations: 128.8 kB / 1.086 GB, free: 15.77 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000177/0.9291, allocations: 45.05 kB / 1.086 GB, free: 15.75 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001374/0.9293, allocations: 58 kB / 1.086 GB, free: 15.72 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 9.041e-05/0.9294, allocations: 46.33 kB / 1.086 GB, free: 15.7 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 3.372e-05/0.9294, allocations: 10.31 kB / 1.086 GB, free: 15.7 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001324/0.9295, allocations: 52.64 kB / 1.086 GB, free: 15.68 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 4.968e-05/0.9296, allocations: 32.48 kB / 1.086 GB, free: 15.66 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 7.656e-05/0.9297, allocations: 60.27 kB / 1.086 GB, free: 15.62 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0002349/0.9299, allocations: 141.3 kB / 1.086 GB, free: 15.57 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.9299, allocations: 1.359 kB / 1.086 GB, free: 15.57 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.173e-06/0.9299, allocations: 0 / 1.086 GB, free: 15.57 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 5.561e-06/0.93, allocations: 0.7812 kB / 1.086 GB, free: 15.57 MB / 0.8419 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.0007629/0.9307, allocations: 438 kB / 1.086 GB, free: 15.16 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.577e-05/0.9308, allocations: 12.94 kB / 1.086 GB, free: 15.16 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008751/0.9317, allocations: 105 kB / 1.087 GB, free: 15.16 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002513/0.9319, allocations: 190.3 kB / 1.087 GB, free: 14.94 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001007/0.932, allocations: 61.89 kB / 1.087 GB, free: 14.88 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.157e-05/0.9321, allocations: 13.06 kB / 1.087 GB, free: 14.87 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005762/0.9326, allocations: 170.5 kB / 1.087 GB, free: 14.8 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.546e-06/0.9327, allocations: 0 / 1.087 GB, free: 14.8 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.514e-05/0.9327, allocations: 4.875 kB / 1.087 GB, free: 14.8 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.909e-06/0.9327, allocations: 2.312 kB / 1.087 GB, free: 14.8 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006621/0.9334, allocations: 161.9 kB / 1.087 GB, free: 14.77 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001179/0.9345, allocations: 491.9 kB / 1.088 GB, free: 14.41 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001092/0.9357, allocations: 217.1 kB / 1.088 GB, free: 14.35 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003213/0.936, allocations: 79.41 kB / 1.088 GB, free: 14.32 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.647e-05/0.936, allocations: 1.734 kB / 1.088 GB, free: 14.32 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.657e-05/0.9361, allocations: 44.39 kB / 1.088 GB, free: 14.27 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=6): time 1.352e-06/0.9361, allocations: 0 / 1.088 GB, free: 14.27 MB / 0.8419 GB Notification: Performance of matching and sorting (n=6): time 0.001119/0.9372, allocations: 267.1 kB / 1.088 GB, free: 14.18 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.442e-05/0.9373, allocations: 52.78 kB / 1.088 GB, free: 14.12 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001399/0.9374, allocations: 134.8 kB / 1.088 GB, free: 14.01 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 3.062e-05/0.9374, allocations: 26.7 kB / 1.088 GB, free: 13.98 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 8.826e-05/0.9375, allocations: 114.3 kB / 1.088 GB, free: 13.88 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 2.982e-05/0.9376, allocations: 19.33 kB / 1.089 GB, free: 13.86 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.467e-05/0.9376, allocations: 27.98 kB / 1.089 GB, free: 13.84 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001558/0.9378, allocations: 324.3 kB / 1.089 GB, free: 13.52 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003226/0.9381, allocations: 70.16 kB / 1.089 GB, free: 13.5 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003442/0.9385, allocations: 96.59 kB / 1.089 GB, free: 13.46 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006799/0.9392, allocations: 160.8 kB / 1.089 GB, free: 13.4 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.9392, allocations: 0 / 1.089 GB, free: 13.4 MB / 0.8419 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0007541/0.9399, allocations: 201.8 kB / 1.089 GB, free: 13.33 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.27e-05/0.94, allocations: 8.938 kB / 1.089 GB, free: 13.32 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.802e-06/0.94, allocations: 1.984 kB / 1.089 GB, free: 13.32 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.329e-05/0.94, allocations: 8.859 kB / 1.089 GB, free: 13.32 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002844/0.9403, allocations: 48.22 kB / 1.089 GB, free: 13.3 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.615e-06/0.9403, allocations: 1.312 kB / 1.089 GB, free: 13.3 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002053/0.9405, allocations: 21.16 kB / 1.089 GB, free: 13.3 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.509e-05/0.9406, allocations: 4.359 kB / 1.089 GB, free: 13.3 MB / 0.8419 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.0001368/0.9407, allocations: 114.9 kB / 1.09 GB, free: 13.19 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.711e-05/0.9408, allocations: 7.969 kB / 1.09 GB, free: 13.18 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008012/0.9416, allocations: 216.7 kB / 1.09 GB, free: 13.1 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.068e-06/0.9416, allocations: 0 / 1.09 GB, free: 13.1 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.135e-06/0.9416, allocations: 1.375 kB / 1.09 GB, free: 13.1 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.797e-06/0.9416, allocations: 4.5 kB / 1.09 GB, free: 13.09 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003064/0.9419, allocations: 241 kB / 1.09 GB, free: 12.87 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-06/0.9419, allocations: 0 / 1.09 GB, free: 12.87 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002451/0.9422, allocations: 36.53 kB / 1.09 GB, free: 12.86 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.946e-06/0.9422, allocations: 0 / 1.09 GB, free: 12.86 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.517e-05/0.9422, allocations: 6.359 kB / 1.09 GB, free: 12.86 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.164e-06/0.9422, allocations: 2.062 kB / 1.09 GB, free: 12.86 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.9422, allocations: 0 / 1.09 GB, free: 12.86 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008472/0.9431, allocations: 285.2 kB / 1.09 GB, free: 12.69 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 5.616e-05/0.9431, allocations: 85.95 kB / 1.09 GB, free: 12.59 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.222e-05/0.9432, allocations: 3.938 kB / 1.09 GB, free: 12.59 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003203/0.9435, allocations: 33 kB / 1.09 GB, free: 12.58 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.868e-05/0.9435, allocations: 8.641 kB / 1.09 GB, free: 12.58 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.37e-05/0.9436, allocations: 12.14 kB / 1.09 GB, free: 12.57 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 8.16e-05/0.9437, allocations: 106 kB / 1.091 GB, free: 12.49 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.9e-07/0.9437, allocations: 0 / 1.091 GB, free: 12.49 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002687/0.9439, allocations: 23.84 kB / 1.091 GB, free: 12.49 MB / 0.8419 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.0001546/0.9441, allocations: 97.23 kB / 1.091 GB, free: 12.4 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0007331/0.9448, allocations: 169.6 kB / 1.091 GB, free: 12.36 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.9449, allocations: 0 / 1.091 GB, free: 12.36 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.000331/0.9452, allocations: 79.98 kB / 1.091 GB, free: 12.35 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003492/0.9456, allocations: 13.66 kB / 1.091 GB, free: 12.34 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007539/0.9463, allocations: 287.7 kB / 1.091 GB, free: 12.14 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003529/0.9467, allocations: 0.7021 MB / 1.092 GB, free: 11.44 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.822e-05/0.9468, allocations: 15.48 kB / 1.092 GB, free: 11.43 MB / 0.8419 GB Notification: Performance of SimCode: time 4.91e-07/0.9468, allocations: 1.094 kB / 1.092 GB, free: 11.43 MB / 0.8419 GB Notification: Performance of Templates: time 0.00379/0.9506, allocations: 1.594 MB / 1.093 GB, free: 11.31 MB / 0.8419 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=400 -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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.SmoothBlocks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches