Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Examples.SmoothMin.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.SmoothMin,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_SmoothMin",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.SmoothMin,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_SmoothMin",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00453/0.00453, allocations: 109.3 kB / 15.74 MB, free: 6.027 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001284/0.001284, allocations: 188.6 kB / 16.67 MB, free: 5.949 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.398/1.398, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.738/2.738, allocations: 482.4 MB / 0.7548 GB, free: 6.848 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001904/0.001904, allocations: 65.14 kB / 1.083 GB, free: 13.89 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3039/0.3058, allocations: 162.2 MB / 1.241 GB, free: 9.258 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothMin): time 0.002713/0.3086, allocations: 1.467 MB / 1.243 GB, free: 7.777 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.0003925/0.309, allocations: 143.5 kB / 1.243 GB, free: 7.637 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.36e-05/0.309, allocations: 8 kB / 1.243 GB, free: 7.629 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 3.834e-05/0.3091, allocations: 3.938 kB / 1.243 GB, free: 7.625 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 6.293e-05/0.3091, allocations: 3.938 kB / 1.243 GB, free: 7.621 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002237/0.3094, allocations: 31.89 kB / 1.243 GB, free: 7.59 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.000121/0.3095, allocations: 39.91 kB / 1.243 GB, free: 7.551 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001163/0.3096, allocations: 24 kB / 1.243 GB, free: 7.527 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 4.802e-05/0.3097, allocations: 19.92 kB / 1.243 GB, free: 7.508 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 4.447e-05/0.3097, allocations: 19.91 kB / 1.243 GB, free: 7.488 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.752e-05/0.3097, allocations: 4 kB / 1.243 GB, free: 7.484 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 9.595e-05/0.3098, allocations: 39.91 kB / 1.243 GB, free: 7.445 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 1.793e-05/0.3099, allocations: 8 kB / 1.243 GB, free: 7.438 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 3.478e-05/0.3099, allocations: 23.86 kB / 1.243 GB, free: 7.414 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001443/0.3101, allocations: 60.08 kB / 1.243 GB, free: 7.355 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.3101, allocations: 0 / 1.243 GB, free: 7.355 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.352e-06/0.3101, allocations: 7.938 kB / 1.243 GB, free: 7.348 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 4.819e-06/0.3101, allocations: 0 / 1.243 GB, free: 7.348 MB / 0.9669 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.0005082/0.3106, allocations: 363.2 kB / 1.244 GB, free: 6.941 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.814e-05/0.3107, allocations: 12.03 kB / 1.244 GB, free: 6.93 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.622e-05/0.3107, allocations: 34.75 kB / 1.244 GB, free: 6.887 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001147/0.3119, allocations: 220.5 kB / 1.244 GB, free: 6.672 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001381/0.312, allocations: 164.3 kB / 1.244 GB, free: 6.473 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.347e-05/0.312, allocations: 8.312 kB / 1.244 GB, free: 6.465 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.55e-05/0.312, allocations: 384 / 1.244 GB, free: 6.465 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000596/0.3126, allocations: 194 kB / 1.244 GB, free: 6.27 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.049e-05/0.3127, allocations: 3.938 kB / 1.244 GB, free: 6.266 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.442e-05/0.3127, allocations: 4 kB / 1.244 GB, free: 6.262 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.499e-06/0.3127, allocations: 0 / 1.244 GB, free: 6.262 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009138/0.3136, allocations: 279.6 kB / 1.245 GB, free: 5.988 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009357/0.3146, allocations: 445.3 kB / 1.245 GB, free: 5.504 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001202/0.3158, allocations: 282.2 kB / 1.245 GB, free: 5.219 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003796/0.3162, allocations: 96.8 kB / 1.245 GB, free: 5.121 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.115e-05/0.3162, allocations: 4 kB / 1.245 GB, free: 5.117 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.151e-05/0.3162, allocations: 38.56 kB / 1.245 GB, free: 5.07 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=3): time 1.172e-06/0.3162, allocations: 0 / 1.245 GB, free: 5.07 MB / 0.9669 GB Notification: Performance of matching and sorting (n=3): time 0.001249/0.3175, allocations: 313.2 kB / 1.246 GB, free: 4.758 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.976e-05/0.3175, allocations: 51.41 kB / 1.246 GB, free: 4.695 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.771e-05/0.3176, allocations: 117.8 kB / 1.246 GB, free: 4.57 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.537e-05/0.3177, allocations: 29.7 kB / 1.246 GB, free: 4.535 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 5.399e-05/0.3177, allocations: 88.14 kB / 1.246 GB, free: 4.445 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.129e-05/0.3178, allocations: 7.906 kB / 1.246 GB, free: 4.438 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.701e-05/0.3178, allocations: 21.7 kB / 1.246 GB, free: 4.41 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001416/0.318, allocations: 318.8 kB / 1.246 GB, free: 4.09 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003921/0.3184, allocations: 99.88 kB / 1.246 GB, free: 3.992 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000371/0.3188, allocations: 95.86 kB / 1.246 GB, free: 3.898 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000727/0.3195, allocations: 172.6 kB / 1.247 GB, free: 3.727 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.3195, allocations: 0 / 1.247 GB, free: 3.727 MB / 0.9669 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0007922/0.3203, allocations: 214.2 kB / 1.247 GB, free: 3.512 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.307e-05/0.3203, allocations: 4 kB / 1.247 GB, free: 3.508 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.428e-06/0.3203, allocations: 0 / 1.247 GB, free: 3.508 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.198e-05/0.3203, allocations: 4 kB / 1.247 GB, free: 3.504 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002557/0.3206, allocations: 35.88 kB / 1.247 GB, free: 3.469 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.284e-06/0.3206, allocations: 0 / 1.247 GB, free: 3.469 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001963/0.3208, allocations: 35.89 kB / 1.247 GB, free: 3.434 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.505e-05/0.3209, allocations: 7.984 kB / 1.247 GB, free: 3.426 MB / 0.9669 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 9.979e-05/0.321, allocations: 126.3 kB / 1.247 GB, free: 3.293 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.118e-05/0.321, allocations: 3.953 kB / 1.247 GB, free: 3.289 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.521e-05/0.321, allocations: 7.906 kB / 1.247 GB, free: 3.273 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.733e-06/0.3211, allocations: 0 / 1.247 GB, free: 3.273 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/0.3211, allocations: 0 / 1.247 GB, free: 3.273 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.388e-06/0.3211, allocations: 0 / 1.247 GB, free: 3.273 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000254/0.3213, allocations: 217.4 kB / 1.247 GB, free: 3.012 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.3213, allocations: 4 kB / 1.247 GB, free: 3.008 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002443/0.3216, allocations: 39.94 kB / 1.247 GB, free: 2.969 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.984e-06/0.3216, allocations: 0 / 1.247 GB, free: 2.969 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.173e-05/0.3216, allocations: 0 / 1.247 GB, free: 2.969 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.3216, allocations: 0 / 1.247 GB, free: 2.969 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.3216, allocations: 0 / 1.247 GB, free: 2.969 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008738/0.3225, allocations: 315.2 kB / 1.248 GB, free: 2.645 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 5.229e-05/0.3226, allocations: 89.09 kB / 1.248 GB, free: 2.539 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.992e-05/0.3226, allocations: 0 / 1.248 GB, free: 2.539 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002324/0.3228, allocations: 23.95 kB / 1.248 GB, free: 2.516 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.547e-05/0.3229, allocations: 8 kB / 1.248 GB, free: 2.508 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.596e-06/0.3229, allocations: 0 / 1.248 GB, free: 2.508 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 8.506e-05/0.323, allocations: 99.2 kB / 1.248 GB, free: 2.41 MB / 0.9669 GB Notification: Performance of sort global known variables: time 2.51e-07/0.323, allocations: 0 / 1.248 GB, free: 2.41 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002423/0.3232, allocations: 19.94 kB / 1.248 GB, free: 2.391 MB / 0.9669 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.001172/0.3244, allocations: 0.8405 MB / 1.249 GB, free: 1.527 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0008219/0.3252, allocations: 199.7 kB / 1.249 GB, free: 1.332 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 4.268e-06/0.3252, allocations: 0 / 1.249 GB, free: 1.332 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0004001/0.3257, allocations: 99.81 kB / 1.249 GB, free: 1.234 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002427/0.3259, allocations: 6 kB / 1.249 GB, free: 1.23 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003728/0.3296, allocations: 1.839 MB / 1.251 GB, free: 15.31 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000322/0.33, allocations: 0.6924 MB / 1.251 GB, free: 14.59 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 8.018e-05/0.3301, allocations: 20.19 kB / 1.251 GB, free: 14.57 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.108e-05/0.3301, allocations: 19.42 kB / 1.251 GB, free: 14.55 MB / 0.9825 GB Notification: Performance of SimCode: time 3.6e-07/0.3301, allocations: 0 / 1.251 GB, free: 14.55 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02181/0.352, allocations: 1.945 MB / 1.253 GB, free: 12.69 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.745/8.097, allocations: 22.8 kB / 1.253 GB, free: 12.67 MB / 0.9825 GB (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.SmoothMin.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.SmoothMin.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.SmoothMin.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.SmoothMin.sim & python3 -m fmpy simulate --output-file Buildings_latest_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_latest_Buildings_Utilities_Math_Examples_SmoothMin.fmu > Buildings_latest_Buildings.Utilities.Math.Examples.SmoothMin.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.SmoothMin_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_SmoothMin.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.SmoothMin.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches