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.001918/0.001918, allocations: 80.41 kB / 20.23 MB, free: 4.199 MB / 18.57 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.002276/0.002276, allocations: 161.6 kB / 23.55 MB, free: 0.8906 MB / 18.57 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.498/1.498, allocations: 177.1 MB / 203.9 MB, free: 5.605 MB / 186.7 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.845/2.845, allocations: 377.8 MB / 0.6232 GB, free: 8.562 MB / 0.5886 GB " [Timeout remaining time 177] 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.353e-06/1.353e-06, allocations: 0 / 0.8109 GB, free: 2.051 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.404e-05/2.539e-05, allocations: 5.516 kB / 0.8109 GB, free: 2.047 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives): time 0.001614/0.00164, allocations: 0.5968 MB / 0.8114 GB, free: 1.469 MB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.001744/0.003384, allocations: 1.134 MB / 0.8126 GB, free: 328 kB / 0.7605 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.757e-05/0.003411, allocations: 0 / 0.8126 GB, free: 328 kB / 0.7605 GB Notification: Performance of NFTyping.typeComponents: time 1.087e-05/0.003422, allocations: 4.969 kB / 0.8126 GB, free: 324 kB / 0.7605 GB Notification: Performance of NFTyping.typeBindings: time 0.0002581/0.00368, allocations: 15.91 kB / 0.8126 GB, free: 308 kB / 0.7605 GB Notification: Performance of NFTyping.typeClassSections: time 3.677e-06/0.003684, allocations: 1.688 kB / 0.8126 GB, free: 308 kB / 0.7605 GB Notification: Performance of NFFlatten.flatten: time 3.661e-05/0.003721, allocations: 4 kB / 0.8126 GB, free: 304 kB / 0.7605 GB Notification: Performance of NFFlatten.resolveConnections: time 3.447e-05/0.003755, allocations: 0 / 0.8126 GB, free: 304 kB / 0.7605 GB Notification: Performance of NFEvalConstants.evaluate: time 2.392e-05/0.003779, allocations: 3.938 kB / 0.8126 GB, free: 300 kB / 0.7605 GB Notification: Performance of NFSimplifyModel.simplify: time 2.345e-05/0.003803, allocations: 4 kB / 0.8126 GB, free: 296 kB / 0.7605 GB Notification: Performance of NFPackage.collectConstants: time 7.905e-06/0.00381, allocations: 1.531 kB / 0.8126 GB, free: 296 kB / 0.7605 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000107/0.003917, allocations: 19.92 kB / 0.8126 GB, free: 276 kB / 0.7605 GB Notification: Performance of NFScalarize.scalarize: time 8.165e-06/0.003926, allocations: 0 / 0.8126 GB, free: 276 kB / 0.7605 GB Notification: Performance of NFVerifyModel.verify: time 2.03e-05/0.003946, allocations: 3.938 kB / 0.8126 GB, free: 272 kB / 0.7605 GB Notification: Performance of NFConvertDAE.convert: time 8.382e-05/0.00403, allocations: 25.5 kB / 0.8126 GB, free: 248 kB / 0.7605 GB Notification: Performance of FrontEnd - DAE generated: time 1.833e-06/0.004032, allocations: 0 / 0.8126 GB, free: 248 kB / 0.7605 GB Notification: Performance of FrontEnd: time 6.81e-07/0.004032, allocations: 0 / 0.8126 GB, free: 248 kB / 0.7605 GB Notification: Performance of Transformations before backend: time 3.557e-06/0.004036, allocations: 0 / 0.8126 GB, free: 248 kB / 0.7605 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.004343, allocations: 239.4 kB / 0.8129 GB, free: 15.98 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 3.68e-05/0.00438, allocations: 12.03 kB / 0.8129 GB, free: 15.97 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.443e-05/0.004434, allocations: 4.938 kB / 0.8129 GB, free: 15.96 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.847e-05/0.004533, allocations: 106.6 kB / 0.813 GB, free: 15.84 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.365e-05/0.004546, allocations: 4.375 kB / 0.813 GB, free: 15.83 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.399e-05/0.00457, allocations: 0.875 kB / 0.813 GB, free: 15.83 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.496e-05/0.004665, allocations: 38.78 kB / 0.813 GB, free: 15.79 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.074e-05/0.004676, allocations: 192 / 0.813 GB, free: 15.79 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.003e-05/0.004686, allocations: 5.156 kB / 0.813 GB, free: 15.79 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.172e-06/0.004692, allocations: 3.938 kB / 0.813 GB, free: 15.78 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.748e-05/0.00473, allocations: 5.156 kB / 0.813 GB, free: 15.78 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001422/0.004872, allocations: 97.38 kB / 0.8131 GB, free: 15.65 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001856/0.005057, allocations: 35.94 kB / 0.8132 GB, free: 15.61 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.314e-05/0.005081, allocations: 12.8 kB / 0.8132 GB, free: 15.59 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001211/0.005202, allocations: 8.078 kB / 0.8132 GB, free: 15.59 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.27e-05/0.005234, allocations: 34.56 kB / 0.8132 GB, free: 15.54 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=3): time 8.51e-07/0.005235, allocations: 1.75 kB / 0.8132 GB, free: 15.54 MB / 0.7761 GB Notification: Performance of matching and sorting (n=5): time 0.004363/0.009599, allocations: 0.5759 MB / 0.8138 GB, free: 15 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001315/0.00973, allocations: 51.41 kB / 0.8138 GB, free: 14.94 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.684e-05/0.009787, allocations: 89.86 kB / 0.8139 GB, free: 14.84 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 2.735e-05/0.009814, allocations: 26.3 kB / 0.8139 GB, free: 14.81 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 4.347e-05/0.009858, allocations: 80.95 kB / 0.814 GB, free: 14.73 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 4.621e-05/0.009904, allocations: 23.83 kB / 0.814 GB, free: 14.7 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.728e-05/0.009961, allocations: 14.56 kB / 0.8141 GB, free: 14.68 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001668/0.01013, allocations: 318.8 kB / 0.8144 GB, free: 14.36 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000626/0.01075, allocations: 83.95 kB / 0.8144 GB, free: 14.28 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006238/0.01138, allocations: 106.5 kB / 0.8145 GB, free: 14.17 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001211/0.01259, allocations: 186.4 kB / 0.8147 GB, free: 13.98 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.547e-06/0.01259, allocations: 3.984 kB / 0.8147 GB, free: 13.97 MB / 0.7761 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.001316/0.01391, allocations: 213.6 kB / 0.8149 GB, free: 13.76 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.773e-05/0.01393, allocations: 8 kB / 0.8149 GB, free: 13.75 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.06e-06/0.01393, allocations: 0 / 0.8149 GB, free: 13.75 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.862e-05/0.01395, allocations: 0 / 0.8149 GB, free: 13.75 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004116/0.01436, allocations: 56.36 kB / 0.815 GB, free: 13.7 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.536e-06/0.01437, allocations: 3.984 kB / 0.815 GB, free: 13.69 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003368/0.01471, allocations: 43.92 kB / 0.815 GB, free: 13.65 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.293e-05/0.01472, allocations: 0 / 0.815 GB, free: 13.65 MB / 0.7761 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.0001052/0.01483, allocations: 113.8 kB / 0.8151 GB, free: 13.53 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.956e-05/0.01486, allocations: 3.953 kB / 0.8151 GB, free: 13.52 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00141/0.01627, allocations: 241.2 kB / 0.8154 GB, free: 13.29 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.731e-06/0.01627, allocations: 3.984 kB / 0.8154 GB, free: 13.28 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.241e-06/0.01628, allocations: 3.938 kB / 0.8154 GB, free: 13.28 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.076e-06/0.01628, allocations: 0 / 0.8154 GB, free: 13.28 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001562/0.01784, allocations: 398.4 kB / 0.8158 GB, free: 12.85 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.394e-06/0.01785, allocations: 0 / 0.8158 GB, free: 12.85 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003889/0.01823, allocations: 51.97 kB / 0.8158 GB, free: 12.8 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.806e-06/0.01824, allocations: 3.938 kB / 0.8158 GB, free: 12.8 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.05e-05/0.01826, allocations: 7.984 kB / 0.8158 GB, free: 12.79 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.413e-06/0.01826, allocations: 4 kB / 0.8158 GB, free: 12.79 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.01827, allocations: 0 / 0.8158 GB, free: 12.79 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001342/0.01961, allocations: 307.4 kB / 0.8161 GB, free: 12.47 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 6.362e-06/0.01961, allocations: 0 / 0.8161 GB, free: 12.47 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.655e-05/0.01964, allocations: 3.938 kB / 0.8161 GB, free: 12.46 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003648/0.02001, allocations: 39.98 kB / 0.8162 GB, free: 12.43 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.772e-05/0.02002, allocations: 3.984 kB / 0.8162 GB, free: 12.42 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.279e-05/0.02004, allocations: 4 kB / 0.8162 GB, free: 12.42 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 4.312e-05/0.02008, allocations: 75.28 kB / 0.8162 GB, free: 12.34 MB / 0.7761 GB Notification: Performance of sort global known variables: time 6e-08/0.02008, allocations: 0 / 0.8162 GB, free: 12.34 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0002739/0.02035, allocations: 12 kB / 0.8163 GB, free: 12.33 MB / 0.7761 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.0002018/0.02055, allocations: 115.1 kB / 0.8164 GB, free: 12.21 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.001263/0.02182, allocations: 179.9 kB / 0.8165 GB, free: 12.04 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.02182, allocations: 0 / 0.8165 GB, free: 12.04 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 0.0006116/0.02243, allocations: 92.08 kB / 0.8166 GB, free: 11.95 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002306/0.02266, allocations: 7.922 kB / 0.8166 GB, free: 11.94 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001236/0.0239, allocations: 220.6 kB / 0.8168 GB, free: 11.7 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.429e-05/0.02397, allocations: 59.36 kB / 0.8169 GB, free: 11.62 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 0.0002028/0.02418, allocations: 31.92 kB / 0.8169 GB, free: 11.59 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.304e-05/0.02426, allocations: 20.48 kB / 0.8169 GB, free: 11.57 MB / 0.7761 GB Notification: Performance of SimCode: time 8.02e-07/0.02426, allocations: 0 / 0.8169 GB, free: 11.57 MB / 0.7761 GB Notification: Performance of Templates: time 0.003887/0.02815, allocations: 0.8347 MB / 0.8178 GB, free: 10.75 MB / 0.7761 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.7457723040133715]