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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.0008236/0.0008236, allocations: 92.16 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009654/0.0009654, allocations: 183.1 kB / 16.92 MB, free: 6.922 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.431/1.431, allocations: 223.3 MB / 241 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.48/2.48, allocations: 390.9 MB / 0.667 GB, free: 2.391 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003443/0.0003444, allocations: 12 kB / 0.8166 GB, free: 13.27 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6885/0.6889, allocations: 142.4 MB / 0.9557 GB, free: 7.863 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothBlocks): time 0.001801/0.6907, allocations: 1.485 MB / 0.9571 GB, free: 6.688 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0009886/0.6917, allocations: 0.6479 MB / 0.9578 GB, free: 6.176 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.501e-05/0.6918, allocations: 1.344 kB / 0.9578 GB, free: 6.176 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.379e-05/0.6918, allocations: 13.23 kB / 0.9578 GB, free: 6.164 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.216e-05/0.6919, allocations: 8.938 kB / 0.9578 GB, free: 6.156 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005284/0.6924, allocations: 159.2 kB / 0.958 GB, free: 6.055 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001434/0.6926, allocations: 118.6 kB / 0.9581 GB, free: 5.992 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001348/0.6927, allocations: 43.44 kB / 0.9581 GB, free: 5.965 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001166/0.6929, allocations: 54.7 kB / 0.9582 GB, free: 5.934 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.573e-05/0.6929, allocations: 35.12 kB / 0.9582 GB, free: 5.91 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.199e-05/0.693, allocations: 4.562 kB / 0.9582 GB, free: 5.91 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001093/0.6931, allocations: 41.23 kB / 0.9582 GB, free: 5.891 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.892e-05/0.6931, allocations: 26.75 kB / 0.9583 GB, free: 5.871 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.571e-05/0.6932, allocations: 73.05 kB / 0.9583 GB, free: 5.805 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.000131/0.6933, allocations: 90.39 kB / 0.9584 GB, free: 5.746 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.6933, allocations: 1.438 kB / 0.9584 GB, free: 5.746 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.054e-06/0.6933, allocations: 0 / 0.9584 GB, free: 5.746 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.018e-06/0.6934, allocations: 0 / 0.9584 GB, free: 5.746 MB / 0.7169 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.0004943/0.6939, allocations: 413.9 kB / 0.9588 GB, free: 5.336 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.982e-05/0.6939, allocations: 13.22 kB / 0.9588 GB, free: 5.332 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008953/0.6948, allocations: 148.5 kB / 0.959 GB, free: 5.27 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.481e-05/0.6949, allocations: 192.6 kB / 0.9592 GB, free: 5.051 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.549e-05/0.695, allocations: 67.12 kB / 0.9592 GB, free: 4.98 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.13e-05/0.695, allocations: 7.562 kB / 0.9592 GB, free: 4.98 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005338/0.6956, allocations: 197.2 kB / 0.9594 GB, free: 4.863 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.335e-06/0.6956, allocations: 0 / 0.9594 GB, free: 4.863 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.263e-05/0.6956, allocations: 1.375 kB / 0.9594 GB, free: 4.863 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.883e-06/0.6956, allocations: 2.75 kB / 0.9594 GB, free: 4.863 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006433/0.6963, allocations: 199.1 kB / 0.9596 GB, free: 4.777 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001041/0.6973, allocations: 0.4911 MB / 0.9601 GB, free: 4.344 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001122/0.6985, allocations: 269.6 kB / 0.9603 GB, free: 4.215 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003396/0.6988, allocations: 98.69 kB / 0.9604 GB, free: 4.168 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 3.225e-05/0.6989, allocations: 8.984 kB / 0.9604 GB, free: 4.16 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.227e-05/0.6989, allocations: 32.84 kB / 0.9605 GB, free: 4.121 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=6): time 1.613e-06/0.6989, allocations: 0 / 0.9605 GB, free: 4.121 MB / 0.7169 GB Notification: Performance of matching and sorting (n=6): time 0.001104/0.7, allocations: 318.6 kB / 0.9608 GB, free: 3.965 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.703e-05/0.7, allocations: 56.78 kB / 0.9608 GB, free: 3.898 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.126e-05/0.7001, allocations: 134.9 kB / 0.961 GB, free: 3.781 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.196e-05/0.7002, allocations: 27.08 kB / 0.961 GB, free: 3.75 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.464e-05/0.7002, allocations: 113.6 kB / 0.9611 GB, free: 3.637 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.18e-05/0.7002, allocations: 18.55 kB / 0.9611 GB, free: 3.621 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.811e-05/0.7003, allocations: 11.09 kB / 0.9611 GB, free: 3.605 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.129e-05/0.7003, allocations: 321.6 kB / 0.9614 GB, free: 3.285 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003226/0.7007, allocations: 93.55 kB / 0.9615 GB, free: 3.246 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003373/0.701, allocations: 113.2 kB / 0.9616 GB, free: 3.18 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006529/0.7017, allocations: 203.7 kB / 0.9618 GB, free: 3.074 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.7017, allocations: 0 / 0.9618 GB, free: 3.074 MB / 0.7169 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0007304/0.7024, allocations: 237.8 kB / 0.9621 GB, free: 2.953 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.979e-05/0.7024, allocations: 6.969 kB / 0.9621 GB, free: 2.953 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.809e-06/0.7024, allocations: 4.938 kB / 0.9621 GB, free: 2.949 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.508e-05/0.7025, allocations: 5.938 kB / 0.9621 GB, free: 2.945 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002763/0.7027, allocations: 45.55 kB / 0.9621 GB, free: 2.93 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.823e-06/0.7028, allocations: 1.031 kB / 0.9621 GB, free: 2.93 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002094/0.703, allocations: 40.78 kB / 0.9622 GB, free: 2.91 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.728e-05/0.703, allocations: 11.33 kB / 0.9622 GB, free: 2.902 MB / 0.7169 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 7.69e-05/0.7031, allocations: 114.6 kB / 0.9623 GB, free: 2.785 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.919e-05/0.7031, allocations: 12.09 kB / 0.9623 GB, free: 2.777 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007617/0.7039, allocations: 242.6 kB / 0.9625 GB, free: 2.645 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.607e-06/0.7039, allocations: 1.156 kB / 0.9625 GB, free: 2.645 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.7039, allocations: 4 kB / 0.9625 GB, free: 2.641 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.286e-06/0.7039, allocations: 0 / 0.9625 GB, free: 2.641 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002094/0.7041, allocations: 242.4 kB / 0.9627 GB, free: 2.383 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.7042, allocations: 1.375 kB / 0.9628 GB, free: 2.383 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002388/0.7044, allocations: 43.17 kB / 0.9628 GB, free: 2.367 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.986e-06/0.7044, allocations: 0 / 0.9628 GB, free: 2.367 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.266e-05/0.7044, allocations: 9.312 kB / 0.9628 GB, free: 2.359 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.294e-06/0.7044, allocations: 3.984 kB / 0.9628 GB, free: 2.355 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.7044, allocations: 1.094 kB / 0.9628 GB, free: 2.355 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007178/0.7052, allocations: 317.8 kB / 0.9631 GB, free: 2.141 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.67e-05/0.7052, allocations: 88.03 kB / 0.9632 GB, free: 2.039 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.331e-05/0.7052, allocations: 3.938 kB / 0.9632 GB, free: 2.035 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003297/0.7056, allocations: 40.83 kB / 0.9632 GB, free: 2.023 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.478e-05/0.7056, allocations: 6.125 kB / 0.9632 GB, free: 2.02 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.866e-05/0.7056, allocations: 11.81 kB / 0.9633 GB, free: 2.012 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 5.05e-05/0.7057, allocations: 107.8 kB / 0.9634 GB, free: 1.922 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7057, allocations: 0.75 kB / 0.9634 GB, free: 1.922 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002678/0.706, allocations: 31.19 kB / 0.9634 GB, free: 1.91 MB / 0.7169 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.0001313/0.7061, allocations: 100.1 kB / 0.9635 GB, free: 1.816 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0007173/0.7068, allocations: 200.1 kB / 0.9637 GB, free: 1.734 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.7068, allocations: 0 / 0.9637 GB, free: 1.734 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0003415/0.7072, allocations: 102.6 kB / 0.9638 GB, free: 1.691 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003204/0.7075, allocations: 11.67 kB / 0.9638 GB, free: 1.684 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006422/0.7082, allocations: 332.1 kB / 0.9641 GB, free: 1.418 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000124/0.7083, allocations: 0.7028 MB / 0.9648 GB, free: 0.707 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.371e-05/0.7084, allocations: 20.27 kB / 0.9648 GB, free: 0.6914 MB / 0.7169 GB Notification: Performance of SimCode: time 2.11e-07/0.7084, allocations: 0 / 0.9648 GB, free: 0.6914 MB / 0.7169 GB Notification: Performance of Templates: time 0.003135/0.7115, allocations: 1.581 MB / 0.9663 GB, free: 15.88 MB / 0.7325 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches