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.00163/0.00163, allocations: 99.75 kB / 18.95 MB, free: 2.832 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.002227/0.002227, allocations: 219.4 kB / 22.25 MB, free: 5.105 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.531/1.531, allocations: 230.6 MB / 256 MB, free: 7.828 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.215/3.215, allocations: 0.49 GB / 0.7951 GB, free: 35.53 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-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: 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.002033/0.002033, allocations: 67.67 kB / 1.154 GB, free: 25.46 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4017/0.4037, allocations: 176.1 MB / 1.326 GB, free: 1.504 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothHeaviside): time 0.002905/0.4066, allocations: 1.473 MB / 1.327 GB, free: 28 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001193/0.4078, allocations: 467 kB / 1.328 GB, free: 15.57 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.736e-05/0.4078, allocations: 4 kB / 1.328 GB, free: 15.56 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 3.236e-05/0.4079, allocations: 7.922 kB / 1.328 GB, free: 15.55 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 8.123e-05/0.408, allocations: 3.938 kB / 1.328 GB, free: 15.55 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002745/0.4082, allocations: 31.97 kB / 1.328 GB, free: 15.52 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 8.772e-05/0.4083, allocations: 23.92 kB / 1.328 GB, free: 15.5 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 9.842e-05/0.4084, allocations: 4 kB / 1.328 GB, free: 15.49 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 7.513e-05/0.4085, allocations: 15.88 kB / 1.328 GB, free: 15.48 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 4.945e-05/0.4085, allocations: 15.92 kB / 1.328 GB, free: 15.46 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 1.431e-05/0.4086, allocations: 0 / 1.328 GB, free: 15.46 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 8.17e-05/0.4086, allocations: 11.98 kB / 1.328 GB, free: 15.45 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 2.439e-05/0.4087, allocations: 11.98 kB / 1.328 GB, free: 15.44 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 2.999e-05/0.4087, allocations: 7.938 kB / 1.328 GB, free: 15.43 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.000133/0.4088, allocations: 28.19 kB / 1.328 GB, free: 15.4 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.928e-06/0.4088, allocations: 4 kB / 1.328 GB, free: 15.4 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.873e-06/0.4088, allocations: 0 / 1.328 GB, free: 15.4 MB / 1.029 GB Notification: Performance of Transformations before backend: time 9.928e-06/0.4088, allocations: 3.984 kB / 1.328 GB, free: 15.39 MB / 1.029 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.0005594/0.4094, allocations: 271.4 kB / 1.328 GB, free: 15.1 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 5.071e-05/0.4095, allocations: 8.031 kB / 1.328 GB, free: 15.09 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.164e-05/0.4095, allocations: 38.69 kB / 1.328 GB, free: 15.05 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.198e-05/0.4095, allocations: 4.938 kB / 1.328 GB, free: 15.04 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001356/0.4097, allocations: 110.5 kB / 1.328 GB, free: 14.91 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.519e-05/0.4097, allocations: 4.375 kB / 1.328 GB, free: 14.91 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.051e-05/0.4097, allocations: 384 / 1.328 GB, free: 14.91 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002359/0.4099, allocations: 57.8 kB / 1.328 GB, free: 14.84 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.128e-05/0.4099, allocations: 3.938 kB / 1.328 GB, free: 14.84 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.021e-05/0.41, allocations: 0 / 1.328 GB, free: 14.84 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.302e-06/0.41, allocations: 0 / 1.328 GB, free: 14.84 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002406/0.4102, allocations: 35.95 kB / 1.328 GB, free: 14.8 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004411/0.4106, allocations: 219.9 kB / 1.329 GB, free: 14.55 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001887/0.4108, allocations: 42.55 kB / 1.329 GB, free: 14.5 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001278/0.411, allocations: 24.91 kB / 1.329 GB, free: 14.47 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001142/0.4111, allocations: 4 kB / 1.329 GB, free: 14.46 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.103e-05/0.4111, allocations: 34.55 kB / 1.329 GB, free: 14.42 MB / 1.029 GB Notification: Performance of pre-optimization done (n=2): time 1.463e-06/0.4111, allocations: 0 / 1.329 GB, free: 14.42 MB / 1.029 GB Notification: Performance of matching and sorting (n=2): time 0.0005636/0.4117, allocations: 81.59 kB / 1.329 GB, free: 14.34 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.328e-05/0.4117, allocations: 55.39 kB / 1.329 GB, free: 14.27 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001341/0.4119, allocations: 106 kB / 1.329 GB, free: 14.16 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.216e-05/0.4119, allocations: 25.7 kB / 1.329 GB, free: 14.12 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 6.545e-05/0.412, allocations: 80.14 kB / 1.329 GB, free: 14.04 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.912e-05/0.412, allocations: 15.88 kB / 1.329 GB, free: 14.03 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.979e-05/0.412, allocations: 13.72 kB / 1.329 GB, free: 14.01 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001982/0.4122, allocations: 318.8 kB / 1.329 GB, free: 13.69 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001168/0.4124, allocations: 15.98 kB / 1.329 GB, free: 13.67 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.984e-05/0.4125, allocations: 11.98 kB / 1.329 GB, free: 13.66 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002168/0.4127, allocations: 44.88 kB / 1.329 GB, free: 13.61 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.4127, allocations: 0 / 1.329 GB, free: 13.61 MB / 1.029 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002895/0.413, allocations: 77.55 kB / 1.33 GB, free: 13.53 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.932e-05/0.413, allocations: 5.875 kB / 1.33 GB, free: 13.53 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.769e-06/0.413, allocations: 0 / 1.33 GB, free: 13.53 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.439e-05/0.413, allocations: 0 / 1.33 GB, free: 13.53 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001038/0.4131, allocations: 11.97 kB / 1.33 GB, free: 13.52 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.322e-06/0.4131, allocations: 4 kB / 1.33 GB, free: 13.51 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.551e-05/0.4132, allocations: 7.984 kB / 1.33 GB, free: 13.5 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.001e-06/0.4132, allocations: 0 / 1.33 GB, free: 13.5 MB / 1.029 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 0.0001166/0.4133, allocations: 114.3 kB / 1.33 GB, free: 13.38 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.091e-05/0.4133, allocations: 0 / 1.33 GB, free: 13.38 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003177/0.4137, allocations: 84.88 kB / 1.33 GB, free: 13.29 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-06/0.4137, allocations: 0 / 1.33 GB, free: 13.29 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.4137, allocations: 4.031 kB / 1.33 GB, free: 13.29 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.805e-06/0.4137, allocations: 0 / 1.33 GB, free: 13.29 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002459/0.4139, allocations: 128.9 kB / 1.33 GB, free: 13.12 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.626e-06/0.4139, allocations: 8 kB / 1.33 GB, free: 13.11 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.406e-05/0.414, allocations: 4 kB / 1.33 GB, free: 13.11 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.874e-06/0.414, allocations: 0 / 1.33 GB, free: 13.11 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.464e-06/0.414, allocations: 0 / 1.33 GB, free: 13.11 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.478e-06/0.414, allocations: 3.984 kB / 1.33 GB, free: 13.1 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.414, allocations: 7.938 kB / 1.33 GB, free: 13.09 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003456/0.4144, allocations: 171.4 kB / 1.33 GB, free: 12.91 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 7.935e-06/0.4144, allocations: 0 / 1.33 GB, free: 12.91 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.634e-05/0.4144, allocations: 0 / 1.33 GB, free: 12.91 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001023/0.4145, allocations: 4 kB / 1.33 GB, free: 12.91 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.283e-05/0.4145, allocations: 7.984 kB / 1.33 GB, free: 12.9 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.657e-06/0.4145, allocations: 3.938 kB / 1.33 GB, free: 12.89 MB / 1.029 GB Notification: Performance of sorting global known variables: time 5.614e-05/0.4146, allocations: 83.28 kB / 1.33 GB, free: 12.81 MB / 1.029 GB Notification: Performance of sort global known variables: time 8e-08/0.4146, allocations: 0 / 1.33 GB, free: 12.81 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003727/0.415, allocations: 4 kB / 1.33 GB, free: 12.81 MB / 1.029 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.0008213/0.4158, allocations: 0.7046 MB / 1.331 GB, free: 12.07 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0002803/0.4161, allocations: 31.97 kB / 1.331 GB, free: 12.04 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.4161, allocations: 0 / 1.331 GB, free: 12.04 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001298/0.4162, allocations: 23.92 kB / 1.331 GB, free: 12.02 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000492/0.4167, allocations: 12.14 kB / 1.331 GB, free: 12.01 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006172/0.4173, allocations: 147 kB / 1.331 GB, free: 11.82 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.979e-05/0.4174, allocations: 63.28 kB / 1.331 GB, free: 11.74 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 3.427e-05/0.4174, allocations: 4 kB / 1.331 GB, free: 11.74 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.169e-05/0.4175, allocations: 7.438 kB / 1.331 GB, free: 11.73 MB / 1.029 GB Notification: Performance of SimCode: time 6.31e-07/0.4175, allocations: 0 / 1.331 GB, free: 11.73 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0318/0.4493, allocations: 1.993 MB / 1.333 GB, free: 9.871 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.22/11.67, allocations: 2.625 kB / 1.333 GB, free: 9.871 MB / 1.029 GB " [Timeout remaining time 288] (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/jenkins1/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: 18.70935248499154]