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.00137/0.00137, allocations: 109.1 kB / 18.94 MB, free: 2.797 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.00162/0.00162, allocations: 216.4 kB / 22.25 MB, free: 5.215 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.52/1.52, allocations: 230.6 MB / 256 MB, free: 7.949 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.358/3.358, allocations: 0.505 GB / 0.8101 GB, free: 21.98 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.002082/0.002082, allocations: 67.59 kB / 1.177 GB, free: 16.94 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4097/0.4118, allocations: 180.2 MB / 1.353 GB, free: 8.352 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives): time 0.001896/0.4137, allocations: 0.5976 MB / 1.353 GB, free: 7.758 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001682/0.4153, allocations: 1.175 MB / 1.355 GB, free: 6.566 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.836e-05/0.4154, allocations: 0 / 1.355 GB, free: 6.566 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 1.586e-05/0.4154, allocations: 0 / 1.355 GB, free: 6.566 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.0002972/0.4157, allocations: 19.92 kB / 1.355 GB, free: 6.547 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 3.978e-06/0.4157, allocations: 0 / 1.355 GB, free: 6.547 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 5.277e-05/0.4158, allocations: 8 kB / 1.355 GB, free: 6.539 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 5.404e-05/0.4158, allocations: 0 / 1.355 GB, free: 6.539 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 2.117e-05/0.4158, allocations: 7.969 kB / 1.355 GB, free: 6.531 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 3.658e-05/0.4159, allocations: 15.88 kB / 1.355 GB, free: 6.516 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 9.478e-06/0.4159, allocations: 3.938 kB / 1.355 GB, free: 6.512 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001252/0.416, allocations: 15.98 kB / 1.355 GB, free: 6.496 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 6.492e-06/0.416, allocations: 0 / 1.355 GB, free: 6.496 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 1.624e-05/0.416, allocations: 0 / 1.355 GB, free: 6.496 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0001014/0.4161, allocations: 28.06 kB / 1.355 GB, free: 6.469 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 9.789e-06/0.4161, allocations: 4 kB / 1.355 GB, free: 6.465 MB / 1.045 GB Notification: Performance of FrontEnd: time 2.044e-06/0.4161, allocations: 0 / 1.355 GB, free: 6.465 MB / 1.045 GB Notification: Performance of Transformations before backend: time 6.943e-06/0.4161, allocations: 0 / 1.355 GB, free: 6.465 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.0003215/0.4165, allocations: 238.4 kB / 1.355 GB, free: 6.203 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 3.97e-05/0.4165, allocations: 12.03 kB / 1.355 GB, free: 6.191 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.658e-05/0.4166, allocations: 38.75 kB / 1.355 GB, free: 6.145 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002392/0.4168, allocations: 12.88 kB / 1.355 GB, free: 6.133 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000105/0.4169, allocations: 106.5 kB / 1.355 GB, free: 6.004 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.069e-05/0.4169, allocations: 384 / 1.355 GB, free: 6.004 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.895e-05/0.4169, allocations: 384 / 1.355 GB, free: 6.004 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001103/0.417, allocations: 45.8 kB / 1.355 GB, free: 5.953 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.095e-05/0.417, allocations: 4 kB / 1.355 GB, free: 5.949 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.794e-06/0.4171, allocations: 0 / 1.355 GB, free: 5.949 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.737e-06/0.4171, allocations: 0 / 1.355 GB, free: 5.949 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.096e-05/0.4171, allocations: 11.94 kB / 1.355 GB, free: 5.938 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001485/0.4172, allocations: 124.8 kB / 1.355 GB, free: 5.773 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001768/0.4174, allocations: 34.61 kB / 1.355 GB, free: 5.73 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.103e-05/0.4174, allocations: 4.859 kB / 1.355 GB, free: 5.723 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 1.507e-05/0.4175, allocations: 4 kB / 1.355 GB, free: 5.719 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.76e-05/0.4175, allocations: 34.5 kB / 1.355 GB, free: 5.676 MB / 1.045 GB Notification: Performance of pre-optimization done (n=3): time 9.92e-07/0.4175, allocations: 4 kB / 1.355 GB, free: 5.672 MB / 1.045 GB Notification: Performance of matching and sorting (n=5): time 0.00408/0.4216, allocations: 0.5326 MB / 1.356 GB, free: 5.133 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.686e-05/0.4216, allocations: 55.41 kB / 1.356 GB, free: 5.066 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.388e-05/0.4216, allocations: 93.8 kB / 1.356 GB, free: 4.965 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 2.427e-05/0.4217, allocations: 29.7 kB / 1.356 GB, free: 4.93 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 3.27e-05/0.4217, allocations: 80.14 kB / 1.356 GB, free: 4.848 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 4.894e-05/0.4218, allocations: 23.78 kB / 1.356 GB, free: 4.824 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.997e-05/0.4218, allocations: 17.72 kB / 1.356 GB, free: 4.801 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001304/0.4219, allocations: 318.8 kB / 1.356 GB, free: 4.48 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000606/0.4226, allocations: 79.95 kB / 1.357 GB, free: 4.402 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006093/0.4232, allocations: 106.5 kB / 1.357 GB, free: 4.289 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001184/0.4243, allocations: 194.4 kB / 1.357 GB, free: 4.09 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.222e-06/0.4243, allocations: 0 / 1.357 GB, free: 4.09 MB / 1.045 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.001299/0.4256, allocations: 217.5 kB / 1.357 GB, free: 3.871 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.921e-05/0.4257, allocations: 7.938 kB / 1.357 GB, free: 3.863 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.524e-06/0.4257, allocations: 0 / 1.357 GB, free: 3.863 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.126e-05/0.4257, allocations: 7.938 kB / 1.357 GB, free: 3.855 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004265/0.4261, allocations: 48 kB / 1.357 GB, free: 3.809 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.023e-06/0.4261, allocations: 0 / 1.357 GB, free: 3.809 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003584/0.4265, allocations: 39.98 kB / 1.357 GB, free: 3.77 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.915e-05/0.4265, allocations: 7.984 kB / 1.357 GB, free: 3.762 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.0001247/0.4266, allocations: 121.7 kB / 1.357 GB, free: 3.633 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.605e-05/0.4267, allocations: 7.938 kB / 1.357 GB, free: 3.625 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.573e-05/0.4267, allocations: 12.02 kB / 1.357 GB, free: 3.613 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.785e-06/0.4267, allocations: 192 / 1.357 GB, free: 3.613 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.823e-06/0.4267, allocations: 4 kB / 1.357 GB, free: 3.609 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.19e-06/0.4267, allocations: 3.984 kB / 1.357 GB, free: 3.605 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001587/0.4283, allocations: 437.4 kB / 1.358 GB, free: 3.129 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.4283, allocations: 0 / 1.358 GB, free: 3.129 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004088/0.4287, allocations: 47.97 kB / 1.358 GB, free: 3.082 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.026e-06/0.4287, allocations: 0 / 1.358 GB, free: 3.082 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.593e-05/0.4288, allocations: 7.984 kB / 1.358 GB, free: 3.074 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.4288, allocations: 4 kB / 1.358 GB, free: 3.07 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.4288, allocations: 0 / 1.358 GB, free: 3.07 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001271/0.43, allocations: 307.3 kB / 1.358 GB, free: 2.754 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 7.694e-06/0.43, allocations: 0 / 1.358 GB, free: 2.754 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.428e-05/0.4301, allocations: 0 / 1.358 GB, free: 2.754 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003745/0.4304, allocations: 43.98 kB / 1.358 GB, free: 2.711 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.786e-05/0.4304, allocations: 3.984 kB / 1.358 GB, free: 2.707 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.078e-05/0.4305, allocations: 4 kB / 1.358 GB, free: 2.703 MB / 1.045 GB Notification: Performance of sorting global known variables: time 3.769e-05/0.4305, allocations: 79.28 kB / 1.358 GB, free: 2.625 MB / 1.045 GB Notification: Performance of sort global known variables: time 7e-08/0.4305, allocations: 0 / 1.358 GB, free: 2.625 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0002451/0.4307, allocations: 8 kB / 1.358 GB, free: 2.617 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.001637/0.4324, allocations: 0.8373 MB / 1.359 GB, free: 1.75 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.001244/0.4336, allocations: 176 kB / 1.359 GB, free: 1.578 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.4336, allocations: 0 / 1.359 GB, free: 1.578 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0005911/0.4342, allocations: 96.02 kB / 1.359 GB, free: 1.484 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000227/0.4344, allocations: 0 / 1.359 GB, free: 1.484 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001368/0.4358, allocations: 254.4 kB / 1.36 GB, free: 1.195 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000308/0.4361, allocations: 0.6729 MB / 1.36 GB, free: 0.4961 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 0.0001825/0.4363, allocations: 35.94 kB / 1.36 GB, free: 472 kB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001018/0.4364, allocations: 15.42 kB / 1.36 GB, free: 456 kB / 1.045 GB Notification: Performance of SimCode: time 4.51e-07/0.4364, allocations: 0 / 1.36 GB, free: 456 kB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02881/0.4652, allocations: 1.707 MB / 1.362 GB, free: 14.86 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.68/11.14, allocations: 8 kB / 1.362 GB, free: 14.86 MB / 1.061 GB " [Timeout remaining time 289] (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: 18.34459784899991]