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.009204/0.009204, allocations: 97.41 kB / 15.73 MB, free: 6.047 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.002135/0.002135, allocations: 197 kB / 16.67 MB, free: 5.973 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.504/1.504, allocations: 222.9 MB / 240.4 MB, free: 4.172 MB / 190.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.451/2.451, allocations: 390.2 MB / 0.6648 GB, free: 180 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001293/0.001293, allocations: 68.28 kB / 0.9509 GB, free: 5.602 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3241/0.3254, allocations: 140.4 MB / 1.088 GB, free: 1.48 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothBlocks): time 0.003008/0.3285, allocations: 1.765 MB / 1.09 GB, free: 15.7 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001106/0.3296, allocations: 0.6631 MB / 1.09 GB, free: 15.03 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.983e-05/0.3297, allocations: 0 / 1.09 GB, free: 15.03 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 4.37e-05/0.3297, allocations: 11.86 kB / 1.09 GB, free: 15.02 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 6.551e-05/0.3298, allocations: 15.81 kB / 1.09 GB, free: 15 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005836/0.3304, allocations: 176.6 kB / 1.09 GB, free: 14.83 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001958/0.3306, allocations: 127.7 kB / 1.091 GB, free: 14.71 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001645/0.3308, allocations: 48.84 kB / 1.091 GB, free: 14.66 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001243/0.3309, allocations: 63.77 kB / 1.091 GB, free: 14.6 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 8.851e-05/0.331, allocations: 47.77 kB / 1.091 GB, free: 14.55 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.652e-05/0.3311, allocations: 8 kB / 1.091 GB, free: 14.54 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001139/0.3312, allocations: 51.95 kB / 1.091 GB, free: 14.49 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 4.338e-05/0.3312, allocations: 27.91 kB / 1.091 GB, free: 14.46 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 6.51e-05/0.3313, allocations: 63.64 kB / 1.091 GB, free: 14.4 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002451/0.3315, allocations: 155.4 kB / 1.091 GB, free: 14.25 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.002e-06/0.3316, allocations: 0 / 1.091 GB, free: 14.25 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.603e-06/0.3316, allocations: 0 / 1.091 GB, free: 14.25 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 7.665e-06/0.3316, allocations: 0 / 1.091 GB, free: 14.25 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.0006782/0.3323, allocations: 442.8 kB / 1.091 GB, free: 13.77 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.835e-05/0.3323, allocations: 8.031 kB / 1.091 GB, free: 13.76 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008418/0.3332, allocations: 116.7 kB / 1.092 GB, free: 13.65 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001312/0.3333, allocations: 178 kB / 1.092 GB, free: 13.44 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001039/0.3334, allocations: 63.97 kB / 1.092 GB, free: 13.36 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.7e-05/0.3334, allocations: 8.375 kB / 1.092 GB, free: 13.36 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005162/0.334, allocations: 175.5 kB / 1.092 GB, free: 13.18 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.007e-05/0.334, allocations: 3.938 kB / 1.092 GB, free: 13.18 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.227e-05/0.334, allocations: 0 / 1.092 GB, free: 13.18 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.021e-06/0.334, allocations: 4 kB / 1.092 GB, free: 13.17 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006123/0.3346, allocations: 159.8 kB / 1.092 GB, free: 13.02 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001107/0.3357, allocations: 481.9 kB / 1.093 GB, free: 12.5 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00105/0.3368, allocations: 218.3 kB / 1.093 GB, free: 12.27 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003098/0.3371, allocations: 84.91 kB / 1.093 GB, free: 12.19 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.984e-05/0.3372, allocations: 0 / 1.093 GB, free: 12.19 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.133e-05/0.3372, allocations: 34.56 kB / 1.093 GB, free: 12.14 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=6): time 1.082e-06/0.3372, allocations: 0 / 1.093 GB, free: 12.14 MB / 0.8575 GB Notification: Performance of matching and sorting (n=6): time 0.001077/0.3383, allocations: 273.2 kB / 1.093 GB, free: 11.87 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.758e-05/0.3383, allocations: 51.41 kB / 1.093 GB, free: 11.81 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000169/0.3385, allocations: 139.8 kB / 1.093 GB, free: 11.66 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 3.012e-05/0.3386, allocations: 25.7 kB / 1.093 GB, free: 11.63 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001071/0.3387, allocations: 112.2 kB / 1.094 GB, free: 11.52 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 4.204e-05/0.3387, allocations: 23.83 kB / 1.094 GB, free: 11.49 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.338e-05/0.3388, allocations: 33.64 kB / 1.094 GB, free: 11.45 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001996/0.339, allocations: 318.8 kB / 1.094 GB, free: 11.13 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003314/0.3394, allocations: 71.91 kB / 1.094 GB, free: 11.06 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003625/0.3397, allocations: 94.5 kB / 1.094 GB, free: 10.96 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006746/0.3404, allocations: 166.6 kB / 1.094 GB, free: 10.79 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.358e-06/0.3404, allocations: 0 / 1.094 GB, free: 10.79 MB / 0.8575 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0007443/0.3412, allocations: 205.4 kB / 1.094 GB, free: 10.58 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.558e-05/0.3412, allocations: 4 kB / 1.094 GB, free: 10.58 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.875e-06/0.3412, allocations: 160 / 1.094 GB, free: 10.58 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.058e-05/0.3413, allocations: 12 kB / 1.094 GB, free: 10.57 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003032/0.3416, allocations: 35.94 kB / 1.094 GB, free: 10.53 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.446e-05/0.3416, allocations: 7.922 kB / 1.094 GB, free: 10.52 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000207/0.3418, allocations: 31.86 kB / 1.094 GB, free: 10.49 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.679e-05/0.3419, allocations: 0 / 1.094 GB, free: 10.49 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 0.0001446/0.342, allocations: 117.8 kB / 1.095 GB, free: 10.37 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.628e-05/0.3421, allocations: 15.94 kB / 1.095 GB, free: 10.35 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007927/0.3429, allocations: 206.2 kB / 1.095 GB, free: 10.14 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.848e-06/0.3429, allocations: 3.984 kB / 1.095 GB, free: 10.14 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.13e-06/0.3429, allocations: 4 kB / 1.095 GB, free: 10.14 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.564e-06/0.3429, allocations: 0 / 1.095 GB, free: 10.14 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003173/0.3432, allocations: 226.4 kB / 1.095 GB, free: 9.867 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.547e-06/0.3432, allocations: 0 / 1.095 GB, free: 9.867 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000237/0.3435, allocations: 43.88 kB / 1.095 GB, free: 9.824 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.326e-06/0.3435, allocations: 0 / 1.095 GB, free: 9.824 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.109e-05/0.3435, allocations: 7.938 kB / 1.095 GB, free: 9.816 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.3435, allocations: 0 / 1.095 GB, free: 9.816 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.183e-06/0.3435, allocations: 0 / 1.095 GB, free: 9.816 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007816/0.3443, allocations: 287.5 kB / 1.095 GB, free: 9.52 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 6.563e-05/0.3444, allocations: 85.02 kB / 1.095 GB, free: 9.418 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.182e-05/0.3444, allocations: 7.938 kB / 1.095 GB, free: 9.41 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003084/0.3448, allocations: 35.95 kB / 1.095 GB, free: 9.375 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.06e-05/0.3448, allocations: 3.984 kB / 1.095 GB, free: 9.371 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.996e-05/0.3449, allocations: 7.984 kB / 1.095 GB, free: 9.363 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 9.255e-05/0.345, allocations: 103.3 kB / 1.096 GB, free: 9.262 MB / 0.8575 GB Notification: Performance of sort global known variables: time 2.234e-06/0.345, allocations: 3.938 kB / 1.096 GB, free: 9.258 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002732/0.3453, allocations: 27.88 kB / 1.096 GB, free: 9.23 MB / 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.0002295/0.3455, allocations: 107.7 kB / 1.096 GB, free: 9.117 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0007505/0.3463, allocations: 163.8 kB / 1.096 GB, free: 8.957 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 3.888e-06/0.3463, allocations: 0 / 1.096 GB, free: 8.957 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.00032/0.3466, allocations: 83.97 kB / 1.096 GB, free: 8.875 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004482/0.3471, allocations: 10.25 kB / 1.096 GB, free: 8.867 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007272/0.3478, allocations: 255.2 kB / 1.096 GB, free: 8.586 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003355/0.3481, allocations: 0.7041 MB / 1.097 GB, free: 7.855 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0001119/0.3483, allocations: 12 kB / 1.097 GB, free: 7.844 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.933e-05/0.3483, allocations: 11.44 kB / 1.097 GB, free: 7.832 MB / 0.8575 GB Notification: Performance of SimCode: time 3.31e-07/0.3483, allocations: 4 kB / 1.097 GB, free: 7.828 MB / 0.8575 GB Notification: Performance of Templates: time 0.004191/0.3525, allocations: 1.474 MB / 1.098 GB, free: 6.367 MB / 0.8575 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches