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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001856/0.001856, allocations: 110 kB / 18.94 MB, free: 2.949 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002297/0.002297, allocations: 185.5 kB / 22.22 MB, free: 5.137 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.451/1.451, allocations: 225.6 MB / 251 MB, free: 13.03 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-master/package.mo): time 3.062/3.062, allocations: 495.7 MB / 0.7831 GB, free: 33.72 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 12.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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 0.002024/0.002024, allocations: 65.47 kB / 1.137 GB, free: 33.77 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3169/0.319, allocations: 173.6 MB / 1.307 GB, free: 1.898 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives): time 0.00191/0.3209, allocations: 0.6022 MB / 1.308 GB, free: 1.297 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001532/0.3224, allocations: 1.116 MB / 1.309 GB, free: 168 kB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.68e-05/0.3224, allocations: 0 / 1.309 GB, free: 168 kB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 1.945e-05/0.3225, allocations: 3.938 kB / 1.309 GB, free: 164 kB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.0002278/0.3227, allocations: 19.92 kB / 1.309 GB, free: 144 kB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 3.998e-06/0.3227, allocations: 0 / 1.309 GB, free: 144 kB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 4.119e-05/0.3227, allocations: 4 kB / 1.309 GB, free: 140 kB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.743e-05/0.3228, allocations: 7.984 kB / 1.309 GB, free: 132 kB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 1.39e-05/0.3228, allocations: 3.938 kB / 1.309 GB, free: 128 kB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 2.351e-05/0.3228, allocations: 3.984 kB / 1.309 GB, free: 124 kB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 7.234e-06/0.3228, allocations: 0 / 1.309 GB, free: 124 kB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001145/0.3229, allocations: 19.92 kB / 1.309 GB, free: 104 kB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 8.185e-06/0.3229, allocations: 4 kB / 1.309 GB, free: 100 kB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 1.541e-05/0.323, allocations: 7.938 kB / 1.309 GB, free: 92 kB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 8.766e-05/0.3231, allocations: 15.91 kB / 1.309 GB, free: 76 kB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.3231, allocations: 0 / 1.309 GB, free: 76 kB / 0.9981 GB Notification: Performance of FrontEnd: time 1.963e-06/0.3231, allocations: 4 kB / 1.309 GB, free: 72 kB / 0.9981 GB Notification: Performance of Transformations before backend: time 5.31e-06/0.3231, allocations: 0 / 1.309 GB, free: 72 kB / 0.9981 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.0003131/0.3234, allocations: 246.4 kB / 1.309 GB, free: 15.8 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 3.721e-05/0.3234, allocations: 8.922 kB / 1.309 GB, free: 15.79 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.119e-05/0.3234, allocations: 0.9375 kB / 1.309 GB, free: 15.79 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.598e-05/0.3235, allocations: 102.5 kB / 1.309 GB, free: 15.67 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.095e-06/0.3235, allocations: 8.312 kB / 1.309 GB, free: 15.66 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.767e-05/0.3236, allocations: 4.359 kB / 1.309 GB, free: 15.66 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000118/0.3237, allocations: 42 kB / 1.309 GB, free: 15.61 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.065e-05/0.3237, allocations: 4 kB / 1.309 GB, free: 15.61 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.717e-06/0.3237, allocations: 0 / 1.309 GB, free: 15.61 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.769e-06/0.3237, allocations: 0 / 1.309 GB, free: 15.61 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.667e-05/0.3237, allocations: 4 kB / 1.309 GB, free: 15.6 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001649/0.3239, allocations: 124.8 kB / 1.309 GB, free: 15.44 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001967/0.3241, allocations: 38.55 kB / 1.309 GB, free: 15.39 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.196e-05/0.3241, allocations: 8.859 kB / 1.309 GB, free: 15.38 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001248/0.3243, allocations: 8 kB / 1.309 GB, free: 15.37 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.781e-05/0.3243, allocations: 38.44 kB / 1.309 GB, free: 15.32 MB / 1.014 GB Notification: Performance of pre-optimization done (n=3): time 1.162e-06/0.3243, allocations: 0 / 1.309 GB, free: 15.32 MB / 1.014 GB Notification: Performance of matching and sorting (n=5): time 0.004546/0.3288, allocations: 0.5677 MB / 1.31 GB, free: 14.75 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.857e-05/0.3289, allocations: 55.34 kB / 1.31 GB, free: 14.68 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.796e-05/0.3289, allocations: 89.86 kB / 1.31 GB, free: 14.59 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 2.675e-05/0.3289, allocations: 37.69 kB / 1.31 GB, free: 14.54 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 3.155e-05/0.329, allocations: 84.14 kB / 1.31 GB, free: 14.46 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 4.645e-05/0.329, allocations: 11.84 kB / 1.31 GB, free: 14.45 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.518e-05/0.3291, allocations: 17.72 kB / 1.31 GB, free: 14.42 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001363/0.3292, allocations: 318.8 kB / 1.311 GB, free: 14.1 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006193/0.3298, allocations: 83.95 kB / 1.311 GB, free: 14.02 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006333/0.3305, allocations: 102.5 kB / 1.311 GB, free: 13.91 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001239/0.3317, allocations: 190.4 kB / 1.311 GB, free: 13.71 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.3317, allocations: 0 / 1.311 GB, free: 13.71 MB / 1.014 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.001337/0.333, allocations: 217.5 kB / 1.311 GB, free: 13.5 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 1.632e-05/0.3331, allocations: 4 kB / 1.311 GB, free: 13.49 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.484e-06/0.3331, allocations: 4 kB / 1.311 GB, free: 13.49 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.544e-05/0.3331, allocations: 0 / 1.311 GB, free: 13.49 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004193/0.3335, allocations: 48 kB / 1.311 GB, free: 13.44 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.719e-06/0.3335, allocations: 11.92 kB / 1.311 GB, free: 13.43 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003688/0.3339, allocations: 39.98 kB / 1.311 GB, free: 13.39 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.643e-05/0.3339, allocations: 7.984 kB / 1.311 GB, free: 13.38 MB / 1.014 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.938e-05/0.334, allocations: 113.8 kB / 1.311 GB, free: 13.26 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.33e-05/0.334, allocations: 3.938 kB / 1.311 GB, free: 13.26 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001426/0.3354, allocations: 237.1 kB / 1.312 GB, free: 13.02 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.166e-06/0.3354, allocations: 0 / 1.312 GB, free: 13.02 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.3355, allocations: 4.25 kB / 1.312 GB, free: 13.02 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.895e-06/0.3355, allocations: 0 / 1.312 GB, free: 13.02 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001591/0.337, allocations: 433.4 kB / 1.312 GB, free: 12.54 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.337, allocations: 4 kB / 1.312 GB, free: 12.54 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004017/0.3375, allocations: 44.39 kB / 1.312 GB, free: 12.5 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.731e-06/0.3375, allocations: 4 kB / 1.312 GB, free: 12.49 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.572e-05/0.3375, allocations: 4 kB / 1.312 GB, free: 12.49 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.3375, allocations: 0 / 1.312 GB, free: 12.49 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.3375, allocations: 0 / 1.312 GB, free: 12.49 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001354/0.3388, allocations: 307.3 kB / 1.312 GB, free: 12.17 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 8.897e-06/0.3388, allocations: 3.984 kB / 1.312 GB, free: 12.17 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.505e-05/0.3389, allocations: 4 kB / 1.312 GB, free: 12.16 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003863/0.3392, allocations: 43.97 kB / 1.312 GB, free: 12.12 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.911e-05/0.3393, allocations: 7.938 kB / 1.312 GB, free: 12.11 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.35e-05/0.3393, allocations: 4 kB / 1.312 GB, free: 12.11 MB / 1.014 GB Notification: Performance of sorting global known variables: time 3.588e-05/0.3393, allocations: 75.28 kB / 1.312 GB, free: 12.04 MB / 1.014 GB Notification: Performance of sort global known variables: time 8e-08/0.3393, allocations: 3.938 kB / 1.312 GB, free: 12.03 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.0002554/0.3396, allocations: 11.98 kB / 1.312 GB, free: 12.02 MB / 1.014 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.0001698/0.3397, allocations: 112 kB / 1.313 GB, free: 11.9 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.001337/0.3411, allocations: 187.8 kB / 1.313 GB, free: 11.71 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.3411, allocations: 0 / 1.313 GB, free: 11.71 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0006238/0.3417, allocations: 88.06 kB / 1.313 GB, free: 11.63 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002142/0.3419, allocations: 4 kB / 1.313 GB, free: 11.62 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00119/0.3431, allocations: 212.8 kB / 1.313 GB, free: 11.39 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002909/0.3434, allocations: 0.6806 MB / 1.314 GB, free: 10.68 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.0001764/0.3436, allocations: 28 kB / 1.314 GB, free: 10.66 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.591e-05/0.3436, allocations: 11.44 kB / 1.314 GB, free: 10.64 MB / 1.014 GB Notification: Performance of SimCode: time 3.7e-07/0.3436, allocations: 0 / 1.314 GB, free: 10.64 MB / 1.014 GB Notification: Performance of Templates: time 0.003152/0.3468, allocations: 0.8301 MB / 1.315 GB, free: 9.816 MB / 1.014 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.625545781105757]