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.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.001553/0.001553, 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.001763/0.001763, allocations: 207.2 kB / 22.24 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.462/1.462, allocations: 230.6 MB / 256 MB, free: 7.785 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.322/3.322, allocations: 0.5107 GB / 0.8158 GB, free: 17.84 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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.Examples.SmoothBlocks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,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=2500,variableFilter="time|smoMax.u1|smoMax.u2|smoMax.y|max.y|smoMin.y|Min.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.SmoothBlocks") [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.00205/0.00205, allocations: 67.34 kB / 1.186 GB, free: 13.4 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3965/0.3986, allocations: 181.9 MB / 1.364 GB, free: 13.56 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothBlocks): time 0.003053/0.4016, allocations: 1.773 MB / 1.366 GB, free: 11.77 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001267/0.4029, allocations: 0.6869 MB / 1.366 GB, free: 11.08 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.087e-05/0.403, allocations: 3.938 kB / 1.366 GB, free: 11.07 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 4.087e-05/0.403, allocations: 11.86 kB / 1.366 GB, free: 11.06 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 7.028e-05/0.4031, allocations: 15.81 kB / 1.366 GB, free: 11.05 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005978/0.4037, allocations: 186.1 kB / 1.366 GB, free: 10.87 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0001948/0.4039, allocations: 131.5 kB / 1.367 GB, free: 10.74 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001471/0.404, allocations: 37.55 kB / 1.367 GB, free: 10.7 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001621/0.4042, allocations: 67.83 kB / 1.367 GB, free: 10.63 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 8.568e-05/0.4043, allocations: 39.77 kB / 1.367 GB, free: 10.59 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 2.811e-05/0.4043, allocations: 8 kB / 1.367 GB, free: 10.58 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001292/0.4044, allocations: 51.97 kB / 1.367 GB, free: 10.53 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 4.035e-05/0.4045, allocations: 39.89 kB / 1.367 GB, free: 10.49 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 5.458e-05/0.4045, allocations: 47.72 kB / 1.367 GB, free: 10.45 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0002325/0.4048, allocations: 155.4 kB / 1.367 GB, free: 10.29 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 3.527e-06/0.4048, allocations: 0 / 1.367 GB, free: 10.29 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.253e-06/0.4048, allocations: 0 / 1.367 GB, free: 10.29 MB / 1.061 GB Notification: Performance of Transformations before backend: time 5.33e-06/0.4048, allocations: 4 kB / 1.367 GB, free: 10.29 MB / 1.061 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.0006182/0.4054, allocations: 365.7 kB / 1.367 GB, free: 9.902 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.292e-05/0.4054, allocations: 8.031 kB / 1.367 GB, free: 9.895 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009815/0.4064, allocations: 132.6 kB / 1.367 GB, free: 9.766 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002827/0.4067, allocations: 162.8 kB / 1.368 GB, free: 9.582 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001365/0.4068, allocations: 115.4 kB / 1.368 GB, free: 9.445 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.289e-05/0.4069, allocations: 11.94 kB / 1.368 GB, free: 9.434 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005508/0.4074, allocations: 223.2 kB / 1.368 GB, free: 9.199 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.668e-06/0.4074, allocations: 3.938 kB / 1.368 GB, free: 9.195 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.234e-05/0.4074, allocations: 8 kB / 1.368 GB, free: 9.188 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.869e-06/0.4074, allocations: 0 / 1.368 GB, free: 9.188 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006101/0.4081, allocations: 159.8 kB / 1.368 GB, free: 9.031 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001013/0.4091, allocations: 397.4 kB / 1.369 GB, free: 8.613 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00101/0.4101, allocations: 214.3 kB / 1.369 GB, free: 8.395 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002978/0.4104, allocations: 84.91 kB / 1.369 GB, free: 8.309 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 2.538e-05/0.4104, allocations: 7.922 kB / 1.369 GB, free: 8.301 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.253e-05/0.4104, allocations: 34.56 kB / 1.369 GB, free: 8.258 MB / 1.061 GB Notification: Performance of pre-optimization done (n=6): time 1.042e-06/0.4104, allocations: 0 / 1.369 GB, free: 8.258 MB / 1.061 GB Notification: Performance of matching and sorting (n=6): time 0.001029/0.4115, allocations: 261.3 kB / 1.369 GB, free: 7.996 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.752e-05/0.4115, allocations: 55.41 kB / 1.369 GB, free: 7.93 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001275/0.4116, allocations: 144.9 kB / 1.369 GB, free: 7.777 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 2.596e-05/0.4117, allocations: 25.7 kB / 1.369 GB, free: 7.746 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 7.559e-05/0.4117, allocations: 120.1 kB / 1.369 GB, free: 7.625 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 2.359e-05/0.4118, allocations: 11.91 kB / 1.369 GB, free: 7.613 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.688e-05/0.4118, allocations: 29.69 kB / 1.369 GB, free: 7.578 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001409/0.412, allocations: 322.8 kB / 1.37 GB, free: 7.254 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003053/0.4123, allocations: 76.17 kB / 1.37 GB, free: 7.18 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003085/0.4126, allocations: 94.48 kB / 1.37 GB, free: 7.078 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005733/0.4132, allocations: 162.4 kB / 1.37 GB, free: 6.91 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.4132, allocations: 3.938 kB / 1.37 GB, free: 6.906 MB / 1.061 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0006664/0.4138, allocations: 213.4 kB / 1.37 GB, free: 6.691 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.807e-05/0.4138, allocations: 8 kB / 1.37 GB, free: 6.684 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.789e-06/0.4138, allocations: 0 / 1.37 GB, free: 6.684 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.63e-05/0.4139, allocations: 0 / 1.37 GB, free: 6.684 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002573/0.4141, allocations: 35.95 kB / 1.37 GB, free: 6.648 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.61e-06/0.4141, allocations: 0 / 1.37 GB, free: 6.648 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001859/0.4143, allocations: 27.89 kB / 1.37 GB, free: 6.621 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.657e-05/0.4143, allocations: 8 kB / 1.37 GB, free: 6.613 MB / 1.061 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.0001066/0.4144, allocations: 118.9 kB / 1.37 GB, free: 6.488 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.203e-05/0.4145, allocations: 11.89 kB / 1.37 GB, free: 6.477 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007248/0.4152, allocations: 206.2 kB / 1.371 GB, free: 6.266 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.845e-06/0.4152, allocations: 4 kB / 1.371 GB, free: 6.262 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.4152, allocations: 0 / 1.371 GB, free: 6.262 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.709e-06/0.4152, allocations: 3.984 kB / 1.371 GB, free: 6.258 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002107/0.4154, allocations: 158.1 kB / 1.371 GB, free: 6.07 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.4154, allocations: 4 kB / 1.371 GB, free: 6.066 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000217/0.4156, allocations: 27.95 kB / 1.371 GB, free: 6.039 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.642e-06/0.4156, allocations: 7.938 kB / 1.371 GB, free: 6.031 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.204e-05/0.4157, allocations: 0 / 1.371 GB, free: 6.031 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/0.4157, allocations: 3.938 kB / 1.371 GB, free: 6.027 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.4157, allocations: 8.062 kB / 1.371 GB, free: 6.02 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007002/0.4164, allocations: 287.3 kB / 1.371 GB, free: 5.723 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 1.637e-05/0.4164, allocations: 7.953 kB / 1.371 GB, free: 5.715 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.508e-05/0.4164, allocations: 7.938 kB / 1.371 GB, free: 5.707 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000288/0.4167, allocations: 31.95 kB / 1.371 GB, free: 5.676 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.325e-05/0.4167, allocations: 7.984 kB / 1.371 GB, free: 5.668 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.965e-05/0.4168, allocations: 7.984 kB / 1.371 GB, free: 5.66 MB / 1.061 GB Notification: Performance of sorting global known variables: time 8.045e-05/0.4168, allocations: 113.3 kB / 1.371 GB, free: 5.551 MB / 1.061 GB Notification: Performance of sort global known variables: time 8.1e-08/0.4168, allocations: 0 / 1.371 GB, free: 5.551 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002602/0.4171, allocations: 27.89 kB / 1.371 GB, free: 5.523 MB / 1.061 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.0001477/0.4172, allocations: 95.25 kB / 1.371 GB, free: 5.422 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0006713/0.4179, allocations: 163.8 kB / 1.372 GB, free: 5.262 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 4.338e-06/0.4179, allocations: 4 kB / 1.372 GB, free: 5.258 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0002976/0.4182, allocations: 71.92 kB / 1.372 GB, free: 5.188 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002936/0.4185, allocations: 20.2 kB / 1.372 GB, free: 5.168 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000678/0.4192, allocations: 255.7 kB / 1.372 GB, free: 4.891 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.373e-05/0.4193, allocations: 89.19 kB / 1.372 GB, free: 4.785 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 9.134e-05/0.4194, allocations: 15.98 kB / 1.372 GB, free: 4.77 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.094e-05/0.4194, allocations: 11.44 kB / 1.372 GB, free: 4.758 MB / 1.061 GB Notification: Performance of SimCode: time 2.9e-07/0.4194, allocations: 0 / 1.372 GB, free: 4.758 MB / 1.061 GB Notification: Performance of Templates: time 0.004486/0.4239, allocations: 1.643 MB / 1.374 GB, free: 3.137 MB / 1.061 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.SmoothBlocks.makefile [Timeout 300] (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=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.SmoothBlocks_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_SmoothBlocks.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.SmoothBlocks.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.898896740749478]