Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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_10_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_10_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.001093/0.001093, allocations: 91.92 kB / 15.06 MB, free: 1.098 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.001126/0.001126, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.469/1.469, allocations: 223.3 MB / 240 MB, free: 5.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.777/2.777, allocations: 437.7 MB / 0.7117 GB, free: 7.141 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0004031/0.0004032, allocations: 8 kB / 0.8722 GB, free: 3.699 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8723/0.8727, allocations: 153.8 MB / 1.022 GB, free: 196 kB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothBlocks): time 0.002004/0.8748, allocations: 1.455 MB / 1.024 GB, free: 14.73 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001122/0.8759, allocations: 0.6246 MB / 1.024 GB, free: 14.1 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.706e-05/0.876, allocations: 0 / 1.024 GB, free: 14.1 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 2.595e-05/0.876, allocations: 3.938 kB / 1.024 GB, free: 14.09 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 7.151e-05/0.8761, allocations: 11.86 kB / 1.024 GB, free: 14.08 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005345/0.8766, allocations: 144.9 kB / 1.025 GB, free: 13.94 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0001497/0.8768, allocations: 111.7 kB / 1.025 GB, free: 13.83 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001405/0.877, allocations: 41.28 kB / 1.025 GB, free: 13.79 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001059/0.8771, allocations: 43.83 kB / 1.025 GB, free: 13.75 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 8.07e-05/0.8772, allocations: 39.78 kB / 1.025 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.109e-05/0.8772, allocations: 4 kB / 1.025 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 9.662e-05/0.8773, allocations: 39.97 kB / 1.025 GB, free: 13.67 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 2.997e-05/0.8773, allocations: 19.91 kB / 1.025 GB, free: 13.65 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 4.75e-05/0.8774, allocations: 45.64 kB / 1.025 GB, free: 13.6 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001506/0.8775, allocations: 93.92 kB / 1.025 GB, free: 13.51 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 8.275e-06/0.8776, allocations: 4 kB / 1.025 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.232e-06/0.8776, allocations: 0 / 1.025 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 3.968e-06/0.8776, allocations: 0 / 1.025 GB, free: 13.5 MB / 0.7794 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.0005772/0.8782, allocations: 418.9 kB / 1.025 GB, free: 13.05 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.934e-05/0.8782, allocations: 12.03 kB / 1.025 GB, free: 13.04 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007882/0.879, allocations: 135.6 kB / 1.026 GB, free: 12.9 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001301/0.8791, allocations: 176.8 kB / 1.026 GB, free: 12.69 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001068/0.8793, allocations: 79.22 kB / 1.026 GB, free: 12.6 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.019e-05/0.8793, allocations: 12 kB / 1.026 GB, free: 12.59 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000498/0.8798, allocations: 189.5 kB / 1.026 GB, free: 12.4 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.176e-06/0.8798, allocations: 0 / 1.026 GB, free: 12.4 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.182e-05/0.8798, allocations: 4 kB / 1.026 GB, free: 12.39 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.609e-06/0.8798, allocations: 0 / 1.026 GB, free: 12.39 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005701/0.8804, allocations: 183.8 kB / 1.026 GB, free: 12.21 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00106/0.8815, allocations: 0.4979 MB / 1.027 GB, free: 11.66 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000969/0.8825, allocations: 274.3 kB / 1.027 GB, free: 11.39 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003006/0.8828, allocations: 108.8 kB / 1.027 GB, free: 11.28 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.568e-05/0.8828, allocations: 0 / 1.027 GB, free: 11.28 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.816e-05/0.8829, allocations: 38.53 kB / 1.027 GB, free: 11.23 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=6): time 9.82e-07/0.8829, allocations: 0 / 1.027 GB, free: 11.23 MB / 0.7794 GB Notification: Performance of matching and sorting (n=6): time 0.0009815/0.8838, allocations: 313.5 kB / 1.027 GB, free: 10.92 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.093e-05/0.8839, allocations: 51.41 kB / 1.027 GB, free: 10.86 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001253/0.884, allocations: 143.5 kB / 1.028 GB, free: 10.71 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.525e-05/0.8841, allocations: 29.7 kB / 1.028 GB, free: 10.67 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 8.246e-05/0.8842, allocations: 112.1 kB / 1.028 GB, free: 10.55 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.423e-05/0.8842, allocations: 15.72 kB / 1.028 GB, free: 10.54 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.317e-06/0.8842, allocations: 0 / 1.028 GB, free: 10.54 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.000139/0.8843, allocations: 322.8 kB / 1.028 GB, free: 10.21 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002982/0.8846, allocations: 95.86 kB / 1.028 GB, free: 10.12 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002919/0.8849, allocations: 114.5 kB / 1.028 GB, free: 10 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002778/0.8852, allocations: 87.94 kB / 1.028 GB, free: 9.914 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.215e-06/0.8852, allocations: 0 / 1.028 GB, free: 9.914 MB / 0.7794 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0006634/0.8859, allocations: 245.3 kB / 1.029 GB, free: 9.668 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.748e-05/0.8859, allocations: 4 kB / 1.029 GB, free: 9.664 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.523e-06/0.886, allocations: 0 / 1.029 GB, free: 9.664 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.297e-05/0.886, allocations: 4 kB / 1.029 GB, free: 9.66 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002694/0.8862, allocations: 47.94 kB / 1.029 GB, free: 9.613 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.373e-06/0.8863, allocations: 7.938 kB / 1.029 GB, free: 9.605 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001816/0.8865, allocations: 35.91 kB / 1.029 GB, free: 9.57 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.529e-05/0.8865, allocations: 4 kB / 1.029 GB, free: 9.566 MB / 0.7794 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001158/0.8866, allocations: 121.8 kB / 1.029 GB, free: 9.438 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.966e-05/0.8866, allocations: 15.86 kB / 1.029 GB, free: 9.422 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006881/0.8873, allocations: 238.2 kB / 1.029 GB, free: 9.184 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.496e-06/0.8874, allocations: 0 / 1.029 GB, free: 9.184 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.678e-06/0.8874, allocations: 4 kB / 1.029 GB, free: 9.18 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.086e-06/0.8874, allocations: 0 / 1.029 GB, free: 9.18 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002826/0.8877, allocations: 245.8 kB / 1.029 GB, free: 8.891 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.926e-06/0.8877, allocations: 3.953 kB / 1.029 GB, free: 8.887 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002237/0.8879, allocations: 43.89 kB / 1.029 GB, free: 8.844 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.909e-06/0.8879, allocations: 3.984 kB / 1.029 GB, free: 8.84 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.437e-05/0.8879, allocations: 8 kB / 1.029 GB, free: 8.832 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.8879, allocations: 0 / 1.029 GB, free: 8.832 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.8879, allocations: 384 / 1.029 GB, free: 8.832 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006684/0.8886, allocations: 323.3 kB / 1.03 GB, free: 8.5 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.158e-05/0.8887, allocations: 88.97 kB / 1.03 GB, free: 8.395 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.333e-05/0.8887, allocations: 0 / 1.03 GB, free: 8.395 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002786/0.889, allocations: 39.95 kB / 1.03 GB, free: 8.355 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.284e-05/0.889, allocations: 7.984 kB / 1.03 GB, free: 8.348 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.029e-05/0.8891, allocations: 15.98 kB / 1.03 GB, free: 8.332 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 7.998e-05/0.8892, allocations: 99.27 kB / 1.03 GB, free: 8.234 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.21e-07/0.8892, allocations: 0 / 1.03 GB, free: 8.234 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002684/0.8894, allocations: 27.94 kB / 1.03 GB, free: 8.207 MB / 0.7794 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001317/0.8896, allocations: 99.19 kB / 1.03 GB, free: 8.102 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0006489/0.8902, allocations: 199.8 kB / 1.03 GB, free: 7.906 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.8902, allocations: 0 / 1.03 GB, free: 7.906 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0003011/0.8905, allocations: 104 kB / 1.03 GB, free: 7.805 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003244/0.8909, allocations: 12 kB / 1.03 GB, free: 7.793 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006578/0.8915, allocations: 305.3 kB / 1.031 GB, free: 7.469 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002977/0.8919, allocations: 0.7055 MB / 1.031 GB, free: 6.738 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0001005/0.892, allocations: 12.19 kB / 1.031 GB, free: 6.727 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.834e-05/0.892, allocations: 15.42 kB / 1.031 GB, free: 6.711 MB / 0.7794 GB Notification: Performance of SimCode: time 7.62e-07/0.892, allocations: 3.938 kB / 1.031 GB, free: 6.707 MB / 0.7794 GB Notification: Performance of Templates: time 0.003937/0.896, allocations: 1.315 MB / 1.033 GB, free: 5.402 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Utilities.Math.Examples.SmoothBlocks.makefile (rm -f Buildings_10_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Examples.SmoothBlocks.sim & ./Buildings_10_Buildings.Utilities.Math.Examples.SmoothBlocks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Examples.SmoothBlocks_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Examples_SmoothBlocks.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Examples.SmoothBlocks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches