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.00156/0.001559, 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.002193/0.002194, allocations: 195.2 kB / 16.14 MB, free: 6.691 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.518/1.518, allocations: 222.9 MB / 239.8 MB, free: 4.617 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.519/2.519, allocations: 390.2 MB / 0.6642 GB, free: 0.6172 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001224/0.001225, allocations: 67.84 kB / 0.8119 GB, free: 14.87 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8669/0.8681, allocations: 140.3 MB / 0.9489 GB, free: 9.125 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothBlocks): time 0.002848/0.871, allocations: 1.826 MB / 0.9507 GB, free: 7.691 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001037/0.8721, allocations: 0.6616 MB / 0.9513 GB, free: 7.168 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.015e-05/0.8722, allocations: 1.406 kB / 0.9513 GB, free: 7.168 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 4.315e-05/0.8722, allocations: 7.922 kB / 0.9513 GB, free: 7.16 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.703e-05/0.8723, allocations: 14.55 kB / 0.9514 GB, free: 7.148 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004919/0.8728, allocations: 155 kB / 0.9515 GB, free: 7.051 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001344/0.8729, allocations: 113.6 kB / 0.9516 GB, free: 6.992 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001446/0.8731, allocations: 51.86 kB / 0.9517 GB, free: 6.957 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001165/0.8732, allocations: 54.47 kB / 0.9517 GB, free: 6.93 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 8.687e-05/0.8733, allocations: 47.44 kB / 0.9518 GB, free: 6.895 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.569e-05/0.8733, allocations: 7.344 kB / 0.9518 GB, free: 6.895 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001087/0.8734, allocations: 44.09 kB / 0.9518 GB, free: 6.875 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.264e-05/0.8735, allocations: 35.05 kB / 0.9518 GB, free: 6.848 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.55e-05/0.8735, allocations: 44.52 kB / 0.9519 GB, free: 6.816 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001804/0.8737, allocations: 140.3 kB / 0.952 GB, free: 6.719 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 6.392e-06/0.8737, allocations: 4 kB / 0.952 GB, free: 6.715 MB / 0.7169 GB Notification: Performance of FrontEnd: time 7.41e-07/0.8737, allocations: 1.062 kB / 0.952 GB, free: 6.715 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.198e-06/0.8737, allocations: 0 / 0.952 GB, free: 6.715 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.0005394/0.8743, allocations: 434.2 kB / 0.9524 GB, free: 6.289 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.565e-05/0.8743, allocations: 9.969 kB / 0.9525 GB, free: 6.289 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00084/0.8752, allocations: 112.1 kB / 0.9526 GB, free: 6.234 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001139/0.8753, allocations: 194.4 kB / 0.9527 GB, free: 6.012 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.803e-05/0.8754, allocations: 58.41 kB / 0.9528 GB, free: 5.949 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.627e-05/0.8754, allocations: 9.469 kB / 0.9528 GB, free: 5.945 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005154/0.876, allocations: 171.6 kB / 0.953 GB, free: 5.836 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.739e-06/0.876, allocations: 0 / 0.953 GB, free: 5.836 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.541e-05/0.876, allocations: 5.156 kB / 0.953 GB, free: 5.832 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.122e-05/0.876, allocations: 10.45 kB / 0.953 GB, free: 5.824 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005768/0.8766, allocations: 168.5 kB / 0.9531 GB, free: 5.738 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00106/0.8777, allocations: 481.4 kB / 0.9536 GB, free: 5.305 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009971/0.8787, allocations: 216.3 kB / 0.9538 GB, free: 5.184 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003037/0.879, allocations: 82.77 kB / 0.9539 GB, free: 5.137 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 3.181e-05/0.879, allocations: 5.141 kB / 0.9539 GB, free: 5.133 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.603e-05/0.8791, allocations: 35.81 kB / 0.9539 GB, free: 5.09 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=6): time 1.062e-06/0.8791, allocations: 0 / 0.9539 GB, free: 5.09 MB / 0.7169 GB Notification: Performance of matching and sorting (n=6): time 0.001152/0.8802, allocations: 272 kB / 0.9542 GB, free: 4.934 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.6e-05/0.8803, allocations: 52.84 kB / 0.9542 GB, free: 4.871 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001136/0.8804, allocations: 135.8 kB / 0.9544 GB, free: 4.754 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.954e-05/0.8804, allocations: 25.7 kB / 0.9544 GB, free: 4.723 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.276e-05/0.8805, allocations: 109.8 kB / 0.9545 GB, free: 4.613 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.424e-05/0.8805, allocations: 13.97 kB / 0.9545 GB, free: 4.602 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.549e-05/0.8806, allocations: 32.58 kB / 0.9545 GB, free: 4.57 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.697e-05/0.8807, allocations: 321.7 kB / 0.9549 GB, free: 4.25 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002846/0.8809, allocations: 72.58 kB / 0.9549 GB, free: 4.215 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002979/0.8813, allocations: 99.31 kB / 0.955 GB, free: 4.148 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005211/0.8818, allocations: 163.3 kB / 0.9552 GB, free: 4.051 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.8818, allocations: 0 / 0.9552 GB, free: 4.051 MB / 0.7169 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0005969/0.8824, allocations: 202.4 kB / 0.9554 GB, free: 3.934 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.912e-05/0.8824, allocations: 5.312 kB / 0.9554 GB, free: 3.934 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.915e-06/0.8824, allocations: 1.062 kB / 0.9554 GB, free: 3.934 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.846e-05/0.8825, allocations: 9 kB / 0.9554 GB, free: 3.926 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002628/0.8827, allocations: 38.39 kB / 0.9554 GB, free: 3.91 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.302e-06/0.8827, allocations: 5.219 kB / 0.9554 GB, free: 3.906 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001826/0.8829, allocations: 28.55 kB / 0.9554 GB, free: 3.891 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.466e-05/0.883, allocations: 3.406 kB / 0.9555 GB, free: 3.891 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 8.678e-05/0.8831, allocations: 118.2 kB / 0.9556 GB, free: 3.77 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.258e-05/0.8831, allocations: 7.531 kB / 0.9556 GB, free: 3.766 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007128/0.8838, allocations: 207.4 kB / 0.9558 GB, free: 3.637 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.374e-06/0.8838, allocations: 1.031 kB / 0.9558 GB, free: 3.637 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.119e-06/0.8839, allocations: 1.125 kB / 0.9558 GB, free: 3.637 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.809e-06/0.8839, allocations: 3.984 kB / 0.9558 GB, free: 3.633 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000236/0.8841, allocations: 238.6 kB / 0.956 GB, free: 3.379 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.8841, allocations: 4 kB / 0.956 GB, free: 3.375 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002313/0.8844, allocations: 35.17 kB / 0.956 GB, free: 3.359 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.625e-06/0.8844, allocations: 1.219 kB / 0.956 GB, free: 3.359 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.662e-05/0.8844, allocations: 8.984 kB / 0.9561 GB, free: 3.352 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.8844, allocations: 0 / 0.9561 GB, free: 3.352 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.903e-06/0.8844, allocations: 1.094 kB / 0.9561 GB, free: 3.352 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000637/0.885, allocations: 290.7 kB / 0.9563 GB, free: 3.133 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.949e-05/0.8851, allocations: 87.36 kB / 0.9564 GB, free: 3.031 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.463e-05/0.8851, allocations: 3.938 kB / 0.9564 GB, free: 3.027 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002941/0.8854, allocations: 28.73 kB / 0.9564 GB, free: 3.016 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.758e-05/0.8855, allocations: 11.89 kB / 0.9565 GB, free: 3.008 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.004e-05/0.8855, allocations: 10.3 kB / 0.9565 GB, free: 3 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 5.617e-05/0.8856, allocations: 106.5 kB / 0.9566 GB, free: 2.914 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8856, allocations: 3.938 kB / 0.9566 GB, free: 2.91 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.000266/0.8858, allocations: 24.56 kB / 0.9566 GB, free: 2.906 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.0001195/0.886, allocations: 100.5 kB / 0.9567 GB, free: 2.812 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0006319/0.8866, allocations: 167.1 kB / 0.9568 GB, free: 2.73 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.8866, allocations: 1.25 kB / 0.9568 GB, free: 2.73 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0002891/0.8869, allocations: 86.81 kB / 0.9569 GB, free: 2.688 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003935/0.8873, allocations: 8.188 kB / 0.9569 GB, free: 2.684 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006737/0.888, allocations: 287.6 kB / 0.9572 GB, free: 2.453 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00018/0.8882, allocations: 0.6992 MB / 0.9579 GB, free: 1.746 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.0001046/0.8883, allocations: 22.97 kB / 0.9579 GB, free: 1.734 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.825e-05/0.8884, allocations: 11.56 kB / 0.9579 GB, free: 1.727 MB / 0.7169 GB Notification: Performance of SimCode: time 2.21e-07/0.8884, allocations: 0 / 0.9579 GB, free: 1.727 MB / 0.7169 GB Notification: Performance of Templates: time 0.003831/0.8922, allocations: 1.377 MB / 0.9593 GB, free: 1.023 MB / 0.7169 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