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.001251/0.001251, allocations: 111.3 kB / 15.23 MB, free: 0.6367 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.001766/0.001766, allocations: 196.8 kB / 16.14 MB, free: 6.734 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.394/1.394, allocations: 222.9 MB / 239.8 MB, free: 4.602 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.828/2.828, allocations: 472.6 MB / 0.7447 GB, free: 4.926 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001253/0.001253, allocations: 65.53 kB / 0.9114 GB, free: 33.56 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3219/0.3232, allocations: 159.9 MB / 1.068 GB, free: 10.86 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothBlocks): time 0.003457/0.3267, allocations: 1.833 MB / 1.069 GB, free: 9.016 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.00141/0.3281, allocations: 0.6662 MB / 1.07 GB, free: 8.344 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.324e-05/0.3282, allocations: 0 / 1.07 GB, free: 8.344 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 6.393e-05/0.3283, allocations: 7.922 kB / 1.07 GB, free: 8.336 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 9.324e-05/0.3284, allocations: 11.88 kB / 1.07 GB, free: 8.324 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005874/0.329, allocations: 159 kB / 1.07 GB, free: 8.172 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001558/0.3291, allocations: 115.7 kB / 1.07 GB, free: 8.059 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001809/0.3293, allocations: 45.09 kB / 1.07 GB, free: 8.012 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001517/0.3295, allocations: 55.83 kB / 1.07 GB, free: 7.957 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001105/0.3296, allocations: 47.72 kB / 1.07 GB, free: 7.91 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.018e-05/0.3296, allocations: 8 kB / 1.07 GB, free: 7.902 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001234/0.3298, allocations: 51.94 kB / 1.07 GB, free: 7.852 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 4.07e-05/0.3298, allocations: 19.92 kB / 1.07 GB, free: 7.832 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 7.149e-05/0.3299, allocations: 63.64 kB / 1.071 GB, free: 7.77 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002579/0.3302, allocations: 131.8 kB / 1.071 GB, free: 7.641 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 6.662e-06/0.3302, allocations: 0 / 1.071 GB, free: 7.641 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.362e-06/0.3302, allocations: 0 / 1.071 GB, free: 7.641 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.382e-06/0.3302, allocations: 8 kB / 1.071 GB, free: 7.633 MB / 0.8262 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.0008263/0.331, allocations: 431 kB / 1.071 GB, free: 7.164 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 5.426e-05/0.3311, allocations: 12.03 kB / 1.071 GB, free: 7.152 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009114/0.332, allocations: 112.7 kB / 1.071 GB, free: 7.043 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001713/0.3322, allocations: 184 kB / 1.071 GB, free: 6.824 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001292/0.3323, allocations: 67.95 kB / 1.071 GB, free: 6.746 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.831e-05/0.3324, allocations: 4.375 kB / 1.071 GB, free: 6.742 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005593/0.3329, allocations: 173.6 kB / 1.072 GB, free: 6.566 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.284e-05/0.333, allocations: 4 kB / 1.072 GB, free: 6.562 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.839e-05/0.333, allocations: 3.984 kB / 1.072 GB, free: 6.559 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.917e-06/0.333, allocations: 4 kB / 1.072 GB, free: 6.555 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000575/0.3336, allocations: 151.8 kB / 1.072 GB, free: 6.406 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001095/0.3347, allocations: 493.6 kB / 1.072 GB, free: 5.875 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009934/0.3357, allocations: 214.3 kB / 1.072 GB, free: 5.656 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003/0.336, allocations: 84.91 kB / 1.073 GB, free: 5.57 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.621e-05/0.336, allocations: 0 / 1.073 GB, free: 5.57 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.912e-05/0.3361, allocations: 34.5 kB / 1.073 GB, free: 5.527 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=6): time 1.042e-06/0.3361, allocations: 0 / 1.073 GB, free: 5.527 MB / 0.8262 GB Notification: Performance of matching and sorting (n=6): time 0.001004/0.3371, allocations: 269.4 kB / 1.073 GB, free: 5.258 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.882e-05/0.3371, allocations: 51.41 kB / 1.073 GB, free: 5.195 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000107/0.3373, allocations: 139.5 kB / 1.073 GB, free: 5.051 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.502e-05/0.3373, allocations: 29.7 kB / 1.073 GB, free: 5.016 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 6.185e-05/0.3374, allocations: 116.1 kB / 1.073 GB, free: 4.898 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.57e-05/0.3374, allocations: 19.66 kB / 1.073 GB, free: 4.879 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.539e-05/0.3374, allocations: 25.7 kB / 1.073 GB, free: 4.848 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 9.599e-05/0.3375, allocations: 322.8 kB / 1.073 GB, free: 4.523 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002885/0.3378, allocations: 71.92 kB / 1.074 GB, free: 4.453 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002883/0.3381, allocations: 102.5 kB / 1.074 GB, free: 4.344 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005496/0.3387, allocations: 166.6 kB / 1.074 GB, free: 4.172 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.3387, allocations: 0 / 1.074 GB, free: 4.172 MB / 0.8262 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0006381/0.3393, allocations: 205.4 kB / 1.074 GB, free: 3.965 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.714e-05/0.3394, allocations: 9.562 kB / 1.074 GB, free: 3.957 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.278e-06/0.3394, allocations: 0 / 1.074 GB, free: 3.957 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.724e-05/0.3394, allocations: 7.938 kB / 1.074 GB, free: 3.949 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002638/0.3397, allocations: 39.83 kB / 1.074 GB, free: 3.91 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.771e-06/0.3397, allocations: 0 / 1.074 GB, free: 3.91 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002071/0.3399, allocations: 27.97 kB / 1.074 GB, free: 3.883 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.838e-05/0.3399, allocations: 7.969 kB / 1.074 GB, free: 3.875 MB / 0.8262 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 9.351e-05/0.34, allocations: 117.8 kB / 1.074 GB, free: 3.75 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.544e-05/0.3401, allocations: 7.906 kB / 1.074 GB, free: 3.742 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007116/0.3408, allocations: 210.2 kB / 1.074 GB, free: 3.523 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.635e-06/0.3408, allocations: 3.938 kB / 1.074 GB, free: 3.52 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.058e-06/0.3408, allocations: 0 / 1.074 GB, free: 3.52 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.334e-06/0.3408, allocations: 0 / 1.074 GB, free: 3.52 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000248/0.3411, allocations: 238.1 kB / 1.075 GB, free: 3.238 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.283e-06/0.3411, allocations: 0 / 1.075 GB, free: 3.238 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002256/0.3413, allocations: 31.95 kB / 1.075 GB, free: 3.207 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.984e-06/0.3413, allocations: 0 / 1.075 GB, free: 3.207 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.168e-05/0.3414, allocations: 7.938 kB / 1.075 GB, free: 3.199 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.452e-06/0.3414, allocations: 4 kB / 1.075 GB, free: 3.195 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.3414, allocations: 0 / 1.075 GB, free: 3.195 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006643/0.342, allocations: 279.3 kB / 1.075 GB, free: 2.906 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.914e-05/0.3421, allocations: 85.02 kB / 1.075 GB, free: 2.805 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.991e-05/0.3421, allocations: 11.92 kB / 1.075 GB, free: 2.793 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003033/0.3424, allocations: 32.14 kB / 1.075 GB, free: 2.762 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.173e-05/0.3425, allocations: 7.938 kB / 1.075 GB, free: 2.754 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.171e-05/0.3425, allocations: 7.984 kB / 1.075 GB, free: 2.746 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 6.97e-05/0.3426, allocations: 112.9 kB / 1.075 GB, free: 2.637 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3426, allocations: 0 / 1.075 GB, free: 2.637 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002682/0.3429, allocations: 27.91 kB / 1.075 GB, free: 2.609 MB / 0.8262 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.0001257/0.343, allocations: 107.2 kB / 1.075 GB, free: 2.496 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0006521/0.3437, allocations: 163.8 kB / 1.075 GB, free: 2.336 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 4.489e-06/0.3437, allocations: 4.125 kB / 1.075 GB, free: 2.332 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.000303/0.344, allocations: 79.92 kB / 1.076 GB, free: 2.254 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003478/0.3443, allocations: 4 kB / 1.076 GB, free: 2.25 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006304/0.345, allocations: 297.1 kB / 1.076 GB, free: 1.934 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002328/0.3452, allocations: 0.7004 MB / 1.077 GB, free: 1.207 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001005/0.3453, allocations: 12 kB / 1.077 GB, free: 1.195 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.043e-05/0.3454, allocations: 15.42 kB / 1.077 GB, free: 1.18 MB / 0.8262 GB Notification: Performance of SimCode: time 2.9e-07/0.3454, allocations: 0 / 1.077 GB, free: 1.18 MB / 0.8262 GB Notification: Performance of Templates: time 0.003541/0.349, allocations: 1.377 MB / 1.078 GB, free: 15.81 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=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