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.00122/0.00122, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001187/0.001187, allocations: 189.4 kB / 16.25 MB, free: 6.637 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.406/1.406, allocations: 222.9 MB / 239.9 MB, free: 4.52 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.544/2.544, allocations: 390.2 MB / 0.6644 GB, free: 0.5273 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.002298/0.002298, allocations: 75.84 kB / 0.812 GB, free: 14.75 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8479/0.8502, allocations: 140.3 MB / 0.9491 GB, free: 9.078 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothBlocks): time 0.003576/0.8539, allocations: 1.834 MB / 0.9509 GB, free: 7.637 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001343/0.8552, allocations: 0.6489 MB / 0.9515 GB, free: 7.121 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001342/0.8554, allocations: 1.375 kB / 0.9515 GB, free: 7.121 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 6.021e-05/0.8555, allocations: 7.922 kB / 0.9515 GB, free: 7.113 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 9.831e-05/0.8556, allocations: 14.61 kB / 0.9515 GB, free: 7.102 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006793/0.8563, allocations: 154 kB / 0.9517 GB, free: 7.008 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.000222/0.8565, allocations: 125.8 kB / 0.9518 GB, free: 6.938 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001868/0.8567, allocations: 50.7 kB / 0.9518 GB, free: 6.906 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001702/0.8569, allocations: 65.95 kB / 0.9519 GB, free: 6.867 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001097/0.857, allocations: 47.39 kB / 0.952 GB, free: 6.832 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 4.268e-05/0.857, allocations: 11 kB / 0.952 GB, free: 6.832 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001648/0.8572, allocations: 48.03 kB / 0.952 GB, free: 6.812 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 4.355e-05/0.8573, allocations: 33.17 kB / 0.952 GB, free: 6.785 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 7.145e-05/0.8573, allocations: 53.53 kB / 0.9521 GB, free: 6.746 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002615/0.8576, allocations: 141.6 kB / 0.9522 GB, free: 6.648 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.8576, allocations: 3.938 kB / 0.9522 GB, free: 6.645 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.753e-06/0.8576, allocations: 5.062 kB / 0.9522 GB, free: 6.641 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.212e-05/0.8577, allocations: 0 / 0.9522 GB, free: 6.641 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.0006526/0.8583, allocations: 438.2 kB / 0.9527 GB, free: 6.211 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.534e-05/0.8584, allocations: 9.812 kB / 0.9527 GB, free: 6.211 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008671/0.8592, allocations: 117 kB / 0.9528 GB, free: 6.152 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001287/0.8594, allocations: 177.3 kB / 0.9529 GB, free: 5.945 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001012/0.8595, allocations: 66.83 kB / 0.953 GB, free: 5.875 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.862e-05/0.8595, allocations: 9.656 kB / 0.953 GB, free: 5.871 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005419/0.8601, allocations: 174.3 kB / 0.9532 GB, free: 5.762 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.012e-05/0.8601, allocations: 7.938 kB / 0.9532 GB, free: 5.754 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.497e-05/0.8601, allocations: 5.25 kB / 0.9532 GB, free: 5.75 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.713e-06/0.8601, allocations: 1.25 kB / 0.9532 GB, free: 5.75 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005763/0.8607, allocations: 161 kB / 0.9534 GB, free: 5.672 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001083/0.8618, allocations: 485.4 kB / 0.9538 GB, free: 5.234 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009963/0.8628, allocations: 212.4 kB / 0.954 GB, free: 5.117 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002745/0.8631, allocations: 82.59 kB / 0.9541 GB, free: 5.07 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 3.469e-05/0.8631, allocations: 6.328 kB / 0.9541 GB, free: 5.066 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.648e-05/0.8632, allocations: 35.31 kB / 0.9541 GB, free: 5.023 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=6): time 1.152e-06/0.8632, allocations: 0 / 0.9541 GB, free: 5.023 MB / 0.7169 GB Notification: Performance of matching and sorting (n=6): time 0.0009962/0.8642, allocations: 263.5 kB / 0.9544 GB, free: 4.875 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.469e-05/0.8642, allocations: 52.47 kB / 0.9544 GB, free: 4.812 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001222/0.8644, allocations: 140.9 kB / 0.9546 GB, free: 4.691 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.45e-05/0.8644, allocations: 30.7 kB / 0.9546 GB, free: 4.656 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.749e-05/0.8645, allocations: 109.1 kB / 0.9547 GB, free: 4.547 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.387e-05/0.8645, allocations: 14.44 kB / 0.9547 GB, free: 4.535 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.592e-05/0.8646, allocations: 28.73 kB / 0.9547 GB, free: 4.508 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.443e-05/0.8646, allocations: 325.5 kB / 0.9551 GB, free: 4.184 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002863/0.8649, allocations: 68.61 kB / 0.9551 GB, free: 4.152 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002833/0.8652, allocations: 103 kB / 0.9552 GB, free: 4.082 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005298/0.8658, allocations: 159.9 kB / 0.9554 GB, free: 3.988 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/0.8658, allocations: 0 / 0.9554 GB, free: 3.988 MB / 0.7169 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.000644/0.8664, allocations: 201.4 kB / 0.9556 GB, free: 3.871 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.965e-05/0.8664, allocations: 5.562 kB / 0.9556 GB, free: 3.871 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.412e-06/0.8665, allocations: 1.156 kB / 0.9556 GB, free: 3.871 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.654e-05/0.8665, allocations: 5.156 kB / 0.9556 GB, free: 3.867 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002689/0.8667, allocations: 42.3 kB / 0.9556 GB, free: 3.848 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.977e-06/0.8668, allocations: 1.5 kB / 0.9556 GB, free: 3.848 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001898/0.867, allocations: 28.83 kB / 0.9556 GB, free: 3.832 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.656e-05/0.867, allocations: 2.625 kB / 0.9556 GB, free: 3.832 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 9.125e-05/0.8671, allocations: 118.3 kB / 0.9558 GB, free: 3.711 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.774e-05/0.8671, allocations: 12.31 kB / 0.9558 GB, free: 3.703 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000679/0.8678, allocations: 211.2 kB / 0.956 GB, free: 3.57 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.26e-06/0.8678, allocations: 2.656 kB / 0.956 GB, free: 3.57 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.593e-06/0.8678, allocations: 0 / 0.956 GB, free: 3.57 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.115e-06/0.8679, allocations: 0 / 0.956 GB, free: 3.57 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002227/0.8681, allocations: 245.1 kB / 0.9562 GB, free: 3.309 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.8681, allocations: 0 / 0.9562 GB, free: 3.309 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002103/0.8683, allocations: 33.3 kB / 0.9562 GB, free: 3.297 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.236e-06/0.8683, allocations: 0 / 0.9562 GB, free: 3.297 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.592e-05/0.8683, allocations: 11.92 kB / 0.9563 GB, free: 3.285 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.054e-06/0.8684, allocations: 3.844 kB / 0.9563 GB, free: 3.285 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.8684, allocations: 3.938 kB / 0.9563 GB, free: 3.281 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006356/0.869, allocations: 283.8 kB / 0.9565 GB, free: 3.066 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.727e-05/0.869, allocations: 84.36 kB / 0.9566 GB, free: 2.969 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.149e-05/0.8691, allocations: 3.938 kB / 0.9566 GB, free: 2.965 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002954/0.8694, allocations: 33.12 kB / 0.9566 GB, free: 2.949 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.553e-05/0.8694, allocations: 7.094 kB / 0.9567 GB, free: 2.945 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.103e-05/0.8695, allocations: 11.02 kB / 0.9567 GB, free: 2.938 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 6.263e-05/0.8695, allocations: 108.3 kB / 0.9568 GB, free: 2.848 MB / 0.7169 GB Notification: Performance of sort global known variables: time 9.82e-07/0.8695, allocations: 0 / 0.9568 GB, free: 2.848 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002833/0.8698, allocations: 31.38 kB / 0.9568 GB, free: 2.836 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.0001406/0.87, allocations: 97.28 kB / 0.9569 GB, free: 2.746 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0006423/0.8706, allocations: 169 kB / 0.9571 GB, free: 2.664 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.8706, allocations: 4.125 kB / 0.9571 GB, free: 2.66 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0002815/0.8709, allocations: 82.53 kB / 0.9571 GB, free: 2.621 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003732/0.8713, allocations: 8.125 kB / 0.9571 GB, free: 2.617 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006372/0.872, allocations: 282.6 kB / 0.9574 GB, free: 2.391 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001437/0.8721, allocations: 0.7114 MB / 0.9581 GB, free: 1.672 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.0001033/0.8722, allocations: 14.23 kB / 0.9581 GB, free: 1.668 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.777e-05/0.8723, allocations: 11.56 kB / 0.9581 GB, free: 1.66 MB / 0.7169 GB Notification: Performance of SimCode: time 4.31e-07/0.8723, allocations: 4 kB / 0.9581 GB, free: 1.656 MB / 0.7169 GB Notification: Performance of Templates: time 0.004278/0.8766, allocations: 1.428 MB / 0.9595 GB, free: 0.9258 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