Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Utilities.Math.Examples.SmoothHeaviside.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.0008211/0.0008211, allocations: 68.47 kB / 19.17 MB, free: 0.7344 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.0008079/0.0008079, allocations: 173.9 kB / 22.46 MB, free: 2.09 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.8927/0.8927, allocations: 177.1 MB / 202.8 MB, free: 5.75 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.696/1.696, allocations: 377.9 MB / 0.6221 GB, free: 8.637 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.Examples.SmoothHeaviside,fileNamePrefix="Buildings_12_Buildings_Utilities_Math_Examples_SmoothHeaviside",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.SmoothHeaviside,fileNamePrefix="Buildings_12_Buildings_Utilities_Math_Examples_SmoothHeaviside",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.753e-06/1.753e-06, allocations: 0 / 0.981 GB, free: 2.559 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.854e-05/2.03e-05, allocations: 12.75 kB / 0.981 GB, free: 2.547 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothHeaviside): time 0.00177/0.00179, allocations: 1.456 MB / 0.9824 GB, free: 1.082 MB / 0.9323 GB Notification: Performance of NFInst.instExpressions: time 0.0005761/0.002366, allocations: 478.7 kB / 0.9828 GB, free: 0.6094 MB / 0.9323 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.945e-05/0.002396, allocations: 0 / 0.9828 GB, free: 0.6094 MB / 0.9323 GB Notification: Performance of NFTyping.typeComponents: time 2.584e-05/0.002422, allocations: 11.92 kB / 0.9829 GB, free: 0.5977 MB / 0.9323 GB Notification: Performance of NFTyping.typeBindings: time 5.429e-05/0.002476, allocations: 0 / 0.9829 GB, free: 0.5977 MB / 0.9323 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002079/0.002684, allocations: 23.86 kB / 0.9829 GB, free: 0.5742 MB / 0.9323 GB Notification: Performance of NFFlatten.flatten: time 6.824e-05/0.002752, allocations: 31.84 kB / 0.9829 GB, free: 0.543 MB / 0.9323 GB Notification: Performance of NFFlatten.resolveConnections: time 9.093e-05/0.002843, allocations: 8 kB / 0.9829 GB, free: 0.5352 MB / 0.9323 GB Notification: Performance of NFEvalConstants.evaluate: time 6.782e-05/0.002911, allocations: 11.98 kB / 0.9829 GB, free: 0.5234 MB / 0.9323 GB Notification: Performance of NFSimplifyModel.simplify: time 3.214e-05/0.002943, allocations: 4 kB / 0.9829 GB, free: 0.5195 MB / 0.9323 GB Notification: Performance of NFPackage.collectConstants: time 1.249e-05/0.002955, allocations: 4 kB / 0.9829 GB, free: 0.5156 MB / 0.9323 GB Notification: Performance of NFFlatten.collectFunctions: time 5.88e-05/0.003014, allocations: 23.92 kB / 0.983 GB, free: 0.4922 MB / 0.9323 GB Notification: Performance of NFScalarize.scalarize: time 1.356e-05/0.003028, allocations: 0 / 0.983 GB, free: 0.4922 MB / 0.9323 GB Notification: Performance of NFVerifyModel.verify: time 2.026e-05/0.003048, allocations: 11.97 kB / 0.983 GB, free: 492 kB / 0.9323 GB Notification: Performance of NFConvertDAE.convert: time 0.0001074/0.003155, allocations: 27.97 kB / 0.983 GB, free: 464 kB / 0.9323 GB Notification: Performance of FrontEnd - DAE generated: time 1.894e-06/0.003157, allocations: 0 / 0.983 GB, free: 464 kB / 0.9323 GB Notification: Performance of FrontEnd: time 9.22e-07/0.003158, allocations: 0 / 0.983 GB, free: 464 kB / 0.9323 GB Notification: Performance of Transformations before backend: time 4.168e-06/0.003162, allocations: 3.938 kB / 0.983 GB, free: 460 kB / 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.0004987/0.003661, allocations: 266.3 kB / 0.9833 GB, free: 164 kB / 0.9323 GB Notification: Performance of prepare preOptimizeDAE: time 3.732e-05/0.003698, allocations: 8.031 kB / 0.9833 GB, free: 156 kB / 0.9323 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.721e-05/0.003726, allocations: 34.75 kB / 0.9833 GB, free: 112 kB / 0.9323 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.155e-05/0.003747, allocations: 8.891 kB / 0.9833 GB, free: 104 kB / 0.9323 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.457e-05/0.003832, allocations: 125.7 kB / 0.9834 GB, free: 15.95 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.816e-06/0.003841, allocations: 4.375 kB / 0.9834 GB, free: 15.95 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.793e-06/0.003847, allocations: 384 / 0.9834 GB, free: 15.95 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000119/0.003966, allocations: 50.23 kB / 0.9835 GB, free: 15.89 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.893e-06/0.003973, allocations: 192 / 0.9835 GB, free: 15.89 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.167e-06/0.003982, allocations: 4.125 kB / 0.9835 GB, free: 15.89 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.117e-06/0.003987, allocations: 0 / 0.9835 GB, free: 15.89 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.324e-05/0.00408, allocations: 35.97 kB / 0.9835 GB, free: 15.86 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002516/0.004331, allocations: 216 kB / 0.9837 GB, free: 15.6 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 7.329e-05/0.004405, allocations: 34.56 kB / 0.9838 GB, free: 15.56 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.534e-05/0.00445, allocations: 36.77 kB / 0.9838 GB, free: 15.52 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 7.069e-05/0.004521, allocations: 4 kB / 0.9838 GB, free: 15.52 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.687e-05/0.004538, allocations: 30.56 kB / 0.9838 GB, free: 15.48 MB / 0.948 GB Notification: Performance of pre-optimization done (n=2): time 9.02e-07/0.004539, allocations: 0 / 0.9838 GB, free: 15.48 MB / 0.948 GB Notification: Performance of matching and sorting (n=2): time 0.0002121/0.004751, allocations: 93.53 kB / 0.9839 GB, free: 15.38 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.51e-05/0.004776, allocations: 51.41 kB / 0.984 GB, free: 15.32 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.359e-05/0.004829, allocations: 105.8 kB / 0.9841 GB, free: 15.2 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 8.265e-06/0.004838, allocations: 25.7 kB / 0.9841 GB, free: 15.17 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 3.23e-05/0.00487, allocations: 84.12 kB / 0.9842 GB, free: 15.09 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 1.536e-05/0.004885, allocations: 7.953 kB / 0.9842 GB, free: 15.08 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.411e-05/0.004909, allocations: 13.72 kB / 0.9842 GB, free: 15.06 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 7.105e-05/0.00498, allocations: 318.8 kB / 0.9845 GB, free: 14.74 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.591e-05/0.005026, allocations: 20.11 kB / 0.9845 GB, free: 14.72 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.455e-05/0.005061, allocations: 12 kB / 0.9845 GB, free: 14.71 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.507e-05/0.005136, allocations: 36.83 kB / 0.9846 GB, free: 14.67 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.005137, allocations: 0 / 0.9846 GB, free: 14.67 MB / 0.948 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001026/0.00524, allocations: 81.59 kB / 0.9846 GB, free: 14.58 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.106e-05/0.005251, allocations: 4 kB / 0.9846 GB, free: 14.58 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.949e-06/0.005256, allocations: 4 kB / 0.9846 GB, free: 14.57 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.093e-05/0.005267, allocations: 3.938 kB / 0.9846 GB, free: 14.57 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.712e-05/0.005324, allocations: 7.984 kB / 0.9847 GB, free: 14.56 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.148e-06/0.005328, allocations: 0 / 0.9847 GB, free: 14.56 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.306e-05/0.005351, allocations: 7.984 kB / 0.9847 GB, free: 14.55 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.86e-06/0.005356, allocations: 0 / 0.9847 GB, free: 14.55 MB / 0.948 GB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (2): * Single equations (assignments): 2 * 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 4.733e-05/0.005403, allocations: 109.8 kB / 0.9848 GB, free: 14.44 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.362e-05/0.005417, allocations: 7.922 kB / 0.9848 GB, free: 14.43 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001263/0.005543, allocations: 76.97 kB / 0.9848 GB, free: 14.35 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.443e-06/0.005545, allocations: 0 / 0.9848 GB, free: 14.35 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/0.005549, allocations: 0 / 0.9848 GB, free: 14.35 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.765e-06/0.005551, allocations: 0 / 0.9848 GB, free: 14.35 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.498e-05/0.005646, allocations: 132.7 kB / 0.985 GB, free: 14.18 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.005648, allocations: 3.938 kB / 0.985 GB, free: 14.18 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.331e-05/0.005671, allocations: 8.234 kB / 0.985 GB, free: 14.17 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.353e-06/0.005672, allocations: 0 / 0.985 GB, free: 14.17 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.654e-06/0.00568, allocations: 12.03 kB / 0.985 GB, free: 14.16 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.51e-07/0.005681, allocations: 0 / 0.985 GB, free: 14.16 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.005681, allocations: 0 / 0.985 GB, free: 14.16 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001167/0.005798, allocations: 163.5 kB / 0.9852 GB, free: 13.98 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 7.244e-06/0.005805, allocations: 7.922 kB / 0.9852 GB, free: 13.97 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.007e-05/0.005815, allocations: 4 kB / 0.9852 GB, free: 13.97 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.642e-05/0.005852, allocations: 7.984 kB / 0.9852 GB, free: 13.96 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.843e-05/0.00588, allocations: 0 / 0.9852 GB, free: 13.96 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.903e-06/0.005882, allocations: 7.969 kB / 0.9852 GB, free: 13.95 MB / 0.948 GB Notification: Performance of sorting global known variables: time 2.71e-05/0.005909, allocations: 87.27 kB / 0.9853 GB, free: 13.87 MB / 0.948 GB Notification: Performance of sort global known variables: time 5e-08/0.005909, allocations: 0 / 0.9853 GB, free: 13.87 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.0001585/0.006068, allocations: 11.94 kB / 0.9853 GB, free: 13.86 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 (2): * Single equations (assignments): 2 * 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.0003151/0.006383, allocations: 0.6967 MB / 0.986 GB, free: 13.13 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.000117/0.0065, allocations: 43.98 kB / 0.986 GB, free: 13.09 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 1.403e-06/0.006501, allocations: 0 / 0.986 GB, free: 13.09 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 4.062e-05/0.006542, allocations: 19.92 kB / 0.986 GB, free: 13.07 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001922/0.006734, allocations: 7.984 kB / 0.986 GB, free: 13.06 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003022/0.007036, allocations: 138.5 kB / 0.9862 GB, free: 12.89 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.945e-05/0.007076, allocations: 59.3 kB / 0.9862 GB, free: 12.81 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 1.859e-05/0.007094, allocations: 4 kB / 0.9862 GB, free: 12.8 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.692e-05/0.007121, allocations: 16.61 kB / 0.9862 GB, free: 12.79 MB / 0.948 GB Notification: Performance of SimCode: time 2.71e-07/0.007122, allocations: 0 / 0.9862 GB, free: 12.79 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01427/0.02139, allocations: 2.11 MB / 0.9883 GB, free: 10.82 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.014/7.035, allocations: 2.875 kB / 0.9883 GB, free: 10.82 MB / 0.948 GB " [Timeout remaining time 293] (rm -f Buildings_12_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe ; mkfifo Buildings_12_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe >> ../files/Buildings_12_Buildings.Utilities.Math.Examples.SmoothHeaviside.sim & python3 -m fmpy simulate --output-file Buildings_12_Buildings.Utilities.Math.Examples.SmoothHeaviside_res.csv --start-time 0 --stop-time 1 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_12_Buildings_Utilities_Math_Examples_SmoothHeaviside.fmu > Buildings_12_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Utilities.Math.Examples.SmoothHeaviside_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Math_Examples_SmoothHeaviside.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Utilities.Math.Examples.SmoothHeaviside.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: 11.10317167174071]