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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.001265/0.001266, allocations: 103.9 kB / 16.35 MB, free: 5.875 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.001162/0.001162, allocations: 195.5 kB / 17.29 MB, free: 5.516 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.194/1.194, allocations: 222.9 MB / 241 MB, free: 14.98 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.228/2.228, allocations: 442.6 MB / 0.7165 GB, free: 14.66 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001134/0.001134, allocations: 71.86 kB / 0.8773 GB, free: 11.03 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2665/0.2676, allocations: 153 MB / 1.027 GB, free: 2.102 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothBlocks): time 0.002588/0.2702, allocations: 1.778 MB / 1.028 GB, free: 324 kB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.0009357/0.2712, allocations: 0.6591 MB / 1.029 GB, free: 15.65 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.475e-05/0.2712, allocations: 4 kB / 1.029 GB, free: 15.64 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.544e-05/0.2713, allocations: 15.8 kB / 1.029 GB, free: 15.63 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 5.568e-05/0.2714, allocations: 15.8 kB / 1.029 GB, free: 15.61 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004746/0.2718, allocations: 174.8 kB / 1.029 GB, free: 15.45 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001385/0.272, allocations: 119.7 kB / 1.029 GB, free: 15.33 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001188/0.2721, allocations: 49.09 kB / 1.029 GB, free: 15.28 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001013/0.2722, allocations: 55.78 kB / 1.03 GB, free: 15.23 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 7.633e-05/0.2723, allocations: 51.75 kB / 1.03 GB, free: 15.18 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.202e-05/0.2723, allocations: 12 kB / 1.03 GB, free: 15.16 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 9.356e-05/0.2724, allocations: 43.97 kB / 1.03 GB, free: 15.12 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 3.369e-05/0.2725, allocations: 35.89 kB / 1.03 GB, free: 15.09 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 5.851e-05/0.2725, allocations: 59.66 kB / 1.03 GB, free: 15.03 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001734/0.2727, allocations: 147.5 kB / 1.03 GB, free: 14.88 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 2.876e-06/0.2727, allocations: 3.938 kB / 1.03 GB, free: 14.88 MB / 0.8106 GB Notification: Performance of FrontEnd: time 9.41e-07/0.2727, allocations: 0 / 1.03 GB, free: 14.88 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.26e-06/0.2727, allocations: 0 / 1.03 GB, free: 14.88 MB / 0.8106 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.0005131/0.2733, allocations: 431.1 kB / 1.03 GB, free: 14.41 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.393e-05/0.2733, allocations: 12.03 kB / 1.03 GB, free: 14.4 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007861/0.2741, allocations: 116.6 kB / 1.03 GB, free: 14.29 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001174/0.2742, allocations: 185.6 kB / 1.031 GB, free: 14.07 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.235e-05/0.2743, allocations: 59.97 kB / 1.031 GB, free: 14 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.78e-05/0.2743, allocations: 8.375 kB / 1.031 GB, free: 13.99 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004484/0.2748, allocations: 181.6 kB / 1.031 GB, free: 13.8 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.273e-06/0.2748, allocations: 0 / 1.031 GB, free: 13.8 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.769e-05/0.2748, allocations: 0 / 1.031 GB, free: 13.8 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.599e-06/0.2748, allocations: 0 / 1.031 GB, free: 13.8 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005339/0.2754, allocations: 167.8 kB / 1.031 GB, free: 13.64 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009595/0.2763, allocations: 466.1 kB / 1.031 GB, free: 13.13 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008753/0.2772, allocations: 218.3 kB / 1.032 GB, free: 12.91 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000262/0.2775, allocations: 84.89 kB / 1.032 GB, free: 12.82 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.084e-05/0.2775, allocations: 7.984 kB / 1.032 GB, free: 12.82 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.572e-05/0.2776, allocations: 34.56 kB / 1.032 GB, free: 12.77 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=6): time 2.134e-06/0.2776, allocations: 0 / 1.032 GB, free: 12.77 MB / 0.8106 GB Notification: Performance of matching and sorting (n=6): time 0.0009103/0.2785, allocations: 269.4 kB / 1.032 GB, free: 12.5 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.752e-05/0.2785, allocations: 51.41 kB / 1.032 GB, free: 12.44 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.742e-05/0.2786, allocations: 135.5 kB / 1.032 GB, free: 12.3 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.308e-05/0.2787, allocations: 25.7 kB / 1.032 GB, free: 12.27 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.062e-05/0.2787, allocations: 116.1 kB / 1.032 GB, free: 12.15 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.296e-05/0.2788, allocations: 23.73 kB / 1.032 GB, free: 12.12 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.222e-05/0.2788, allocations: 21.72 kB / 1.032 GB, free: 12.1 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001075/0.2789, allocations: 322.8 kB / 1.033 GB, free: 11.77 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002615/0.2792, allocations: 71.92 kB / 1.033 GB, free: 11.7 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002705/0.2795, allocations: 102.5 kB / 1.033 GB, free: 11.59 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005731/0.2801, allocations: 170.3 kB / 1.033 GB, free: 11.42 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.2801, allocations: 0 / 1.033 GB, free: 11.42 MB / 0.8106 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0005692/0.2807, allocations: 201.4 kB / 1.033 GB, free: 11.21 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.72e-05/0.2807, allocations: 12 kB / 1.033 GB, free: 11.2 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.288e-06/0.2807, allocations: 0 / 1.033 GB, free: 11.2 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.573e-05/0.2807, allocations: 4.25 kB / 1.033 GB, free: 11.2 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002364/0.2809, allocations: 35.95 kB / 1.033 GB, free: 11.16 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.494e-06/0.281, allocations: 3.984 kB / 1.033 GB, free: 11.16 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000175/0.2811, allocations: 27.88 kB / 1.033 GB, free: 11.13 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.514e-05/0.2812, allocations: 4 kB / 1.033 GB, free: 11.13 MB / 0.8106 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.425e-05/0.2813, allocations: 129.7 kB / 1.033 GB, free: 10.99 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.807e-05/0.2813, allocations: 7.906 kB / 1.033 GB, free: 10.98 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006294/0.2819, allocations: 210.1 kB / 1.034 GB, free: 10.77 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.809e-06/0.282, allocations: 4 kB / 1.034 GB, free: 10.77 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.138e-06/0.282, allocations: 0 / 1.034 GB, free: 10.77 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.282, allocations: 0 / 1.034 GB, free: 10.77 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002414/0.2822, allocations: 238.1 kB / 1.034 GB, free: 10.48 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.2822, allocations: 0 / 1.034 GB, free: 10.48 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002037/0.2824, allocations: 31.95 kB / 1.034 GB, free: 10.45 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.849e-06/0.2825, allocations: 3.984 kB / 1.034 GB, free: 10.45 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.5e-05/0.2825, allocations: 7.938 kB / 1.034 GB, free: 10.44 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.454e-06/0.2825, allocations: 7.938 kB / 1.034 GB, free: 10.43 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.2825, allocations: 4 kB / 1.034 GB, free: 10.43 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00059/0.2831, allocations: 275.3 kB / 1.034 GB, free: 10.14 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.957e-05/0.2831, allocations: 89.02 kB / 1.034 GB, free: 10.04 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.188e-05/0.2832, allocations: 3.938 kB / 1.034 GB, free: 10.04 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002641/0.2834, allocations: 27.95 kB / 1.034 GB, free: 10.01 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.591e-05/0.2835, allocations: 11.98 kB / 1.034 GB, free: 9.996 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.895e-05/0.2835, allocations: 7.984 kB / 1.034 GB, free: 9.988 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0001031/0.2836, allocations: 109.1 kB / 1.034 GB, free: 9.883 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.743e-06/0.2836, allocations: 0 / 1.034 GB, free: 9.883 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002485/0.2839, allocations: 27.84 kB / 1.034 GB, free: 9.855 MB / 0.8106 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.0001282/0.284, allocations: 103.2 kB / 1.034 GB, free: 9.746 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0005905/0.2846, allocations: 159.8 kB / 1.035 GB, free: 9.59 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 3.948e-06/0.2846, allocations: 4.125 kB / 1.035 GB, free: 9.586 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0002648/0.2849, allocations: 88.09 kB / 1.035 GB, free: 9.5 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003133/0.2852, allocations: 10.47 kB / 1.035 GB, free: 9.492 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005937/0.2858, allocations: 263.3 kB / 1.035 GB, free: 9.203 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002496/0.2861, allocations: 0.7002 MB / 1.036 GB, free: 8.477 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 7.782e-05/0.2862, allocations: 23.92 kB / 1.036 GB, free: 8.453 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.242e-05/0.2862, allocations: 11.44 kB / 1.036 GB, free: 8.441 MB / 0.8106 GB Notification: Performance of SimCode: time 2.2e-07/0.2862, allocations: 0 / 1.036 GB, free: 8.441 MB / 0.8106 GB Notification: Performance of Templates: time 0.003624/0.2898, allocations: 1.453 MB / 1.037 GB, free: 6.996 MB / 0.8106 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 -s cvode -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