Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.001832/0.001832, allocations: 78.97 kB / 19.18 MB, free: 2.516 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.002518/0.002518, allocations: 162.3 kB / 22.46 MB, free: 5.375 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.451/1.451, allocations: 177.2 MB / 202.8 MB, free: 9.18 MB / 190.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 2.927/2.927, allocations: 389 MB / 0.633 GB, free: 1.012 MB / 0.5919 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.1 (/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.Functions.Examples.SmoothHeavisideDerivatives,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|y|der.y.|der2_y",fileNamePrefix="Buildings_latest_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_latest_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.543e-06/1.543e-06, allocations: 0 / 1 GB, free: 7.258 MB / 0.9512 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.646e-05/2.8e-05, allocations: 6.281 kB / 1 GB, free: 7.25 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives): time 0.001641/0.001669, allocations: 0.6052 MB / 1.001 GB, free: 6.648 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.00165/0.003319, allocations: 1.132 MB / 1.002 GB, free: 5.5 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.951e-05/0.003349, allocations: 0 / 1.002 GB, free: 5.5 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 1.781e-05/0.003366, allocations: 0 / 1.002 GB, free: 5.5 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.0002394/0.003606, allocations: 19.92 kB / 1.002 GB, free: 5.48 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 3.476e-06/0.003609, allocations: 0 / 1.002 GB, free: 5.48 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 4.229e-05/0.003652, allocations: 3.938 kB / 1.002 GB, free: 5.477 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 4.573e-05/0.003697, allocations: 3.984 kB / 1.002 GB, free: 5.473 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 2.236e-05/0.00372, allocations: 4 kB / 1.002 GB, free: 5.469 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 1.916e-05/0.003739, allocations: 0 / 1.002 GB, free: 5.469 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 7.904e-06/0.003747, allocations: 4 kB / 1.002 GB, free: 5.465 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001015/0.003848, allocations: 19.92 kB / 1.002 GB, free: 5.445 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 1.057e-05/0.003859, allocations: 3.938 kB / 1.002 GB, free: 5.441 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 1.028e-05/0.003869, allocations: 0 / 1.002 GB, free: 5.441 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 8.328e-05/0.003952, allocations: 19.91 kB / 1.002 GB, free: 5.422 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 1.854e-06/0.003954, allocations: 0 / 1.002 GB, free: 5.422 MB / 0.9512 GB Notification: Performance of FrontEnd: time 5.91e-07/0.003955, allocations: 0 / 1.002 GB, free: 5.422 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 3.867e-06/0.003959, allocations: 0 / 1.002 GB, free: 5.422 MB / 0.9512 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.00031/0.004269, allocations: 242.4 kB / 1.002 GB, free: 5.156 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.884e-05/0.004307, allocations: 8.031 kB / 1.002 GB, free: 5.148 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002468/0.004554, allocations: 16.91 kB / 1.002 GB, free: 5.133 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.475e-05/0.004649, allocations: 105.8 kB / 1.002 GB, free: 5.004 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.265e-06/0.004657, allocations: 384 / 1.002 GB, free: 5.004 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.982e-05/0.004687, allocations: 4.375 kB / 1.002 GB, free: 5 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001132/0.0048, allocations: 42.19 kB / 1.002 GB, free: 4.953 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.19e-05/0.004812, allocations: 192 / 1.002 GB, free: 4.953 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.428e-06/0.004822, allocations: 384 / 1.002 GB, free: 4.953 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.633e-06/0.004828, allocations: 3.938 kB / 1.002 GB, free: 4.949 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.327e-05/0.004881, allocations: 11.92 kB / 1.002 GB, free: 4.938 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001439/0.005025, allocations: 101.3 kB / 1.002 GB, free: 4.809 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001702/0.005196, allocations: 30.61 kB / 1.003 GB, free: 4.77 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.568e-05/0.005221, allocations: 16.86 kB / 1.003 GB, free: 4.75 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 1.495e-05/0.005236, allocations: 0 / 1.003 GB, free: 4.75 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.745e-05/0.005274, allocations: 34.56 kB / 1.003 GB, free: 4.707 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=3): time 1.002e-06/0.005275, allocations: 3.938 kB / 1.003 GB, free: 4.703 MB / 0.9512 GB Notification: Performance of matching and sorting (n=5): time 0.004131/0.009406, allocations: 0.5445 MB / 1.003 GB, free: 4.152 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.901e-05/0.009445, allocations: 51.41 kB / 1.003 GB, free: 4.09 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.772e-05/0.009503, allocations: 93.84 kB / 1.003 GB, free: 3.988 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 2.719e-05/0.00953, allocations: 25.7 kB / 1.003 GB, free: 3.957 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 3.372e-05/0.009563, allocations: 84.08 kB / 1.003 GB, free: 3.871 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 4.734e-05/0.009611, allocations: 19.84 kB / 1.003 GB, free: 3.852 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.941e-05/0.00967, allocations: 17.72 kB / 1.003 GB, free: 3.828 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001551/0.009825, allocations: 318.8 kB / 1.004 GB, free: 3.508 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006225/0.01045, allocations: 79.95 kB / 1.004 GB, free: 3.43 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006329/0.01108, allocations: 106.7 kB / 1.004 GB, free: 3.316 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001258/0.01234, allocations: 186.4 kB / 1.004 GB, free: 3.125 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.102e-06/0.01234, allocations: 0 / 1.004 GB, free: 3.125 MB / 0.9512 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.001355/0.01369, allocations: 221.6 kB / 1.004 GB, free: 2.902 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.617e-05/0.01371, allocations: 6.188 kB / 1.004 GB, free: 2.898 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.474e-06/0.01372, allocations: 4.172 kB / 1.004 GB, free: 2.895 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.96e-05/0.01374, allocations: 4 kB / 1.004 GB, free: 2.891 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004445/0.01418, allocations: 55.94 kB / 1.004 GB, free: 2.836 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.045e-06/0.01419, allocations: 4 kB / 1.004 GB, free: 2.832 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003788/0.01457, allocations: 39.97 kB / 1.004 GB, free: 2.793 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.46e-05/0.01458, allocations: 4 kB / 1.004 GB, free: 2.789 MB / 0.9512 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 0.0001016/0.01468, allocations: 114.4 kB / 1.004 GB, free: 2.668 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2e-05/0.0147, allocations: 3.953 kB / 1.004 GB, free: 2.664 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.971e-05/0.01476, allocations: 11.66 kB / 1.004 GB, free: 2.648 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.944e-06/0.01477, allocations: 0 / 1.004 GB, free: 2.648 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.122e-06/0.01477, allocations: 7.938 kB / 1.004 GB, free: 2.641 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.896e-06/0.01478, allocations: 4 kB / 1.004 GB, free: 2.637 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001639/0.01641, allocations: 398.1 kB / 1.005 GB, free: 2.211 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.003e-06/0.01642, allocations: 0 / 1.005 GB, free: 2.211 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004161/0.01683, allocations: 47.97 kB / 1.005 GB, free: 2.164 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.595e-06/0.01684, allocations: 7.938 kB / 1.005 GB, free: 2.156 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.392e-05/0.01686, allocations: 4 kB / 1.005 GB, free: 2.152 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.276e-06/0.01687, allocations: 7.922 kB / 1.005 GB, free: 2.145 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.01687, allocations: 0 / 1.005 GB, free: 2.145 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001384/0.01825, allocations: 303.4 kB / 1.005 GB, free: 1.832 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 9.508e-06/0.01826, allocations: 12 kB / 1.005 GB, free: 1.82 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.643e-05/0.01829, allocations: 7.875 kB / 1.005 GB, free: 1.812 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004016/0.01869, allocations: 39.98 kB / 1.005 GB, free: 1.773 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.86e-05/0.01871, allocations: 3.984 kB / 1.005 GB, free: 1.77 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.254e-05/0.01872, allocations: 0 / 1.005 GB, free: 1.77 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 3.475e-05/0.01876, allocations: 75.28 kB / 1.005 GB, free: 1.695 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1e-07/0.01876, allocations: 4 kB / 1.005 GB, free: 1.691 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0002551/0.01901, allocations: 8 kB / 1.005 GB, free: 1.684 MB / 0.9512 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.0001305/0.01914, allocations: 95.25 kB / 1.005 GB, free: 1.582 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.001341/0.02048, allocations: 187.9 kB / 1.006 GB, free: 1.398 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.02049, allocations: 0 / 1.006 GB, free: 1.398 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0006452/0.02113, allocations: 88.2 kB / 1.006 GB, free: 1.312 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002164/0.02135, allocations: 0 / 1.006 GB, free: 1.312 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001244/0.02259, allocations: 221 kB / 1.006 GB, free: 1.07 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.558e-05/0.02267, allocations: 67.28 kB / 1.006 GB, free: 0.9844 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.0001824/0.02285, allocations: 28 kB / 1.006 GB, free: 0.957 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.226e-05/0.02293, allocations: 12.5 kB / 1.006 GB, free: 0.9453 MB / 0.9512 GB Notification: Performance of SimCode: time 4.21e-07/0.02293, allocations: 4 kB / 1.006 GB, free: 0.9414 MB / 0.9512 GB Notification: Performance of Templates: time 0.003168/0.0261, allocations: 0.8028 MB / 1.007 GB, free: 152 kB / 0.9512 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.sim & ./Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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.089712131768465]