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.0007588/0.0007588, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 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.0008112/0.0008112, allocations: 169.9 kB / 22.46 MB, free: 2.105 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 0.8914/0.8914, allocations: 177.1 MB / 202.8 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] 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 1.743/1.743, allocations: 377.8 MB / 0.6221 GB, free: 8.668 MB / 0.5886 GB " [Timeout remaining time 178] 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: "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives,fileNamePrefix="Buildings_12_Buildings_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives,fileNamePrefix="Buildings_12_Buildings_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.473e-06/1.473e-06, allocations: 0 / 0.981 GB, free: 2.539 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.196e-05/2.343e-05, allocations: 10.22 kB / 0.981 GB, free: 2.527 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives): time 0.001315/0.001339, allocations: 0.5903 MB / 0.9816 GB, free: 1.941 MB / 0.9323 GB Notification: Performance of NFInst.instExpressions: time 0.001197/0.002536, allocations: 1.132 MB / 0.9827 GB, free: 0.793 MB / 0.9323 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.657e-05/0.002562, allocations: 0 / 0.9827 GB, free: 0.793 MB / 0.9323 GB Notification: Performance of NFTyping.typeComponents: time 1.651e-05/0.002579, allocations: 0 / 0.9827 GB, free: 0.793 MB / 0.9323 GB Notification: Performance of NFTyping.typeBindings: time 0.0002592/0.002838, allocations: 19.86 kB / 0.9827 GB, free: 0.7734 MB / 0.9323 GB Notification: Performance of NFTyping.typeClassSections: time 3.727e-06/0.002842, allocations: 3.938 kB / 0.9827 GB, free: 0.7695 MB / 0.9323 GB Notification: Performance of NFFlatten.flatten: time 4.446e-05/0.002886, allocations: 7.984 kB / 0.9827 GB, free: 0.7617 MB / 0.9323 GB Notification: Performance of NFFlatten.resolveConnections: time 4.393e-05/0.00293, allocations: 0 / 0.9827 GB, free: 0.7617 MB / 0.9323 GB Notification: Performance of NFEvalConstants.evaluate: time 2.488e-05/0.002955, allocations: 4 kB / 0.9827 GB, free: 0.7578 MB / 0.9323 GB Notification: Performance of NFSimplifyModel.simplify: time 2.348e-05/0.002978, allocations: 3.984 kB / 0.9827 GB, free: 0.7539 MB / 0.9323 GB Notification: Performance of NFPackage.collectConstants: time 9.598e-06/0.002988, allocations: 0 / 0.9827 GB, free: 0.7539 MB / 0.9323 GB Notification: Performance of NFFlatten.collectFunctions: time 9.939e-05/0.003087, allocations: 23.88 kB / 0.9828 GB, free: 0.7305 MB / 0.9323 GB Notification: Performance of NFScalarize.scalarize: time 9.537e-06/0.003097, allocations: 0 / 0.9828 GB, free: 0.7305 MB / 0.9323 GB Notification: Performance of NFVerifyModel.verify: time 1.147e-05/0.003108, allocations: 0 / 0.9828 GB, free: 0.7305 MB / 0.9323 GB Notification: Performance of NFConvertDAE.convert: time 8.699e-05/0.003195, allocations: 15.97 kB / 0.9828 GB, free: 0.7148 MB / 0.9323 GB Notification: Performance of FrontEnd - DAE generated: time 1.834e-06/0.003197, allocations: 0 / 0.9828 GB, free: 0.7148 MB / 0.9323 GB Notification: Performance of FrontEnd: time 7.72e-07/0.003198, allocations: 0 / 0.9828 GB, free: 0.7148 MB / 0.9323 GB Notification: Performance of Transformations before backend: time 4.448e-06/0.003202, allocations: 0 / 0.9828 GB, free: 0.7148 MB / 0.9323 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.0002399/0.003442, allocations: 248.2 kB / 0.983 GB, free: 456 kB / 0.9323 GB Notification: Performance of prepare preOptimizeDAE: time 4.023e-05/0.003483, allocations: 12.03 kB / 0.983 GB, free: 444 kB / 0.9323 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.631e-05/0.003509, allocations: 30.75 kB / 0.9831 GB, free: 404 kB / 0.9323 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.424e-05/0.003533, allocations: 8.875 kB / 0.9831 GB, free: 396 kB / 0.9323 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.714e-05/0.00359, allocations: 109.8 kB / 0.9832 GB, free: 260 kB / 0.9323 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.308e-06/0.0036, allocations: 384 / 0.9832 GB, free: 260 kB / 0.9323 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.091e-05/0.00362, allocations: 4.359 kB / 0.9832 GB, free: 256 kB / 0.9323 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.171e-05/0.003712, allocations: 38.2 kB / 0.9832 GB, free: 212 kB / 0.9323 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.997e-06/0.003721, allocations: 192 / 0.9832 GB, free: 212 kB / 0.9323 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.318e-06/0.00373, allocations: 4.125 kB / 0.9832 GB, free: 208 kB / 0.9323 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.22e-06/0.003736, allocations: 4 kB / 0.9832 GB, free: 204 kB / 0.9323 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.077e-05/0.003776, allocations: 7.922 kB / 0.9832 GB, free: 196 kB / 0.9323 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001082/0.003885, allocations: 120.8 kB / 0.9833 GB, free: 32 kB / 0.9323 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001876/0.004072, allocations: 34.69 kB / 0.9834 GB, free: 15.98 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.659e-05/0.004089, allocations: 12.86 kB / 0.9834 GB, free: 15.97 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001054/0.004194, allocations: 8.078 kB / 0.9834 GB, free: 15.96 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.65e-05/0.004211, allocations: 34.5 kB / 0.9834 GB, free: 15.92 MB / 0.948 GB Notification: Performance of pre-optimization done (n=3): time 1.453e-06/0.004212, allocations: 0 / 0.9834 GB, free: 15.92 MB / 0.948 GB Notification: Performance of matching and sorting (n=5): time 0.002037/0.006249, allocations: 0.5792 MB / 0.984 GB, free: 15.33 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.239e-05/0.006282, allocations: 51.41 kB / 0.984 GB, free: 15.27 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.808e-05/0.00631, allocations: 89.86 kB / 0.9841 GB, free: 15.17 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 1.397e-05/0.006324, allocations: 29.7 kB / 0.9842 GB, free: 15.14 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 1.947e-05/0.006343, allocations: 84.14 kB / 0.9842 GB, free: 15.05 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 3.422e-05/0.006377, allocations: 11.91 kB / 0.9842 GB, free: 15.04 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.874e-05/0.006416, allocations: 21.7 kB / 0.9843 GB, free: 15.01 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 7.429e-05/0.00649, allocations: 310.8 kB / 0.9846 GB, free: 14.7 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002682/0.006759, allocations: 83.95 kB / 0.9846 GB, free: 14.62 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002594/0.007018, allocations: 102.5 kB / 0.9847 GB, free: 14.51 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005092/0.007527, allocations: 194.4 kB / 0.9849 GB, free: 14.31 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.007529, allocations: 0 / 0.9849 GB, free: 14.31 MB / 0.948 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0005449/0.008074, allocations: 209.6 kB / 0.9851 GB, free: 14.1 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.515e-05/0.008089, allocations: 4 kB / 0.9851 GB, free: 14.09 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.063e-06/0.008096, allocations: 7.938 kB / 0.9851 GB, free: 14.09 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.308e-05/0.008109, allocations: 0 / 0.9851 GB, free: 14.09 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001734/0.008283, allocations: 48 kB / 0.9852 GB, free: 14.04 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.941e-06/0.008289, allocations: 4 kB / 0.9852 GB, free: 14.04 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001447/0.008433, allocations: 47.97 kB / 0.9852 GB, free: 13.99 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.398e-06/0.008443, allocations: 0 / 0.9852 GB, free: 13.99 MB / 0.948 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 6.617e-05/0.008509, allocations: 113.8 kB / 0.9853 GB, free: 13.87 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.111e-05/0.00852, allocations: 3.938 kB / 0.9853 GB, free: 13.86 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006571/0.009177, allocations: 241.5 kB / 0.9856 GB, free: 13.62 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.13e-06/0.009182, allocations: 4 kB / 0.9856 GB, free: 13.62 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5e-06/0.009187, allocations: 0 / 0.9856 GB, free: 13.62 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.989e-06/0.009192, allocations: 3.984 kB / 0.9856 GB, free: 13.62 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008015/0.009994, allocations: 437.6 kB / 0.986 GB, free: 13.14 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.352e-06/0.01, allocations: 0 / 0.986 GB, free: 13.14 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001609/0.01016, allocations: 47.97 kB / 0.986 GB, free: 13.1 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.009e-06/0.01017, allocations: 4 kB / 0.9861 GB, free: 13.09 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.118e-05/0.01018, allocations: 0 / 0.9861 GB, free: 13.09 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.945e-06/0.01018, allocations: 3.984 kB / 0.9861 GB, free: 13.09 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.01018, allocations: 0 / 0.9861 GB, free: 13.09 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005751/0.01076, allocations: 299.4 kB / 0.9863 GB, free: 12.78 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 6.863e-06/0.01076, allocations: 3.984 kB / 0.9863 GB, free: 12.78 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.745e-05/0.01078, allocations: 7.938 kB / 0.9864 GB, free: 12.77 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001555/0.01094, allocations: 39.98 kB / 0.9864 GB, free: 12.73 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.668e-05/0.01095, allocations: 11.92 kB / 0.9864 GB, free: 12.72 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.703e-06/0.01096, allocations: 4 kB / 0.9864 GB, free: 12.71 MB / 0.948 GB Notification: Performance of sorting global known variables: time 2.112e-05/0.01098, allocations: 75.28 kB / 0.9865 GB, free: 12.64 MB / 0.948 GB Notification: Performance of sort global known variables: time 6.1e-08/0.01098, allocations: 0 / 0.9865 GB, free: 12.64 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.0001711/0.01115, allocations: 11.94 kB / 0.9865 GB, free: 12.63 MB / 0.948 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.0008517/0.012, allocations: 0.8379 MB / 0.9873 GB, free: 11.77 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.0005651/0.01257, allocations: 187.9 kB / 0.9875 GB, free: 11.58 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.01257, allocations: 0 / 0.9875 GB, free: 11.58 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.000252/0.01282, allocations: 84.08 kB / 0.9876 GB, free: 11.5 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001732/0.013, allocations: 4 kB / 0.9876 GB, free: 11.5 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000747/0.01374, allocations: 246.5 kB / 0.9878 GB, free: 11.21 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.529e-05/0.0138, allocations: 71.14 kB / 0.9879 GB, free: 11.12 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 0.0001175/0.01392, allocations: 28 kB / 0.9879 GB, free: 11.1 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.912e-05/0.01399, allocations: 20.48 kB / 0.9879 GB, free: 11.08 MB / 0.948 GB Notification: Performance of SimCode: time 1.352e-06/0.01399, allocations: 0 / 0.9879 GB, free: 11.08 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01867/0.03266, allocations: 2.279 MB / 0.9901 GB, free: 8.926 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.764/6.797, allocations: 12.91 kB / 0.9902 GB, free: 8.922 MB / 0.948 GB " [Timeout remaining time 293] (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 & python3 -m fmpy simulate --output-file Buildings_12_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives_res.csv --start-time -1 --stop-time 1 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 Buildings_12_Buildings_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives.fmu > Buildings_12_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives_res.csv","/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: 10.970326129347086]