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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001206/0.001206, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001161/0.001161, allocations: 193.8 kB / 16.14 MB, free: 6.707 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.419/1.419, allocations: 222.9 MB / 239.8 MB, free: 4.637 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.812/2.812, allocations: 461.9 MB / 0.7342 GB, free: 15.02 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001478/0.001478, allocations: 62.91 kB / 0.8984 GB, free: 37.26 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3471/0.3486, allocations: 157.4 MB / 1.052 GB, free: 8.855 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothBlocks): time 0.002941/0.3516, allocations: 1.831 MB / 1.054 GB, free: 7.008 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001088/0.3527, allocations: 0.6738 MB / 1.055 GB, free: 6.328 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.76e-05/0.3528, allocations: 4 kB / 1.055 GB, free: 6.324 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 4.473e-05/0.3528, allocations: 11.92 kB / 1.055 GB, free: 6.312 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 6.48e-05/0.3529, allocations: 7.875 kB / 1.055 GB, free: 6.305 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005011/0.3534, allocations: 150.7 kB / 1.055 GB, free: 6.16 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001267/0.3535, allocations: 115.7 kB / 1.055 GB, free: 6.047 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001402/0.3537, allocations: 41.09 kB / 1.055 GB, free: 6.008 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001138/0.3538, allocations: 59.84 kB / 1.055 GB, free: 5.949 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 8.83e-05/0.3539, allocations: 47.75 kB / 1.055 GB, free: 5.902 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.526e-05/0.3539, allocations: 8 kB / 1.055 GB, free: 5.895 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001117/0.3541, allocations: 43.97 kB / 1.055 GB, free: 5.852 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 3.717e-05/0.3541, allocations: 27.89 kB / 1.055 GB, free: 5.824 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 5.759e-05/0.3542, allocations: 51.67 kB / 1.055 GB, free: 5.773 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002142/0.3544, allocations: 143.8 kB / 1.055 GB, free: 5.633 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 6.853e-06/0.3544, allocations: 7.938 kB / 1.055 GB, free: 5.625 MB / 0.8106 GB Notification: Performance of FrontEnd: time 8.11e-07/0.3544, allocations: 0 / 1.055 GB, free: 5.625 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.999e-06/0.3544, allocations: 0 / 1.055 GB, free: 5.625 MB / 0.8106 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.0006524/0.3551, allocations: 435.1 kB / 1.056 GB, free: 5.152 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.88e-05/0.3551, allocations: 8.031 kB / 1.056 GB, free: 5.145 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008746/0.356, allocations: 112.6 kB / 1.056 GB, free: 5.035 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001353/0.3561, allocations: 185.5 kB / 1.056 GB, free: 4.816 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.593e-05/0.3562, allocations: 63.97 kB / 1.056 GB, free: 4.742 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.474e-05/0.3563, allocations: 8.375 kB / 1.056 GB, free: 4.734 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000534/0.3568, allocations: 178.9 kB / 1.056 GB, free: 4.555 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.182e-05/0.3568, allocations: 0 / 1.056 GB, free: 4.555 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.067e-05/0.3569, allocations: 4 kB / 1.056 GB, free: 4.551 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.075e-05/0.3569, allocations: 4 kB / 1.056 GB, free: 4.547 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006042/0.3575, allocations: 159.8 kB / 1.056 GB, free: 4.391 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001125/0.3586, allocations: 477.9 kB / 1.057 GB, free: 3.871 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009789/0.3596, allocations: 218.3 kB / 1.057 GB, free: 3.648 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002943/0.3599, allocations: 88.89 kB / 1.057 GB, free: 3.559 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.662e-05/0.36, allocations: 3.984 kB / 1.057 GB, free: 3.555 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.646e-05/0.36, allocations: 38.56 kB / 1.057 GB, free: 3.508 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=6): time 2.405e-06/0.36, allocations: 0 / 1.057 GB, free: 3.508 MB / 0.8106 GB Notification: Performance of matching and sorting (n=6): time 0.0009934/0.361, allocations: 265.4 kB / 1.057 GB, free: 3.242 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.501e-05/0.3611, allocations: 51.41 kB / 1.057 GB, free: 3.18 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001066/0.3612, allocations: 135.5 kB / 1.058 GB, free: 3.039 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.692e-05/0.3612, allocations: 29.7 kB / 1.058 GB, free: 3.004 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.419e-05/0.3613, allocations: 112.1 kB / 1.058 GB, free: 2.891 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.418e-05/0.3613, allocations: 19.75 kB / 1.058 GB, free: 2.871 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.538e-05/0.3614, allocations: 25.7 kB / 1.058 GB, free: 2.84 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001004/0.3615, allocations: 322.8 kB / 1.058 GB, free: 2.516 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002961/0.3618, allocations: 67.92 kB / 1.058 GB, free: 2.449 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002982/0.3621, allocations: 98.48 kB / 1.058 GB, free: 2.344 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005767/0.3627, allocations: 162.6 kB / 1.058 GB, free: 2.176 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.345e-06/0.3627, allocations: 8 kB / 1.058 GB, free: 2.168 MB / 0.8106 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0006521/0.3633, allocations: 201.4 kB / 1.059 GB, free: 1.965 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.609e-05/0.3634, allocations: 4 kB / 1.059 GB, free: 1.961 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.35e-06/0.3634, allocations: 0 / 1.059 GB, free: 1.961 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.643e-05/0.3634, allocations: 12 kB / 1.059 GB, free: 1.949 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002671/0.3637, allocations: 35.89 kB / 1.059 GB, free: 1.914 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.215e-06/0.3637, allocations: 4 kB / 1.059 GB, free: 1.91 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001933/0.3639, allocations: 27.86 kB / 1.059 GB, free: 1.883 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.371e-05/0.3639, allocations: 0 / 1.059 GB, free: 1.883 MB / 0.8106 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.97e-05/0.364, allocations: 121.8 kB / 1.059 GB, free: 1.754 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.558e-05/0.3641, allocations: 15.84 kB / 1.059 GB, free: 1.738 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007042/0.3648, allocations: 202.2 kB / 1.059 GB, free: 1.535 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.036e-06/0.3648, allocations: 0 / 1.059 GB, free: 1.535 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.592e-06/0.3648, allocations: 4 kB / 1.059 GB, free: 1.531 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.841e-06/0.3648, allocations: 7.922 kB / 1.059 GB, free: 1.523 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002434/0.3651, allocations: 234.1 kB / 1.059 GB, free: 1.246 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.3651, allocations: 0 / 1.059 GB, free: 1.246 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002331/0.3653, allocations: 31.95 kB / 1.059 GB, free: 1.215 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.104e-06/0.3653, allocations: 0 / 1.059 GB, free: 1.215 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.594e-05/0.3653, allocations: 15.92 kB / 1.059 GB, free: 1.199 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.213e-06/0.3654, allocations: 0 / 1.059 GB, free: 1.199 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.3654, allocations: 0 / 1.059 GB, free: 1.199 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006661/0.366, allocations: 283.5 kB / 1.06 GB, free: 0.9062 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.152e-05/0.3661, allocations: 81.02 kB / 1.06 GB, free: 0.8086 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.646e-05/0.3661, allocations: 11.94 kB / 1.06 GB, free: 0.7969 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003116/0.3664, allocations: 31.95 kB / 1.06 GB, free: 0.7656 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.551e-05/0.3665, allocations: 11.98 kB / 1.06 GB, free: 0.7539 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.995e-05/0.3665, allocations: 3.984 kB / 1.06 GB, free: 0.75 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 6.271e-05/0.3666, allocations: 112.7 kB / 1.06 GB, free: 0.6406 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3666, allocations: 0 / 1.06 GB, free: 0.6406 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002637/0.3669, allocations: 23.91 kB / 1.06 GB, free: 0.6172 MB / 0.8106 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.0001346/0.367, allocations: 95.25 kB / 1.06 GB, free: 0.5156 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0006639/0.3677, allocations: 167.8 kB / 1.06 GB, free: 360 kB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 3.587e-06/0.3677, allocations: 0 / 1.06 GB, free: 360 kB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0003105/0.368, allocations: 87.97 kB / 1.06 GB, free: 272 kB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003953/0.3684, allocations: 8 kB / 1.06 GB, free: 264 kB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006701/0.3691, allocations: 301.1 kB / 1.06 GB, free: 15.93 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000234/0.3693, allocations: 0.6965 MB / 1.061 GB, free: 15.21 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001083/0.3694, allocations: 19.97 kB / 1.061 GB, free: 15.19 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.284e-05/0.3695, allocations: 15.44 kB / 1.061 GB, free: 15.18 MB / 0.8262 GB Notification: Performance of SimCode: time 3.41e-07/0.3695, allocations: 4 kB / 1.061 GB, free: 15.17 MB / 0.8262 GB Notification: Performance of Templates: time 0.003879/0.3734, allocations: 1.374 MB / 1.062 GB, free: 13.82 MB / 0.8262 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