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.002243/0.002243, allocations: 106.5 kB / 16.45 MB, free: 6.453 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.002058/0.002058, allocations: 213.7 kB / 19.43 MB, free: 3.625 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.541/1.541, allocations: 230.6 MB / 252.8 MB, free: 8.922 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.384/3.384, allocations: 0.505 GB / 0.8066 GB, free: 23.1 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: "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives",fmuType="me",version="2.0",platforms={"static"}) [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.002725/0.002725, allocations: 71.67 kB / 1.172 GB, free: 17.42 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.384/0.3867, allocations: 180.2 MB / 1.348 GB, free: 9.941 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives): time 0.002286/0.389, allocations: 0.5874 MB / 1.348 GB, free: 9.355 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001855/0.3909, allocations: 1.167 MB / 1.35 GB, free: 8.172 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.057e-05/0.3909, allocations: 0 / 1.35 GB, free: 8.172 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 1.288e-05/0.3909, allocations: 0 / 1.35 GB, free: 8.172 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.0002461/0.3912, allocations: 19.92 kB / 1.35 GB, free: 8.152 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 3.266e-06/0.3912, allocations: 0 / 1.35 GB, free: 8.152 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 4.78e-05/0.3912, allocations: 11.94 kB / 1.35 GB, free: 8.141 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 5.467e-05/0.3913, allocations: 7.984 kB / 1.35 GB, free: 8.133 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 1.378e-05/0.3913, allocations: 0 / 1.35 GB, free: 8.133 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 2.611e-05/0.3913, allocations: 7.938 kB / 1.35 GB, free: 8.125 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 8.095e-06/0.3913, allocations: 0 / 1.35 GB, free: 8.125 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001161/0.3914, allocations: 23.91 kB / 1.35 GB, free: 8.102 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 6.011e-06/0.3914, allocations: 0 / 1.35 GB, free: 8.102 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 1.346e-05/0.3914, allocations: 0 / 1.35 GB, free: 8.102 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 8.702e-05/0.3915, allocations: 20.2 kB / 1.35 GB, free: 8.082 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 4.499e-06/0.3915, allocations: 0 / 1.35 GB, free: 8.082 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.222e-06/0.3915, allocations: 0 / 1.35 GB, free: 8.082 MB / 1.045 GB Notification: Performance of Transformations before backend: time 4.558e-06/0.3915, allocations: 0 / 1.35 GB, free: 8.082 MB / 1.045 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.0003194/0.3919, allocations: 323.5 kB / 1.35 GB, free: 7.719 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.34e-05/0.3919, allocations: 11.98 kB / 1.35 GB, free: 7.707 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.197e-05/0.3919, allocations: 38.75 kB / 1.35 GB, free: 7.66 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002397/0.3922, allocations: 12.88 kB / 1.35 GB, free: 7.648 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000119/0.3923, allocations: 168.4 kB / 1.35 GB, free: 7.445 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.714e-06/0.3923, allocations: 384 / 1.35 GB, free: 7.445 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.513e-05/0.3923, allocations: 4.375 kB / 1.35 GB, free: 7.441 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001111/0.3924, allocations: 45.75 kB / 1.35 GB, free: 7.391 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.024e-05/0.3925, allocations: 0 / 1.35 GB, free: 7.391 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.086e-05/0.3925, allocations: 8 kB / 1.35 GB, free: 7.383 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.458e-06/0.3925, allocations: 0 / 1.35 GB, free: 7.383 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.351e-05/0.3925, allocations: 7.984 kB / 1.35 GB, free: 7.375 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001647/0.3927, allocations: 149.7 kB / 1.35 GB, free: 7.18 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001716/0.3929, allocations: 26.61 kB / 1.35 GB, free: 7.145 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.55e-05/0.3929, allocations: 20.8 kB / 1.35 GB, free: 7.121 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 1.72e-05/0.3929, allocations: 0 / 1.35 GB, free: 7.121 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.684e-05/0.3929, allocations: 42.5 kB / 1.35 GB, free: 7.07 MB / 1.045 GB Notification: Performance of pre-optimization done (n=3): time 8.42e-07/0.3929, allocations: 0 / 1.35 GB, free: 7.07 MB / 1.045 GB Notification: Performance of matching and sorting (n=5): time 0.004238/0.3972, allocations: 0.5443 MB / 1.351 GB, free: 6.52 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.773e-05/0.3972, allocations: 51.41 kB / 1.351 GB, free: 6.457 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.615e-05/0.3973, allocations: 89.86 kB / 1.351 GB, free: 6.359 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 2.794e-05/0.3973, allocations: 25.7 kB / 1.351 GB, free: 6.328 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 4.622e-05/0.3974, allocations: 80.14 kB / 1.351 GB, free: 6.246 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 6.306e-05/0.3974, allocations: 23.8 kB / 1.351 GB, free: 6.223 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.606e-05/0.3975, allocations: 25.64 kB / 1.351 GB, free: 6.191 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001683/0.3977, allocations: 310.8 kB / 1.352 GB, free: 5.879 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006395/0.3983, allocations: 83.95 kB / 1.352 GB, free: 5.797 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006388/0.399, allocations: 102.5 kB / 1.352 GB, free: 5.688 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001245/0.4002, allocations: 194.4 kB / 1.352 GB, free: 5.488 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.092e-06/0.4002, allocations: 0 / 1.352 GB, free: 5.488 MB / 1.045 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.001385/0.4016, allocations: 217.5 kB / 1.352 GB, free: 5.27 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 2.151e-05/0.4016, allocations: 8 kB / 1.352 GB, free: 5.262 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.394e-06/0.4016, allocations: 432 / 1.352 GB, free: 5.262 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.628e-05/0.4016, allocations: 0 / 1.352 GB, free: 5.262 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004394/0.4021, allocations: 52 kB / 1.352 GB, free: 5.211 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.386e-06/0.4021, allocations: 3.938 kB / 1.352 GB, free: 5.207 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003666/0.4025, allocations: 43.97 kB / 1.352 GB, free: 5.164 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.011e-05/0.4025, allocations: 4 kB / 1.352 GB, free: 5.16 MB / 1.045 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.0001115/0.4026, allocations: 117.8 kB / 1.352 GB, free: 5.035 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.259e-05/0.4026, allocations: 3.938 kB / 1.352 GB, free: 5.031 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.613e-05/0.4027, allocations: 19.55 kB / 1.352 GB, free: 5.008 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.885e-06/0.4027, allocations: 0 / 1.352 GB, free: 5.008 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.488e-06/0.4027, allocations: 0 / 1.352 GB, free: 5.008 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.37e-06/0.4027, allocations: 3.984 kB / 1.352 GB, free: 5.004 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001652/0.4044, allocations: 454.4 kB / 1.353 GB, free: 4.504 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.394e-06/0.4044, allocations: 0 / 1.353 GB, free: 4.504 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004121/0.4048, allocations: 56.16 kB / 1.353 GB, free: 4.449 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.176e-06/0.4048, allocations: 0 / 1.353 GB, free: 4.449 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.699e-05/0.4048, allocations: 8 kB / 1.353 GB, free: 4.441 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.723e-06/0.4048, allocations: 0 / 1.353 GB, free: 4.441 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.4048, allocations: 4 kB / 1.353 GB, free: 4.438 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001372/0.4062, allocations: 299.4 kB / 1.353 GB, free: 4.129 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 4.334e-05/0.4062, allocations: 81.11 kB / 1.353 GB, free: 4.031 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.132e-05/0.4062, allocations: 0 / 1.353 GB, free: 4.031 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000393/0.4066, allocations: 43.97 kB / 1.353 GB, free: 3.988 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.006e-05/0.4066, allocations: 4 kB / 1.353 GB, free: 3.984 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.164e-05/0.4067, allocations: 4 kB / 1.353 GB, free: 3.98 MB / 1.045 GB Notification: Performance of sorting global known variables: time 3.648e-05/0.4067, allocations: 79.28 kB / 1.353 GB, free: 3.902 MB / 1.045 GB Notification: Performance of sort global known variables: time 6e-08/0.4067, allocations: 0 / 1.353 GB, free: 3.902 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.000252/0.4069, allocations: 8 kB / 1.353 GB, free: 3.895 MB / 1.045 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.00177/0.4087, allocations: 0.8412 MB / 1.354 GB, free: 3.023 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.001356/0.4101, allocations: 179.9 kB / 1.354 GB, free: 2.848 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.4101, allocations: 0 / 1.354 GB, free: 2.848 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0006447/0.4107, allocations: 92.06 kB / 1.354 GB, free: 2.758 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002305/0.4109, allocations: 7.938 kB / 1.354 GB, free: 2.75 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001464/0.4124, allocations: 250.4 kB / 1.355 GB, free: 2.465 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003195/0.4127, allocations: 0.6768 MB / 1.355 GB, free: 1.762 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 0.000204/0.4129, allocations: 32 kB / 1.355 GB, free: 1.73 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.124e-05/0.413, allocations: 11.44 kB / 1.355 GB, free: 1.719 MB / 1.045 GB Notification: Performance of SimCode: time 4.41e-07/0.413, allocations: 0 / 1.355 GB, free: 1.719 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02674/0.4398, allocations: 1.627 MB / 1.357 GB, free: 232 kB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.023/8.462, allocations: 14.78 kB / 1.357 GB, free: 224 kB / 1.045 GB " [Timeout remaining time 291] (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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives_res.csv --start-time -1 --stop-time 1 --timeout 800 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 Buildings_latest_Buildings_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives.fmu > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives.csv","/var/lib/jenkins1/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: 15.956327451160178]