Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001405/0.001405, allocations: 80.2 kB / 19.18 MB, free: 2.527 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.001504/0.001504, allocations: 171.4 kB / 22.46 MB, free: 5.352 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.455/1.455, allocations: 177.1 MB / 202.8 MB, free: 9.184 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 2.839/2.839, allocations: 377.8 MB / 0.6221 GB, free: 12.63 MB / 0.5919 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.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_12_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_12_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.994e-06/1.994e-06, allocations: 0 / 0.9815 GB, free: 10.91 MB / 0.8887 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.922e-05/3.121e-05, allocations: 9.375 kB / 0.9815 GB, free: 10.9 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives): time 0.001674/0.001706, allocations: 0.5918 MB / 0.9821 GB, free: 10.31 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001653/0.003359, allocations: 1.128 MB / 0.9832 GB, free: 9.164 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.931e-05/0.003388, allocations: 4 kB / 0.9832 GB, free: 9.16 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 1.427e-05/0.003403, allocations: 0 / 0.9832 GB, free: 9.16 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.0002376/0.00364, allocations: 15.91 kB / 0.9832 GB, free: 9.145 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 4.238e-06/0.003644, allocations: 0 / 0.9832 GB, free: 9.145 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 4.571e-05/0.00369, allocations: 15.94 kB / 0.9832 GB, free: 9.129 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 4.232e-05/0.003732, allocations: 0 / 0.9832 GB, free: 9.129 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 2.491e-05/0.003757, allocations: 4 kB / 0.9832 GB, free: 9.125 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 2.022e-05/0.003778, allocations: 3.938 kB / 0.9832 GB, free: 9.121 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 8.836e-06/0.003786, allocations: 0 / 0.9832 GB, free: 9.121 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000111/0.003897, allocations: 15.97 kB / 0.9832 GB, free: 9.105 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 1.535e-05/0.003913, allocations: 7.938 kB / 0.9832 GB, free: 9.098 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 1.157e-05/0.003924, allocations: 0 / 0.9832 GB, free: 9.098 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0001139/0.004038, allocations: 15.92 kB / 0.9832 GB, free: 9.082 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 2.073e-06/0.00404, allocations: 0 / 0.9832 GB, free: 9.082 MB / 0.8887 GB Notification: Performance of FrontEnd: time 5.91e-07/0.004041, allocations: 0 / 0.9832 GB, free: 9.082 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 6.702e-06/0.004048, allocations: 4 kB / 0.9833 GB, free: 9.078 MB / 0.8887 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.0003086/0.004356, allocations: 242.4 kB / 0.9835 GB, free: 8.812 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.141e-05/0.004398, allocations: 15.97 kB / 0.9835 GB, free: 8.797 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.791e-05/0.004426, allocations: 4.891 kB / 0.9835 GB, free: 8.793 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.252e-05/0.004508, allocations: 101.8 kB / 0.9836 GB, free: 8.668 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.257e-06/0.004517, allocations: 4.375 kB / 0.9836 GB, free: 8.664 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.189e-05/0.004539, allocations: 4.375 kB / 0.9836 GB, free: 8.66 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001053/0.004644, allocations: 38.25 kB / 0.9836 GB, free: 8.617 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.224e-05/0.004657, allocations: 192 / 0.9836 GB, free: 8.617 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.654e-06/0.004664, allocations: 384 / 0.9836 GB, free: 8.617 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.348e-05/0.004678, allocations: 3.938 kB / 0.9836 GB, free: 8.613 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.784e-05/0.004716, allocations: 8 kB / 0.9837 GB, free: 8.605 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000135/0.004851, allocations: 105.4 kB / 0.9838 GB, free: 8.473 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001713/0.005022, allocations: 30.52 kB / 0.9838 GB, free: 8.434 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.361e-05/0.005046, allocations: 16.89 kB / 0.9838 GB, free: 8.414 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001117/0.005157, allocations: 7.984 kB / 0.9838 GB, free: 8.406 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001477/0.005305, allocations: 30.56 kB / 0.9838 GB, free: 8.367 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=3): time 1.002e-06/0.005306, allocations: 0 / 0.9838 GB, free: 8.367 MB / 0.8887 GB Notification: Performance of matching and sorting (n=5): time 0.004462/0.009768, allocations: 0.5718 MB / 0.9844 GB, free: 7.789 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.773e-05/0.009816, allocations: 55.41 kB / 0.9845 GB, free: 7.723 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.308e-05/0.009869, allocations: 89.86 kB / 0.9845 GB, free: 7.625 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 2.463e-05/0.009893, allocations: 25.7 kB / 0.9846 GB, free: 7.594 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 3.853e-05/0.009932, allocations: 80.14 kB / 0.9846 GB, free: 7.512 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 5.085e-05/0.009983, allocations: 27.77 kB / 0.9847 GB, free: 7.484 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.223e-05/0.01004, allocations: 21.72 kB / 0.9847 GB, free: 7.457 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001558/0.0102, allocations: 310.8 kB / 0.985 GB, free: 7.145 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006468/0.01085, allocations: 83.95 kB / 0.9851 GB, free: 7.062 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006659/0.01151, allocations: 110.6 kB / 0.9852 GB, free: 6.945 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00131/0.01282, allocations: 182.5 kB / 0.9853 GB, free: 6.758 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/0.01283, allocations: 4 kB / 0.9853 GB, free: 6.754 MB / 0.8887 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.001391/0.01422, allocations: 213.6 kB / 0.9855 GB, free: 6.539 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 1.51e-05/0.01423, allocations: 4 kB / 0.9856 GB, free: 6.535 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.334e-06/0.01424, allocations: 3.984 kB / 0.9856 GB, free: 6.531 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.141e-05/0.01426, allocations: 7.938 kB / 0.9856 GB, free: 6.523 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004429/0.0147, allocations: 55.88 kB / 0.9856 GB, free: 6.469 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.945e-06/0.01471, allocations: 3.984 kB / 0.9856 GB, free: 6.465 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003789/0.01509, allocations: 39.98 kB / 0.9857 GB, free: 6.426 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.734e-05/0.01511, allocations: 4 kB / 0.9857 GB, free: 6.422 MB / 0.8887 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.647e-05/0.01521, allocations: 109.8 kB / 0.9858 GB, free: 6.305 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.187e-05/0.01523, allocations: 4 kB / 0.9858 GB, free: 6.301 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001549/0.01678, allocations: 237.2 kB / 0.986 GB, free: 6.062 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.216e-06/0.01678, allocations: 0 / 0.986 GB, free: 6.062 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.34e-05/0.01679, allocations: 3.938 kB / 0.986 GB, free: 6.059 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.836e-06/0.0168, allocations: 0 / 0.986 GB, free: 6.059 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001604/0.0184, allocations: 398.4 kB / 0.9864 GB, free: 5.633 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.741e-06/0.01841, allocations: 4 kB / 0.9864 GB, free: 5.629 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004289/0.01883, allocations: 51.97 kB / 0.9864 GB, free: 5.578 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.749e-06/0.01884, allocations: 3.938 kB / 0.9864 GB, free: 5.574 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.647e-05/0.01886, allocations: 3.984 kB / 0.9864 GB, free: 5.57 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.01886, allocations: 0 / 0.9864 GB, free: 5.57 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.01886, allocations: 3.938 kB / 0.9864 GB, free: 5.566 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001447/0.0203, allocations: 307.4 kB / 0.9867 GB, free: 5.25 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 8.927e-06/0.02031, allocations: 8 kB / 0.9867 GB, free: 5.242 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.634e-05/0.02034, allocations: 3.938 kB / 0.9867 GB, free: 5.238 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004078/0.02075, allocations: 39.98 kB / 0.9868 GB, free: 5.199 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.894e-05/0.02077, allocations: 3.984 kB / 0.9868 GB, free: 5.195 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.199e-05/0.02078, allocations: 0 / 0.9868 GB, free: 5.195 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 4.686e-05/0.02083, allocations: 75.28 kB / 0.9869 GB, free: 5.121 MB / 0.8887 GB Notification: Performance of sort global known variables: time 1e-07/0.02083, allocations: 4 kB / 0.9869 GB, free: 5.117 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.0002559/0.02108, allocations: 8 kB / 0.9869 GB, free: 5.109 MB / 0.8887 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.0001918/0.02127, allocations: 107.2 kB / 0.987 GB, free: 4.992 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.001394/0.02267, allocations: 183.9 kB / 0.9872 GB, free: 4.812 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 4.689e-06/0.02267, allocations: 4 kB / 0.9872 GB, free: 4.809 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.000664/0.02334, allocations: 88.08 kB / 0.9872 GB, free: 4.723 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002224/0.02356, allocations: 5.875 kB / 0.9872 GB, free: 4.719 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001298/0.02486, allocations: 216.7 kB / 0.9875 GB, free: 4.48 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.952e-05/0.02493, allocations: 63.34 kB / 0.9875 GB, free: 4.398 MB / 0.8887 GB Notification: Performance of simCode: alias equations: time 0.000176/0.0251, allocations: 28 kB / 0.9875 GB, free: 4.371 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.552e-05/0.02518, allocations: 12.48 kB / 0.9876 GB, free: 4.359 MB / 0.8887 GB Notification: Performance of SimCode: time 4.11e-07/0.02518, allocations: 4 kB / 0.9876 GB, free: 4.355 MB / 0.8887 GB Notification: Performance of Templates: time 0.003431/0.02861, allocations: 0.8162 MB / 0.9884 GB, free: 3.547 MB / 0.8887 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe ; mkfifo Buildings_12_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe >> ../files/Buildings_12_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.sim & ./Buildings_12_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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: 7.739333420991898]