Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001921/0.001921, allocations: 99.64 kB / 18.95 MB, free: 2.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002456/0.002456, allocations: 210.1 kB / 22.25 MB, free: 5.262 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.487/1.487, allocations: 230.6 MB / 256 MB, free: 7.805 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.783/2.783, allocations: 476 MB / 0.7699 GB, free: 4.754 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|y|der.y.|der2_y",fileNamePrefix="Buildings_11_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives") translateModel(Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|y|der.y.|der2_y",fileNamePrefix="Buildings_11_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002148/0.002148, allocations: 66.47 kB / 1.117 GB, free: 41.07 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3706/0.3727, allocations: 169.9 MB / 1.283 GB, free: 11.89 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives): time 0.002137/0.3749, allocations: 0.6004 MB / 1.284 GB, free: 11.3 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001837/0.3767, allocations: 1.128 MB / 1.285 GB, free: 10.16 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.082e-05/0.3767, allocations: 0 / 1.285 GB, free: 10.16 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 2.072e-05/0.3767, allocations: 0 / 1.285 GB, free: 10.16 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0003173/0.3771, allocations: 11.92 kB / 1.285 GB, free: 10.15 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 4.028e-06/0.3771, allocations: 7.938 kB / 1.285 GB, free: 10.14 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 4.488e-05/0.3771, allocations: 7.938 kB / 1.285 GB, free: 10.13 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 6.02e-05/0.3772, allocations: 4 kB / 1.285 GB, free: 10.13 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 2.084e-05/0.3772, allocations: 4 kB / 1.285 GB, free: 10.12 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 3.24e-05/0.3772, allocations: 7.969 kB / 1.285 GB, free: 10.12 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 7.905e-06/0.3772, allocations: 0 / 1.285 GB, free: 10.12 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001159/0.3773, allocations: 11.94 kB / 1.285 GB, free: 10.11 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 9.668e-06/0.3774, allocations: 0 / 1.285 GB, free: 10.11 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 2.625e-05/0.3774, allocations: 7.938 kB / 1.285 GB, free: 10.1 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001049/0.3775, allocations: 19.91 kB / 1.285 GB, free: 10.08 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.457e-06/0.3775, allocations: 0 / 1.285 GB, free: 10.08 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.753e-06/0.3775, allocations: 0 / 1.285 GB, free: 10.08 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 5.229e-06/0.3775, allocations: 0 / 1.285 GB, free: 10.08 MB / 0.9825 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0003073/0.3778, allocations: 250.4 kB / 1.285 GB, free: 9.805 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.562e-05/0.3778, allocations: 12.03 kB / 1.285 GB, free: 9.793 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.835e-05/0.3779, allocations: 0.9375 kB / 1.285 GB, free: 9.793 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001007/0.378, allocations: 102.5 kB / 1.285 GB, free: 9.668 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.252e-05/0.378, allocations: 384 / 1.285 GB, free: 9.668 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.823e-05/0.378, allocations: 4.375 kB / 1.285 GB, free: 9.664 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001313/0.3782, allocations: 45.94 kB / 1.285 GB, free: 9.613 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.476e-05/0.3782, allocations: 0 / 1.285 GB, free: 9.613 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.957e-06/0.3782, allocations: 0 / 1.285 GB, free: 9.613 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.139e-06/0.3782, allocations: 3.938 kB / 1.285 GB, free: 9.609 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.345e-05/0.3782, allocations: 7.984 kB / 1.285 GB, free: 9.602 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001559/0.3784, allocations: 105.3 kB / 1.285 GB, free: 9.469 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002086/0.3786, allocations: 30.61 kB / 1.285 GB, free: 9.43 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.033e-05/0.3786, allocations: 14.67 kB / 1.285 GB, free: 9.414 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001259/0.3788, allocations: 8 kB / 1.285 GB, free: 9.406 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.639e-05/0.3788, allocations: 34.5 kB / 1.285 GB, free: 9.363 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=3): time 1.432e-06/0.3788, allocations: 3.938 kB / 1.285 GB, free: 9.359 MB / 0.9825 GB Notification: Performance of matching and sorting (n=5): time 0.004277/0.3831, allocations: 0.5715 MB / 1.286 GB, free: 8.781 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.206e-05/0.3831, allocations: 55.41 kB / 1.286 GB, free: 8.715 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.008e-05/0.3832, allocations: 93.86 kB / 1.286 GB, free: 8.613 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 3.018e-05/0.3832, allocations: 29.69 kB / 1.286 GB, free: 8.578 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 4.098e-05/0.3833, allocations: 80.14 kB / 1.286 GB, free: 8.496 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 5.626e-05/0.3833, allocations: 15.84 kB / 1.286 GB, free: 8.48 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.152e-05/0.3834, allocations: 21.72 kB / 1.286 GB, free: 8.453 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0002402/0.3836, allocations: 314.8 kB / 1.287 GB, free: 8.137 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006016/0.3842, allocations: 83.95 kB / 1.287 GB, free: 8.055 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006044/0.3848, allocations: 98.53 kB / 1.287 GB, free: 7.949 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001195/0.386, allocations: 190.4 kB / 1.287 GB, free: 7.754 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.148e-06/0.386, allocations: 4 kB / 1.287 GB, free: 7.75 MB / 0.9825 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.00126/0.3873, allocations: 217.7 kB / 1.287 GB, free: 7.531 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 2.445e-05/0.3873, allocations: 12 kB / 1.287 GB, free: 7.52 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.003e-05/0.3873, allocations: 4 kB / 1.287 GB, free: 7.516 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.007e-05/0.3873, allocations: 4 kB / 1.287 GB, free: 7.512 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004041/0.3878, allocations: 47.97 kB / 1.287 GB, free: 7.465 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.533e-06/0.3878, allocations: 0 / 1.287 GB, free: 7.465 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003458/0.3881, allocations: 39.98 kB / 1.287 GB, free: 7.426 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.089e-05/0.3881, allocations: 7.984 kB / 1.287 GB, free: 7.418 MB / 0.9825 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 (5): * Single equations (assignments): 5 * 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.98e-05/0.3882, allocations: 109.8 kB / 1.287 GB, free: 7.301 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.798e-05/0.3883, allocations: 12.3 kB / 1.287 GB, free: 7.289 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001401/0.3897, allocations: 229.1 kB / 1.288 GB, free: 7.062 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.047e-06/0.3897, allocations: 0 / 1.288 GB, free: 7.062 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/0.3897, allocations: 4 kB / 1.288 GB, free: 7.059 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.23e-06/0.3897, allocations: 3.984 kB / 1.288 GB, free: 7.055 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001519/0.3912, allocations: 402 kB / 1.288 GB, free: 6.625 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.735e-06/0.3912, allocations: 0 / 1.288 GB, free: 6.625 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003834/0.3916, allocations: 51.97 kB / 1.288 GB, free: 6.574 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.797e-06/0.3916, allocations: 0 / 1.288 GB, free: 6.574 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.336e-05/0.3916, allocations: 0 / 1.288 GB, free: 6.574 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.863e-06/0.3916, allocations: 0 / 1.288 GB, free: 6.574 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.3916, allocations: 0 / 1.288 GB, free: 6.574 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001342/0.3929, allocations: 315.3 kB / 1.288 GB, free: 6.25 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 1.17e-05/0.3929, allocations: 11.89 kB / 1.288 GB, free: 6.238 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.378e-05/0.393, allocations: 3.938 kB / 1.288 GB, free: 6.234 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003775/0.3933, allocations: 43.97 kB / 1.288 GB, free: 6.191 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.991e-05/0.3934, allocations: 192 / 1.288 GB, free: 6.191 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.269e-05/0.3934, allocations: 4 kB / 1.288 GB, free: 6.188 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 4.909e-05/0.3934, allocations: 75.28 kB / 1.288 GB, free: 6.113 MB / 0.9825 GB Notification: Performance of sort global known variables: time 8e-08/0.3934, allocations: 4 kB / 1.288 GB, free: 6.109 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002592/0.3937, allocations: 12 kB / 1.288 GB, free: 6.098 MB / 0.9825 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 (5): * Single equations (assignments): 5 * 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.000202/0.3939, allocations: 111.2 kB / 1.289 GB, free: 5.977 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.001275/0.3952, allocations: 179.9 kB / 1.289 GB, free: 5.801 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.3952, allocations: 0 / 1.289 GB, free: 5.801 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0006049/0.3958, allocations: 88.08 kB / 1.289 GB, free: 5.715 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002277/0.396, allocations: 11.92 kB / 1.289 GB, free: 5.703 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001242/0.3972, allocations: 208.8 kB / 1.289 GB, free: 5.473 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.76e-05/0.3973, allocations: 59.36 kB / 1.289 GB, free: 5.395 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.0001869/0.3975, allocations: 31.98 kB / 1.289 GB, free: 5.363 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.074e-05/0.3976, allocations: 11.44 kB / 1.289 GB, free: 5.352 MB / 0.9825 GB Notification: Performance of SimCode: time 8.42e-07/0.3976, allocations: 0 / 1.289 GB, free: 5.352 MB / 0.9825 GB Notification: Performance of Templates: time 0.003631/0.4012, allocations: 0.8095 MB / 1.29 GB, free: 4.555 MB / 0.9825 GB " [Timeout remaining time 299] make -j1 -f Buildings_11_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe ; mkfifo Buildings_11_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe >> ../files/Buildings_11_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.sim & ./Buildings_11_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_11_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 8.812409264966846]