Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Utilities.Math.Examples.SmoothMin.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.001256/0.001256, allocations: 114.3 kB / 18.94 MB, free: 2.934 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.001453/0.001453, allocations: 217 kB / 22.25 MB, free: 5.082 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.507/1.507, allocations: 230.6 MB / 256 MB, free: 7.996 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.351/3.351, allocations: 0.49 GB / 0.7951 GB, free: 33.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.SmoothMin,fileNamePrefix="Buildings_12_Buildings_Utilities_Math_Examples_SmoothMin",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.SmoothMin,fileNamePrefix="Buildings_12_Buildings_Utilities_Math_Examples_SmoothMin",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.00201/0.00201, allocations: 72.56 kB / 1.154 GB, free: 25.68 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3942/0.3963, allocations: 176.1 MB / 1.326 GB, free: 1.918 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothMin): time 0.0029/0.3992, allocations: 1.502 MB / 1.327 GB, free: 420 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.0004477/0.3996, allocations: 139.5 kB / 1.328 GB, free: 280 kB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.522e-05/0.3996, allocations: 0 / 1.328 GB, free: 280 kB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 5.804e-05/0.3997, allocations: 0 / 1.328 GB, free: 280 kB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 7.11e-05/0.3998, allocations: 3.938 kB / 1.328 GB, free: 276 kB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002719/0.4, allocations: 39.89 kB / 1.328 GB, free: 236 kB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0001064/0.4001, allocations: 39.86 kB / 1.328 GB, free: 196 kB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001293/0.4003, allocations: 16.27 kB / 1.328 GB, free: 180 kB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 5.019e-05/0.4003, allocations: 19.92 kB / 1.328 GB, free: 160 kB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 5.139e-05/0.4004, allocations: 19.92 kB / 1.328 GB, free: 140 kB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 1.708e-05/0.4004, allocations: 4 kB / 1.328 GB, free: 136 kB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 9.991e-05/0.4005, allocations: 31.98 kB / 1.328 GB, free: 104 kB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 2.513e-05/0.4005, allocations: 15.91 kB / 1.328 GB, free: 88 kB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 3.967e-05/0.4006, allocations: 15.94 kB / 1.328 GB, free: 72 kB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0001582/0.4007, allocations: 71.66 kB / 1.328 GB, free: 0 / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.4007, allocations: 0 / 1.328 GB, free: 0 / 1.014 GB Notification: Performance of FrontEnd: time 1.543e-06/0.4007, allocations: 0 / 1.328 GB, free: 0 / 1.014 GB Notification: Performance of Transformations before backend: time 5.54e-06/0.4007, allocations: 0 / 1.328 GB, free: 0 / 1.014 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0005511/0.4013, allocations: 290.1 kB / 1.328 GB, free: 15.68 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.232e-05/0.4013, allocations: 12.03 kB / 1.328 GB, free: 15.67 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.872e-05/0.4014, allocations: 34.73 kB / 1.328 GB, free: 15.63 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001115/0.4025, allocations: 208.6 kB / 1.328 GB, free: 15.43 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001546/0.4026, allocations: 118.4 kB / 1.328 GB, free: 15.29 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.389e-05/0.4027, allocations: 4.375 kB / 1.328 GB, free: 15.28 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.735e-05/0.4027, allocations: 8.375 kB / 1.328 GB, free: 15.27 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005808/0.4033, allocations: 190 kB / 1.329 GB, free: 15.08 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.184e-05/0.4033, allocations: 3.938 kB / 1.329 GB, free: 15.08 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.599e-05/0.4033, allocations: 4 kB / 1.329 GB, free: 15.07 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.823e-06/0.4033, allocations: 0 / 1.329 GB, free: 15.07 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008346/0.4041, allocations: 283.6 kB / 1.329 GB, free: 14.8 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009854/0.4051, allocations: 408.5 kB / 1.329 GB, free: 14.36 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001093/0.4062, allocations: 286.1 kB / 1.33 GB, free: 14.07 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000362/0.4066, allocations: 112.7 kB / 1.33 GB, free: 13.95 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.673e-05/0.4066, allocations: 0 / 1.33 GB, free: 13.95 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.411e-05/0.4066, allocations: 30.56 kB / 1.33 GB, free: 13.91 MB / 1.029 GB Notification: Performance of pre-optimization done (n=3): time 1.353e-06/0.4066, allocations: 4 kB / 1.33 GB, free: 13.91 MB / 1.029 GB Notification: Performance of matching and sorting (n=3): time 0.001159/0.4078, allocations: 313.5 kB / 1.33 GB, free: 13.6 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.379e-05/0.4078, allocations: 59.33 kB / 1.33 GB, free: 13.53 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001082/0.408, allocations: 117.8 kB / 1.33 GB, free: 13.4 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.122e-05/0.408, allocations: 29.7 kB / 1.33 GB, free: 13.37 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 6.145e-05/0.408, allocations: 84.14 kB / 1.33 GB, free: 13.28 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.838e-05/0.4081, allocations: 15.94 kB / 1.33 GB, free: 13.27 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.663e-05/0.4081, allocations: 13.72 kB / 1.33 GB, free: 13.25 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001525/0.4083, allocations: 322.8 kB / 1.331 GB, free: 12.92 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003565/0.4086, allocations: 91.88 kB / 1.331 GB, free: 12.83 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003621/0.409, allocations: 95.88 kB / 1.331 GB, free: 12.74 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006498/0.4096, allocations: 172.6 kB / 1.331 GB, free: 12.57 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/0.4096, allocations: 0 / 1.331 GB, free: 12.57 MB / 1.029 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0007315/0.4104, allocations: 221.3 kB / 1.331 GB, free: 12.34 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.931e-05/0.4104, allocations: 4 kB / 1.331 GB, free: 12.34 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.3e-06/0.4104, allocations: 0 / 1.331 GB, free: 12.34 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.874e-05/0.4104, allocations: 4 kB / 1.331 GB, free: 12.34 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002625/0.4107, allocations: 35.94 kB / 1.331 GB, free: 12.3 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.522e-06/0.4107, allocations: 0 / 1.331 GB, free: 12.3 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001935/0.4109, allocations: 31.89 kB / 1.331 GB, free: 12.27 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.102e-05/0.4109, allocations: 0 / 1.331 GB, free: 12.27 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 (3): * Single equations (assignments): 3 * 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.0001106/0.411, allocations: 122.3 kB / 1.331 GB, free: 12.14 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.521e-05/0.411, allocations: 7.953 kB / 1.331 GB, free: 12.13 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.101e-05/0.4111, allocations: 12 kB / 1.331 GB, free: 12.11 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.578e-06/0.4111, allocations: 4 kB / 1.331 GB, free: 12.11 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-06/0.4111, allocations: 0 / 1.331 GB, free: 12.11 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.675e-06/0.4111, allocations: 0 / 1.331 GB, free: 12.11 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000246/0.4113, allocations: 180.6 kB / 1.332 GB, free: 11.89 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.4113, allocations: 0 / 1.332 GB, free: 11.89 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002309/0.4116, allocations: 32.31 kB / 1.332 GB, free: 11.86 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.737e-06/0.4116, allocations: 7.938 kB / 1.332 GB, free: 11.85 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.212e-05/0.4116, allocations: 4 kB / 1.332 GB, free: 11.84 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.4116, allocations: 0 / 1.332 GB, free: 11.84 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.4116, allocations: 3.938 kB / 1.332 GB, free: 11.84 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008016/0.4124, allocations: 319.2 kB / 1.332 GB, free: 11.51 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.558e-05/0.4124, allocations: 3.953 kB / 1.332 GB, free: 11.51 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.21e-05/0.4124, allocations: 4 kB / 1.332 GB, free: 11.5 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002421/0.4127, allocations: 31.95 kB / 1.332 GB, free: 11.47 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.258e-05/0.4127, allocations: 4 kB / 1.332 GB, free: 11.47 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.313e-05/0.4127, allocations: 7.984 kB / 1.332 GB, free: 11.46 MB / 1.029 GB Notification: Performance of sorting global known variables: time 6.313e-05/0.4128, allocations: 91.27 kB / 1.332 GB, free: 11.37 MB / 1.029 GB Notification: Performance of sort global known variables: time 6.1e-08/0.4128, allocations: 0 / 1.332 GB, free: 11.37 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002434/0.413, allocations: 23.94 kB / 1.332 GB, free: 11.35 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 (3): * Single equations (assignments): 3 * 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.001143/0.4142, allocations: 0.8372 MB / 1.333 GB, free: 10.48 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0007576/0.4149, allocations: 195.7 kB / 1.333 GB, free: 10.29 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.4149, allocations: 0 / 1.333 GB, free: 10.29 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0003636/0.4153, allocations: 96.2 kB / 1.333 GB, free: 10.2 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000325/0.4156, allocations: 10.11 kB / 1.333 GB, free: 10.19 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003708/0.4193, allocations: 1.849 MB / 1.335 GB, free: 8.266 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003295/0.4197, allocations: 0.6885 MB / 1.336 GB, free: 7.551 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 8.357e-05/0.4197, allocations: 19.98 kB / 1.336 GB, free: 7.531 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.854e-05/0.4198, allocations: 15.44 kB / 1.336 GB, free: 7.516 MB / 1.029 GB Notification: Performance of SimCode: time 5.71e-07/0.4198, allocations: 0 / 1.336 GB, free: 7.516 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02884/0.4487, allocations: 2.081 MB / 1.338 GB, free: 5.566 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.74/11.19, allocations: 1.891 kB / 1.338 GB, free: 5.566 MB / 1.029 GB " [Timeout remaining time 289] (rm -f Buildings_12_Buildings.Utilities.Math.Examples.SmoothMin.pipe ; mkfifo Buildings_12_Buildings.Utilities.Math.Examples.SmoothMin.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Math.Examples.SmoothMin.pipe >> ../files/Buildings_12_Buildings.Utilities.Math.Examples.SmoothMin.sim & python3 -m fmpy simulate --output-file Buildings_12_Buildings.Utilities.Math.Examples.SmoothMin_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_SmoothMin.fmu > Buildings_12_Buildings.Utilities.Math.Examples.SmoothMin.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Utilities.Math.Examples.SmoothMin_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Math_Examples_SmoothMin.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Utilities.Math.Examples.SmoothMin.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.463712622000457]