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.001436/0.001436, allocations: 101.4 kB / 16.45 MB, free: 6.449 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.00155/0.00155, allocations: 210.4 kB / 19.43 MB, free: 3.637 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.535/1.535, allocations: 230.6 MB / 252.8 MB, free: 9.113 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.302/3.302, allocations: 0.49 GB / 0.7916 GB, free: 33.28 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.002119/0.002119, allocations: 70.53 kB / 1.149 GB, free: 26.39 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.406/0.4081, allocations: 176.1 MB / 1.321 GB, free: 3.324 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothHeaviside): time 0.002975/0.4111, allocations: 1.461 MB / 1.322 GB, free: 1.859 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.00103/0.4121, allocations: 0.5108 MB / 1.323 GB, free: 1.344 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.325e-05/0.4121, allocations: 0 / 1.323 GB, free: 1.344 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 2.917e-05/0.4122, allocations: 0 / 1.323 GB, free: 1.344 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 7.91e-05/0.4122, allocations: 7.938 kB / 1.323 GB, free: 1.336 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002383/0.4125, allocations: 15.92 kB / 1.323 GB, free: 1.32 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 8.994e-05/0.4126, allocations: 31.86 kB / 1.323 GB, free: 1.289 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 9.918e-05/0.4127, allocations: 8 kB / 1.323 GB, free: 1.281 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 7.392e-05/0.4127, allocations: 15.97 kB / 1.323 GB, free: 1.266 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 4.108e-05/0.4128, allocations: 7.938 kB / 1.323 GB, free: 1.258 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 1.353e-05/0.4128, allocations: 4 kB / 1.323 GB, free: 1.254 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 7.639e-05/0.4129, allocations: 23.97 kB / 1.323 GB, free: 1.23 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 1.502e-05/0.4129, allocations: 11.94 kB / 1.323 GB, free: 1.219 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 2.514e-05/0.4129, allocations: 7.938 kB / 1.323 GB, free: 1.211 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0001434/0.4131, allocations: 36.09 kB / 1.323 GB, free: 1.176 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.4131, allocations: 4 kB / 1.323 GB, free: 1.172 MB / 1.014 GB Notification: Performance of FrontEnd: time 2.154e-06/0.4131, allocations: 0 / 1.323 GB, free: 1.172 MB / 1.014 GB Notification: Performance of Transformations before backend: time 5.641e-06/0.4131, allocations: 0 / 1.323 GB, free: 1.172 MB / 1.014 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.0005166/0.4136, allocations: 339.4 kB / 1.323 GB, free: 0.793 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.928e-05/0.4136, allocations: 19.98 kB / 1.323 GB, free: 0.7734 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.223e-05/0.4137, allocations: 34.75 kB / 1.323 GB, free: 0.7305 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.499e-05/0.4137, allocations: 0.9375 kB / 1.323 GB, free: 0.7305 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001455/0.4138, allocations: 168.3 kB / 1.323 GB, free: 0.5273 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.645e-06/0.4139, allocations: 384 / 1.323 GB, free: 0.5273 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.197e-05/0.4139, allocations: 384 / 1.323 GB, free: 0.5273 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001881/0.4141, allocations: 53.8 kB / 1.323 GB, free: 480 kB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.666e-06/0.4141, allocations: 3.938 kB / 1.323 GB, free: 476 kB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.256e-06/0.4141, allocations: 0 / 1.323 GB, free: 476 kB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.368e-06/0.4141, allocations: 0 / 1.323 GB, free: 476 kB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001797/0.4143, allocations: 39.95 kB / 1.324 GB, free: 436 kB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003514/0.4146, allocations: 244.9 kB / 1.324 GB, free: 140 kB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001342/0.4147, allocations: 38.59 kB / 1.324 GB, free: 92 kB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.385e-05/0.4148, allocations: 28.91 kB / 1.324 GB, free: 60 kB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001698/0.415, allocations: 85.09 kB / 1.324 GB, free: 15.96 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.868e-05/0.415, allocations: 34.5 kB / 1.324 GB, free: 15.91 MB / 1.029 GB Notification: Performance of pre-optimization done (n=2): time 1.222e-06/0.415, allocations: 0 / 1.324 GB, free: 15.91 MB / 1.029 GB Notification: Performance of matching and sorting (n=2): time 0.0003789/0.4154, allocations: 81.64 kB / 1.324 GB, free: 15.83 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.178e-05/0.4155, allocations: 51.41 kB / 1.324 GB, free: 15.77 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.273e-05/0.4155, allocations: 102.2 kB / 1.324 GB, free: 15.66 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 1.659e-05/0.4156, allocations: 33.64 kB / 1.324 GB, free: 15.62 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 6.244e-05/0.4156, allocations: 92.08 kB / 1.324 GB, free: 15.52 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 1.987e-05/0.4156, allocations: 7.875 kB / 1.324 GB, free: 15.52 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.312e-05/0.4157, allocations: 13.72 kB / 1.324 GB, free: 15.5 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001771/0.4159, allocations: 314.8 kB / 1.325 GB, free: 15.18 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.77e-05/0.4159, allocations: 15.98 kB / 1.325 GB, free: 15.16 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.291e-05/0.416, allocations: 31.97 kB / 1.325 GB, free: 15.13 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001581/0.4162, allocations: 36.83 kB / 1.325 GB, free: 15.09 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.4162, allocations: 4 kB / 1.325 GB, free: 15.09 MB / 1.029 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002079/0.4164, allocations: 69.59 kB / 1.325 GB, free: 15.02 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.848e-05/0.4164, allocations: 8.094 kB / 1.325 GB, free: 15.01 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.54e-06/0.4164, allocations: 4 kB / 1.325 GB, free: 15 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.883e-05/0.4164, allocations: 0 / 1.325 GB, free: 15 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.961e-05/0.4165, allocations: 7.984 kB / 1.325 GB, free: 15 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.922e-06/0.4165, allocations: 0 / 1.325 GB, free: 15 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.306e-05/0.4166, allocations: 4 kB / 1.325 GB, free: 14.99 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.935e-06/0.4166, allocations: 4 kB / 1.325 GB, free: 14.99 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.0001272/0.4167, allocations: 117.7 kB / 1.325 GB, free: 14.86 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.495e-05/0.4167, allocations: 3.984 kB / 1.325 GB, free: 14.86 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002424/0.417, allocations: 72.78 kB / 1.325 GB, free: 14.78 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.944e-06/0.417, allocations: 0 / 1.325 GB, free: 14.78 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/0.417, allocations: 0 / 1.325 GB, free: 14.78 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.116e-06/0.417, allocations: 0 / 1.325 GB, free: 14.78 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001836/0.4172, allocations: 161.6 kB / 1.325 GB, free: 14.57 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.462e-06/0.4172, allocations: 3.984 kB / 1.325 GB, free: 14.57 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.593e-05/0.4172, allocations: 8 kB / 1.325 GB, free: 14.56 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.723e-06/0.4172, allocations: 0 / 1.325 GB, free: 14.56 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.063e-06/0.4173, allocations: 4.031 kB / 1.325 GB, free: 14.56 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.4173, allocations: 4 kB / 1.325 GB, free: 14.55 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.4173, allocations: 0 / 1.325 GB, free: 14.55 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002507/0.4175, allocations: 167.3 kB / 1.325 GB, free: 14.38 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 5.472e-05/0.4176, allocations: 81.09 kB / 1.325 GB, free: 14.28 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.331e-05/0.4176, allocations: 0 / 1.325 GB, free: 14.28 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.477e-05/0.4176, allocations: 12.03 kB / 1.325 GB, free: 14.27 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.17e-05/0.4177, allocations: 3.984 kB / 1.325 GB, free: 14.26 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.23e-06/0.4177, allocations: 4 kB / 1.325 GB, free: 14.26 MB / 1.029 GB Notification: Performance of sorting global known variables: time 4.67e-05/0.4178, allocations: 87.22 kB / 1.325 GB, free: 14.17 MB / 1.029 GB Notification: Performance of sort global known variables: time 6e-08/0.4178, allocations: 0 / 1.325 GB, free: 14.17 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002224/0.418, allocations: 4 kB / 1.325 GB, free: 14.17 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.0006482/0.4186, allocations: 0.7123 MB / 1.326 GB, free: 13.43 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0002198/0.4188, allocations: 35.95 kB / 1.326 GB, free: 13.39 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.4188, allocations: 0 / 1.326 GB, free: 13.39 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 8.967e-05/0.4189, allocations: 24.02 kB / 1.326 GB, free: 13.37 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003146/0.4192, allocations: 11.98 kB / 1.326 GB, free: 13.36 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005476/0.4198, allocations: 135 kB / 1.326 GB, free: 13.18 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003475/0.4201, allocations: 0.6807 MB / 1.327 GB, free: 12.48 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 2.358e-05/0.4202, allocations: 3.938 kB / 1.327 GB, free: 12.47 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.427e-05/0.4202, allocations: 7.438 kB / 1.327 GB, free: 12.46 MB / 1.029 GB Notification: Performance of SimCode: time 2.81e-07/0.4202, allocations: 0 / 1.327 GB, free: 12.46 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02613/0.4463, allocations: 1.43 MB / 1.328 GB, free: 11.12 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.071/8.517, allocations: 10.33 kB / 1.328 GB, free: 11.12 MB / 1.029 GB " [Timeout remaining time 291] (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: 15.590477009071037]