Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.001878/0.001878, allocations: 101.6 kB / 16.45 MB, free: 6.5 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.002134/0.002134, allocations: 210.4 kB / 19.43 MB, free: 3.656 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.638/1.638, allocations: 230.6 MB / 252.8 MB, free: 8.957 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.379/3.379, allocations: 0.505 GB / 0.8066 GB, free: 23.08 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.Examples.SmoothHeaviside,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_SmoothHeaviside",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.SmoothHeaviside,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_SmoothHeaviside",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.002947/0.002947, allocations: 74.97 kB / 1.172 GB, free: 17.5 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4414/0.4443, allocations: 180.2 MB / 1.348 GB, free: 9.965 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothHeaviside): time 0.003146/0.4475, allocations: 1.455 MB / 1.349 GB, free: 8.5 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.0009733/0.4485, allocations: 0.5031 MB / 1.35 GB, free: 7.992 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.538e-05/0.4485, allocations: 0 / 1.35 GB, free: 7.992 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 2.994e-05/0.4485, allocations: 0 / 1.35 GB, free: 7.992 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 8.922e-05/0.4486, allocations: 11.94 kB / 1.35 GB, free: 7.98 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002257/0.4488, allocations: 19.92 kB / 1.35 GB, free: 7.961 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 8.311e-05/0.4489, allocations: 27.92 kB / 1.35 GB, free: 7.934 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 9.845e-05/0.449, allocations: 8 kB / 1.35 GB, free: 7.926 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 7.28e-05/0.4491, allocations: 15.91 kB / 1.35 GB, free: 7.91 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 4.106e-05/0.4491, allocations: 7.938 kB / 1.35 GB, free: 7.902 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 1.365e-05/0.4492, allocations: 4 kB / 1.35 GB, free: 7.898 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 8.543e-05/0.4492, allocations: 23.91 kB / 1.35 GB, free: 7.875 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 1.546e-05/0.4493, allocations: 8 kB / 1.35 GB, free: 7.867 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 2.605e-05/0.4493, allocations: 7.938 kB / 1.35 GB, free: 7.859 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0001317/0.4494, allocations: 40.09 kB / 1.35 GB, free: 7.82 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.4494, allocations: 4 kB / 1.35 GB, free: 7.816 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.673e-06/0.4494, allocations: 3.938 kB / 1.35 GB, free: 7.812 MB / 1.045 GB Notification: Performance of Transformations before backend: time 9.558e-06/0.4494, allocations: 0 / 1.35 GB, free: 7.812 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.0005208/0.4499, allocations: 339.4 kB / 1.35 GB, free: 7.434 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 5.021e-05/0.45, allocations: 15.98 kB / 1.35 GB, free: 7.418 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.257e-05/0.45, allocations: 34.75 kB / 1.35 GB, free: 7.375 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002785/0.4503, allocations: 16.88 kB / 1.35 GB, free: 7.359 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001446/0.4505, allocations: 164.4 kB / 1.35 GB, free: 7.16 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.407e-05/0.4505, allocations: 8.375 kB / 1.35 GB, free: 7.152 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.429e-05/0.4505, allocations: 4.375 kB / 1.35 GB, free: 7.148 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000204/0.4507, allocations: 57.73 kB / 1.35 GB, free: 7.086 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.875e-06/0.4507, allocations: 0 / 1.35 GB, free: 7.086 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.878e-06/0.4507, allocations: 0 / 1.35 GB, free: 7.086 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.669e-06/0.4507, allocations: 0 / 1.35 GB, free: 7.086 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001813/0.4509, allocations: 39.95 kB / 1.35 GB, free: 7.047 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000444/0.4513, allocations: 256.9 kB / 1.351 GB, free: 6.746 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001484/0.4515, allocations: 42.56 kB / 1.351 GB, free: 6.695 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.695e-05/0.4516, allocations: 20.89 kB / 1.351 GB, free: 6.672 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 2.767e-05/0.4516, allocations: 11.94 kB / 1.351 GB, free: 6.66 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.053e-05/0.4516, allocations: 34.56 kB / 1.351 GB, free: 6.617 MB / 1.045 GB Notification: Performance of pre-optimization done (n=2): time 1.152e-06/0.4516, allocations: 0 / 1.351 GB, free: 6.617 MB / 1.045 GB Notification: Performance of matching and sorting (n=2): time 0.0003912/0.452, allocations: 85.59 kB / 1.351 GB, free: 6.527 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.364e-05/0.4521, allocations: 55.41 kB / 1.351 GB, free: 6.461 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.833e-05/0.4522, allocations: 101.8 kB / 1.351 GB, free: 6.352 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 1.987e-05/0.4522, allocations: 25.7 kB / 1.351 GB, free: 6.32 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 6.208e-05/0.4523, allocations: 92.27 kB / 1.351 GB, free: 6.227 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 2.1e-05/0.4523, allocations: 7.891 kB / 1.351 GB, free: 6.219 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.35e-05/0.4523, allocations: 9.719 kB / 1.351 GB, free: 6.203 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001447/0.4525, allocations: 322.8 kB / 1.352 GB, free: 5.879 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.792e-05/0.4525, allocations: 15.98 kB / 1.352 GB, free: 5.863 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.76e-05/0.4526, allocations: 23.92 kB / 1.352 GB, free: 5.84 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001707/0.4528, allocations: 52.81 kB / 1.352 GB, free: 5.785 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.4528, allocations: 0 / 1.352 GB, free: 5.785 MB / 1.045 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002097/0.453, allocations: 65.67 kB / 1.352 GB, free: 5.715 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.468e-05/0.453, allocations: 4 kB / 1.352 GB, free: 5.711 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.033e-06/0.453, allocations: 3.984 kB / 1.352 GB, free: 5.707 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.44e-05/0.453, allocations: 3.984 kB / 1.352 GB, free: 5.703 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001139/0.4532, allocations: 8 kB / 1.352 GB, free: 5.695 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.352e-06/0.4532, allocations: 4.031 kB / 1.352 GB, free: 5.691 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.148e-05/0.4532, allocations: 7.984 kB / 1.352 GB, free: 5.684 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.011e-06/0.4532, allocations: 0 / 1.352 GB, free: 5.684 MB / 1.045 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 9.529e-05/0.4533, allocations: 121.7 kB / 1.352 GB, free: 5.555 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.356e-05/0.4534, allocations: 0 / 1.352 GB, free: 5.555 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.754e-05/0.4534, allocations: 11.05 kB / 1.352 GB, free: 5.539 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.392e-06/0.4534, allocations: 0 / 1.352 GB, free: 5.539 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.492e-06/0.4534, allocations: 4 kB / 1.352 GB, free: 5.535 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.016e-06/0.4534, allocations: 4 kB / 1.352 GB, free: 5.531 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001977/0.4536, allocations: 165.6 kB / 1.352 GB, free: 5.32 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.21e-07/0.4536, allocations: 0 / 1.352 GB, free: 5.32 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.633e-05/0.4537, allocations: 8 kB / 1.352 GB, free: 5.312 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.383e-06/0.4537, allocations: 0 / 1.352 GB, free: 5.312 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.929e-06/0.4537, allocations: 4.234 kB / 1.352 GB, free: 5.309 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.82e-07/0.4537, allocations: 0 / 1.352 GB, free: 5.309 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.434e-06/0.4537, allocations: 4 kB / 1.352 GB, free: 5.305 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000304/0.454, allocations: 175.4 kB / 1.352 GB, free: 5.117 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 4.647e-05/0.4541, allocations: 77.11 kB / 1.352 GB, free: 5.023 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.306e-05/0.4541, allocations: 0 / 1.352 GB, free: 5.023 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001022/0.4542, allocations: 7.984 kB / 1.352 GB, free: 5.016 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.455e-05/0.4542, allocations: 7.938 kB / 1.352 GB, free: 5.008 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.217e-06/0.4542, allocations: 0 / 1.352 GB, free: 5.008 MB / 1.045 GB Notification: Performance of sorting global known variables: time 5.267e-05/0.4543, allocations: 83.28 kB / 1.352 GB, free: 4.926 MB / 1.045 GB Notification: Performance of sort global known variables: time 9.1e-08/0.4543, allocations: 4.031 kB / 1.352 GB, free: 4.922 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0002167/0.4545, allocations: 4 kB / 1.352 GB, free: 4.918 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 (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.000618/0.4551, allocations: 0.6968 MB / 1.353 GB, free: 4.191 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0002238/0.4553, allocations: 40 kB / 1.353 GB, free: 4.152 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 1.804e-06/0.4553, allocations: 7.938 kB / 1.353 GB, free: 4.145 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 9.613e-05/0.4554, allocations: 23.97 kB / 1.353 GB, free: 4.121 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002993/0.4557, allocations: 5.812 kB / 1.353 GB, free: 4.117 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004663/0.4562, allocations: 143.1 kB / 1.353 GB, free: 3.938 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000324/0.4565, allocations: 0.6807 MB / 1.354 GB, free: 3.23 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 4.538e-05/0.4566, allocations: 4 kB / 1.354 GB, free: 3.227 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.447e-05/0.4566, allocations: 7.438 kB / 1.354 GB, free: 3.219 MB / 1.045 GB Notification: Performance of SimCode: time 3.2e-07/0.4566, allocations: 4 kB / 1.354 GB, free: 3.215 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02714/0.4838, allocations: 1.418 MB / 1.355 GB, free: 1.891 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.125/8.608, allocations: 7.875 kB / 1.355 GB, free: 1.883 MB / 1.045 GB " [Timeout remaining time 291] (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside_res.csv --start-time 0 --stop-time 1 --timeout 800 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_latest_Buildings_Utilities_Math_Examples_SmoothHeaviside.fmu > Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_SmoothHeaviside.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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: 16.06986464187503]