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.001118/0.001118, allocations: 106.6 kB / 16.41 MB, free: 6.469 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.7 kB / 17.34 MB, free: 5.715 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.391/1.391, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.524/2.524, allocations: 461.9 MB / 0.7355 GB, free: 11.05 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.00146/0.00146, allocations: 60.12 kB / 1.055 GB, free: 7.637 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9624/0.9639, allocations: 157.4 MB / 1.208 GB, free: 13.55 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothBlocks): time 0.003714/0.9677, allocations: 1.776 MB / 1.21 GB, free: 11.77 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001441/0.9692, allocations: 0.6545 MB / 1.211 GB, free: 11.11 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000127/0.9693, allocations: 4 kB / 1.211 GB, free: 11.11 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 6.503e-05/0.9694, allocations: 11.86 kB / 1.211 GB, free: 11.1 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0001099/0.9695, allocations: 15.8 kB / 1.211 GB, free: 11.08 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006998/0.9703, allocations: 171 kB / 1.211 GB, free: 10.92 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0002375/0.9705, allocations: 123.6 kB / 1.211 GB, free: 10.8 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001748/0.9707, allocations: 53.03 kB / 1.211 GB, free: 10.75 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001702/0.9709, allocations: 59.83 kB / 1.211 GB, free: 10.69 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001123/0.971, allocations: 47.77 kB / 1.211 GB, free: 10.64 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 3.444e-05/0.971, allocations: 12 kB / 1.211 GB, free: 10.63 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001357/0.9712, allocations: 47.97 kB / 1.211 GB, free: 10.58 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 4.66e-05/0.9712, allocations: 35.89 kB / 1.211 GB, free: 10.55 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 7.094e-05/0.9713, allocations: 47.73 kB / 1.211 GB, free: 10.5 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0002642/0.9716, allocations: 151.3 kB / 1.212 GB, free: 10.36 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.479e-06/0.9716, allocations: 0 / 1.212 GB, free: 10.36 MB / 0.9356 GB Notification: Performance of FrontEnd: time 3.056e-06/0.9716, allocations: 0 / 1.212 GB, free: 10.36 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 9.047e-06/0.9716, allocations: 3.938 kB / 1.212 GB, free: 10.35 MB / 0.9356 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.000737/0.9723, allocations: 436.8 kB / 1.212 GB, free: 9.879 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.13e-05/0.9724, allocations: 16.03 kB / 1.212 GB, free: 9.863 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008909/0.9733, allocations: 108.7 kB / 1.212 GB, free: 9.758 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001553/0.9735, allocations: 181.7 kB / 1.212 GB, free: 9.543 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001125/0.9736, allocations: 63.97 kB / 1.212 GB, free: 9.469 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.728e-05/0.9736, allocations: 12.38 kB / 1.212 GB, free: 9.457 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005493/0.9742, allocations: 169.7 kB / 1.212 GB, free: 9.285 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.153e-05/0.9742, allocations: 7.875 kB / 1.212 GB, free: 9.277 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.885e-05/0.9742, allocations: 4 kB / 1.212 GB, free: 9.273 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.817e-06/0.9742, allocations: 4 kB / 1.213 GB, free: 9.27 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006018/0.9748, allocations: 159.8 kB / 1.213 GB, free: 9.113 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001172/0.976, allocations: 485.9 kB / 1.213 GB, free: 8.59 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009541/0.977, allocations: 222.3 kB / 1.213 GB, free: 8.363 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002799/0.9773, allocations: 80.89 kB / 1.213 GB, free: 8.281 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 3.348e-05/0.9773, allocations: 4 kB / 1.213 GB, free: 8.277 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.644e-05/0.9774, allocations: 30.56 kB / 1.213 GB, free: 8.238 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=6): time 1.322e-06/0.9774, allocations: 0 / 1.213 GB, free: 8.238 MB / 0.9356 GB Notification: Performance of matching and sorting (n=6): time 0.001037/0.9784, allocations: 269.6 kB / 1.214 GB, free: 7.969 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.478e-05/0.9785, allocations: 51.41 kB / 1.214 GB, free: 7.906 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001228/0.9786, allocations: 136.2 kB / 1.214 GB, free: 7.766 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 3.202e-05/0.9786, allocations: 33.7 kB / 1.214 GB, free: 7.727 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 7.888e-05/0.9787, allocations: 112.1 kB / 1.214 GB, free: 7.613 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 2.995e-05/0.9788, allocations: 15.72 kB / 1.214 GB, free: 7.598 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.442e-05/0.9788, allocations: 25.7 kB / 1.214 GB, free: 7.566 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001283/0.979, allocations: 318.8 kB / 1.214 GB, free: 7.246 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002894/0.9793, allocations: 79.98 kB / 1.214 GB, free: 7.168 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002825/0.9796, allocations: 98.48 kB / 1.215 GB, free: 7.062 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005447/0.9801, allocations: 162.4 kB / 1.215 GB, free: 6.895 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.966e-06/0.9801, allocations: 0 / 1.215 GB, free: 6.895 MB / 0.9356 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0006229/0.9808, allocations: 201.4 kB / 1.215 GB, free: 6.691 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 2.008e-05/0.9808, allocations: 8 kB / 1.215 GB, free: 6.684 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.352e-06/0.9808, allocations: 0 / 1.215 GB, free: 6.684 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.81e-05/0.9808, allocations: 3.938 kB / 1.215 GB, free: 6.68 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002601/0.9811, allocations: 35.95 kB / 1.215 GB, free: 6.645 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.738e-06/0.9811, allocations: 3.938 kB / 1.215 GB, free: 6.641 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001884/0.9813, allocations: 31.89 kB / 1.215 GB, free: 6.609 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.895e-05/0.9813, allocations: 8 kB / 1.215 GB, free: 6.602 MB / 0.9356 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 0.0001315/0.9815, allocations: 117.8 kB / 1.215 GB, free: 6.477 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.069e-05/0.9815, allocations: 7.906 kB / 1.215 GB, free: 6.469 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007115/0.9822, allocations: 206.2 kB / 1.215 GB, free: 6.254 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.747e-06/0.9823, allocations: 4 kB / 1.215 GB, free: 6.25 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.532e-06/0.9823, allocations: 3.984 kB / 1.215 GB, free: 6.246 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.059e-06/0.9823, allocations: 3.984 kB / 1.215 GB, free: 6.242 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002906/0.9826, allocations: 242.2 kB / 1.216 GB, free: 5.953 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/0.9826, allocations: 3.938 kB / 1.216 GB, free: 5.949 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002223/0.9828, allocations: 31.95 kB / 1.216 GB, free: 5.918 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.206e-06/0.9828, allocations: 0 / 1.216 GB, free: 5.918 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.817e-05/0.9829, allocations: 11.92 kB / 1.216 GB, free: 5.906 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.517e-06/0.9829, allocations: 4.125 kB / 1.216 GB, free: 5.902 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.355e-06/0.9829, allocations: 4 kB / 1.216 GB, free: 5.898 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006773/0.9836, allocations: 279.3 kB / 1.216 GB, free: 5.609 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 5.881e-05/0.9836, allocations: 85.02 kB / 1.216 GB, free: 5.508 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.71e-05/0.9837, allocations: 11.88 kB / 1.216 GB, free: 5.496 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002928/0.984, allocations: 27.95 kB / 1.216 GB, free: 5.469 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.934e-05/0.984, allocations: 7.984 kB / 1.216 GB, free: 5.461 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.748e-05/0.984, allocations: 4 kB / 1.216 GB, free: 5.457 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 8.343e-05/0.9841, allocations: 107.2 kB / 1.216 GB, free: 5.352 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.51e-07/0.9841, allocations: 7.938 kB / 1.216 GB, free: 5.344 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002809/0.9844, allocations: 31.84 kB / 1.216 GB, free: 5.312 MB / 0.9356 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.0001553/0.9846, allocations: 95.25 kB / 1.216 GB, free: 5.211 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0006686/0.9853, allocations: 163.8 kB / 1.216 GB, free: 5.051 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.9853, allocations: 0 / 1.216 GB, free: 5.051 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0002851/0.9856, allocations: 87.84 kB / 1.216 GB, free: 4.965 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003711/0.9859, allocations: 9.719 kB / 1.216 GB, free: 4.957 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007312/0.9867, allocations: 265.4 kB / 1.217 GB, free: 4.664 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002979/0.987, allocations: 0.7002 MB / 1.217 GB, free: 3.938 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.302e-05/0.9871, allocations: 15.42 kB / 1.217 GB, free: 3.922 MB / 0.9356 GB Notification: Performance of SimCode: time 4.1e-07/0.9871, allocations: 0 / 1.217 GB, free: 3.922 MB / 0.9356 GB Notification: Performance of Templates: time 0.0038/0.9909, allocations: 1.615 MB / 1.219 GB, free: 2.316 MB / 0.9356 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.SmoothBlocks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches