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.001463/0.001463, allocations: 109.4 kB / 16.41 MB, free: 6.496 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.001763/0.001763, allocations: 185.5 kB / 17.34 MB, free: 5.762 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.363/1.363, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.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.26/2.26, allocations: 390.3 MB / 0.6655 GB, free: 0.6211 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001401/0.001402, allocations: 63.91 kB / 0.9515 GB, free: 7.637 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.023/1.024, allocations: 140.4 MB / 1.089 GB, free: 5.52 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothBlocks): time 0.003236/1.028, allocations: 1.766 MB / 1.09 GB, free: 4.285 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001189/1.029, allocations: 0.6614 MB / 1.091 GB, free: 3.824 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.911e-05/1.029, allocations: 6.094 kB / 1.091 GB, free: 3.82 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.927e-05/1.029, allocations: 13.92 kB / 1.091 GB, free: 3.809 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 7.161e-05/1.029, allocations: 15.38 kB / 1.091 GB, free: 3.797 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.000598/1.03, allocations: 175.7 kB / 1.091 GB, free: 3.707 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001996/1.03, allocations: 119.2 kB / 1.091 GB, free: 3.66 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001748/1.03, allocations: 56.06 kB / 1.091 GB, free: 3.629 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001402/1.03, allocations: 58 kB / 1.091 GB, free: 3.605 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001087/1.03, allocations: 54.31 kB / 1.091 GB, free: 3.574 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.319e-05/1.03, allocations: 10.5 kB / 1.091 GB, free: 3.574 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001356/1.03, allocations: 45.62 kB / 1.092 GB, free: 3.566 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 4.163e-05/1.03, allocations: 32.61 kB / 1.092 GB, free: 3.547 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 6.671e-05/1.03, allocations: 51.16 kB / 1.092 GB, free: 3.516 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002545/1.031, allocations: 151.1 kB / 1.092 GB, free: 3.453 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.062e-06/1.031, allocations: 1.297 kB / 1.092 GB, free: 3.453 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.214e-06/1.031, allocations: 0 / 1.092 GB, free: 3.453 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.242e-06/1.031, allocations: 0 / 1.092 GB, free: 3.453 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.0006138/1.031, allocations: 439.6 kB / 1.092 GB, free: 3.047 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.155e-05/1.031, allocations: 9.719 kB / 1.092 GB, free: 3.047 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009284/1.032, allocations: 113 kB / 1.092 GB, free: 3.035 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001064/1.032, allocations: 180.2 kB / 1.092 GB, free: 2.828 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.69e-05/1.033, allocations: 77.28 kB / 1.093 GB, free: 2.75 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.921e-05/1.033, allocations: 9.375 kB / 1.093 GB, free: 2.746 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005734/1.033, allocations: 166.2 kB / 1.093 GB, free: 2.684 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.027e-06/1.033, allocations: 0 / 1.093 GB, free: 2.684 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.643e-05/1.033, allocations: 10.14 kB / 1.093 GB, free: 2.676 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.702e-06/1.033, allocations: 1.531 kB / 1.093 GB, free: 2.676 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006722/1.034, allocations: 154.7 kB / 1.093 GB, free: 2.648 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001167/1.035, allocations: 474.7 kB / 1.093 GB, free: 2.305 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00111/1.036, allocations: 220.7 kB / 1.094 GB, free: 2.242 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003264/1.037, allocations: 87.8 kB / 1.094 GB, free: 2.211 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 3.348e-05/1.037, allocations: 5.844 kB / 1.094 GB, free: 2.207 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.435e-05/1.037, allocations: 41.02 kB / 1.094 GB, free: 2.16 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=6): time 1.202e-06/1.037, allocations: 0 / 1.094 GB, free: 2.16 MB / 0.8575 GB Notification: Performance of matching and sorting (n=6): time 0.001094/1.038, allocations: 262.1 kB / 1.094 GB, free: 2.074 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.78e-05/1.038, allocations: 52.34 kB / 1.094 GB, free: 2.012 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001267/1.038, allocations: 138 kB / 1.094 GB, free: 1.902 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.465e-05/1.038, allocations: 30.48 kB / 1.094 GB, free: 1.867 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 6.135e-05/1.038, allocations: 109.7 kB / 1.094 GB, free: 1.762 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.481e-05/1.038, allocations: 16.25 kB / 1.094 GB, free: 1.75 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.13e-05/1.038, allocations: 24.05 kB / 1.094 GB, free: 1.73 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 6.848e-05/1.038, allocations: 320.3 kB / 1.095 GB, free: 1.414 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003321/1.039, allocations: 82.2 kB / 1.095 GB, free: 1.391 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003325/1.039, allocations: 91.61 kB / 1.095 GB, free: 1.352 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006226/1.04, allocations: 161.5 kB / 1.095 GB, free: 1.293 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/1.04, allocations: 0 / 1.095 GB, free: 1.293 MB / 0.8575 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.000726/1.04, allocations: 202.4 kB / 1.095 GB, free: 1.219 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.014e-05/1.04, allocations: 5.5 kB / 1.095 GB, free: 1.219 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.254e-06/1.04, allocations: 0.6875 kB / 1.095 GB, free: 1.219 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.132e-05/1.04, allocations: 10.12 kB / 1.095 GB, free: 1.211 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002875/1.041, allocations: 34.89 kB / 1.095 GB, free: 1.211 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.035e-06/1.041, allocations: 5.062 kB / 1.095 GB, free: 1.207 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002/1.041, allocations: 33.22 kB / 1.095 GB, free: 1.195 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.652e-05/1.041, allocations: 4.906 kB / 1.095 GB, free: 1.195 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 8.818e-05/1.041, allocations: 114.5 kB / 1.095 GB, free: 1.078 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.65e-05/1.041, allocations: 9.297 kB / 1.095 GB, free: 1.074 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007717/1.042, allocations: 210.8 kB / 1.095 GB, free: 0.9922 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.63e-06/1.042, allocations: 1.359 kB / 1.095 GB, free: 0.9922 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.53e-06/1.042, allocations: 0.9375 kB / 1.095 GB, free: 0.9922 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.721e-06/1.042, allocations: 0.6562 kB / 1.095 GB, free: 0.9922 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002584/1.042, allocations: 233.2 kB / 1.096 GB, free: 0.7734 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/1.042, allocations: 4.625 kB / 1.096 GB, free: 0.7695 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002402/1.042, allocations: 35.81 kB / 1.096 GB, free: 0.7656 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.128e-06/1.042, allocations: 8.531 kB / 1.096 GB, free: 0.7578 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.652e-05/1.042, allocations: 6.547 kB / 1.096 GB, free: 0.7539 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.885e-06/1.042, allocations: 0.625 kB / 1.096 GB, free: 0.7539 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.317e-06/1.042, allocations: 8.578 kB / 1.096 GB, free: 0.7461 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007402/1.043, allocations: 286.1 kB / 1.096 GB, free: 0.5742 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.374e-05/1.043, allocations: 84.05 kB / 1.096 GB, free: 488 kB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.864e-05/1.043, allocations: 9.828 kB / 1.096 GB, free: 480 kB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003211/1.044, allocations: 28.98 kB / 1.096 GB, free: 480 kB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.089e-05/1.044, allocations: 8.594 kB / 1.096 GB, free: 476 kB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.405e-05/1.044, allocations: 7.094 kB / 1.096 GB, free: 476 kB / 0.8575 GB Notification: Performance of sorting global known variables: time 8.109e-05/1.044, allocations: 106.3 kB / 1.096 GB, free: 392 kB / 0.8575 GB Notification: Performance of sort global known variables: time 1.3e-07/1.044, allocations: 0.9688 kB / 1.096 GB, free: 392 kB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002734/1.044, allocations: 31.34 kB / 1.096 GB, free: 380 kB / 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.0001359/1.044, allocations: 97.8 kB / 1.096 GB, free: 292 kB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0007354/1.045, allocations: 168.4 kB / 1.097 GB, free: 252 kB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/1.045, allocations: 0 / 1.097 GB, free: 252 kB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0003408/1.045, allocations: 80.81 kB / 1.097 GB, free: 236 kB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003602/1.046, allocations: 12.88 kB / 1.097 GB, free: 228 kB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007409/1.046, allocations: 284.2 kB / 1.097 GB, free: 12 kB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003078/1.047, allocations: 0.6987 MB / 1.098 GB, free: 15.32 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.026e-05/1.047, allocations: 16.64 kB / 1.098 GB, free: 15.31 MB / 0.8731 GB Notification: Performance of SimCode: time 2.91e-07/1.047, allocations: 4 kB / 1.098 GB, free: 15.3 MB / 0.8731 GB Notification: Performance of Templates: time 0.004214/1.051, allocations: 1.608 MB / 1.099 GB, free: 15.17 MB / 0.8731 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