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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001127/0.001127, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001112/0.001112, allocations: 195.5 kB / 16.53 MB, free: 6.664 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.348/1.348, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.707/2.707, allocations: 469.4 MB / 0.742 GB, free: 7.758 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001349/0.00135, allocations: 67.44 kB / 0.9083 GB, free: 34.49 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2921/0.2935, allocations: 159.1 MB / 1.064 GB, free: 14.59 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothMin): time 0.002943/0.2965, allocations: 1.465 MB / 1.065 GB, free: 13.1 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0004034/0.2969, allocations: 139.5 kB / 1.065 GB, free: 12.96 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.631e-05/0.297, allocations: 0 / 1.065 GB, free: 12.96 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 4.26e-05/0.297, allocations: 7.922 kB / 1.065 GB, free: 12.95 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 6.971e-05/0.2971, allocations: 3.938 kB / 1.065 GB, free: 12.95 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002477/0.2974, allocations: 39.89 kB / 1.065 GB, free: 12.91 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001143/0.2975, allocations: 39.86 kB / 1.065 GB, free: 12.87 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001287/0.2976, allocations: 23.98 kB / 1.065 GB, free: 12.85 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 5.071e-05/0.2977, allocations: 11.94 kB / 1.065 GB, free: 12.84 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 5.213e-05/0.2977, allocations: 23.92 kB / 1.065 GB, free: 12.81 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.756e-05/0.2978, allocations: 4 kB / 1.065 GB, free: 12.81 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 9.89e-05/0.2979, allocations: 35.95 kB / 1.065 GB, free: 12.77 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.094e-05/0.2979, allocations: 11.98 kB / 1.065 GB, free: 12.76 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 3.315e-05/0.2979, allocations: 23.88 kB / 1.065 GB, free: 12.74 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001492/0.2981, allocations: 63.78 kB / 1.066 GB, free: 12.68 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.958e-06/0.2981, allocations: 0 / 1.066 GB, free: 12.68 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.403e-06/0.2981, allocations: 0 / 1.066 GB, free: 12.68 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.034e-05/0.2981, allocations: 0 / 1.066 GB, free: 12.68 MB / 0.8262 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.0004623/0.2986, allocations: 359.7 kB / 1.066 GB, free: 12.27 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.019e-05/0.2986, allocations: 8.031 kB / 1.066 GB, free: 12.27 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.03e-05/0.2987, allocations: 38.75 kB / 1.066 GB, free: 12.22 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001164/0.2999, allocations: 212.5 kB / 1.066 GB, free: 12.01 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001136/0.3, allocations: 172.3 kB / 1.066 GB, free: 11.8 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.134e-05/0.3, allocations: 4.375 kB / 1.066 GB, free: 11.8 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.925e-05/0.3, allocations: 4.375 kB / 1.066 GB, free: 11.8 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005914/0.3006, allocations: 194 kB / 1.066 GB, free: 11.6 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.019e-05/0.3006, allocations: 3.938 kB / 1.066 GB, free: 11.6 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.531e-05/0.3007, allocations: 0 / 1.066 GB, free: 11.6 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.772e-06/0.3007, allocations: 4 kB / 1.066 GB, free: 11.59 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008784/0.3016, allocations: 279.6 kB / 1.067 GB, free: 11.32 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009169/0.3025, allocations: 437.4 kB / 1.067 GB, free: 10.84 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001176/0.3037, allocations: 290.1 kB / 1.067 GB, free: 10.55 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00037/0.3041, allocations: 96.8 kB / 1.068 GB, free: 10.45 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.493e-05/0.3041, allocations: 7.984 kB / 1.068 GB, free: 10.45 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.342e-05/0.3041, allocations: 34.56 kB / 1.068 GB, free: 10.4 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=3): time 1.373e-06/0.3041, allocations: 0 / 1.068 GB, free: 10.4 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3): time 0.001209/0.3053, allocations: 313.2 kB / 1.068 GB, free: 10.09 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.781e-05/0.3054, allocations: 51.41 kB / 1.068 GB, free: 10.03 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.019e-05/0.3055, allocations: 125.8 kB / 1.068 GB, free: 9.895 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.64e-05/0.3055, allocations: 25.7 kB / 1.068 GB, free: 9.863 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 4.895e-05/0.3056, allocations: 93.8 kB / 1.068 GB, free: 9.77 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.371e-05/0.3056, allocations: 11.75 kB / 1.068 GB, free: 9.758 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.332e-05/0.3056, allocations: 17.72 kB / 1.068 GB, free: 9.734 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 9.807e-05/0.3058, allocations: 326.7 kB / 1.068 GB, free: 9.406 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003793/0.3061, allocations: 95.88 kB / 1.069 GB, free: 9.312 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000356/0.3065, allocations: 92.06 kB / 1.069 GB, free: 9.223 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006905/0.3072, allocations: 176.7 kB / 1.069 GB, free: 9.047 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.454e-06/0.3072, allocations: 0 / 1.069 GB, free: 9.047 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0007832/0.308, allocations: 213.4 kB / 1.069 GB, free: 8.832 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.488e-05/0.308, allocations: 4 kB / 1.069 GB, free: 8.828 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.24e-06/0.308, allocations: 4 kB / 1.069 GB, free: 8.824 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.37e-05/0.3081, allocations: 3.984 kB / 1.069 GB, free: 8.82 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002653/0.3083, allocations: 35.95 kB / 1.069 GB, free: 8.785 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.641e-06/0.3083, allocations: 0 / 1.069 GB, free: 8.785 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002005/0.3085, allocations: 27.95 kB / 1.069 GB, free: 8.758 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.487e-05/0.3086, allocations: 3.984 kB / 1.069 GB, free: 8.754 MB / 0.8262 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.449e-05/0.3087, allocations: 121.8 kB / 1.069 GB, free: 8.625 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.58e-05/0.3087, allocations: 7.906 kB / 1.069 GB, free: 8.617 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.916e-05/0.3088, allocations: 3.906 kB / 1.069 GB, free: 8.609 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.717e-06/0.3088, allocations: 8 kB / 1.069 GB, free: 8.602 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.592e-06/0.3088, allocations: 3.984 kB / 1.069 GB, free: 8.598 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.086e-06/0.3088, allocations: 0 / 1.069 GB, free: 8.598 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002118/0.309, allocations: 209.5 kB / 1.069 GB, free: 8.344 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.309, allocations: 0 / 1.069 GB, free: 8.344 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002424/0.3093, allocations: 31.95 kB / 1.069 GB, free: 8.312 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.158e-06/0.3093, allocations: 4 kB / 1.069 GB, free: 8.309 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.288e-05/0.3093, allocations: 0 / 1.069 GB, free: 8.309 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.987e-06/0.3093, allocations: 3.984 kB / 1.069 GB, free: 8.305 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.076e-06/0.3093, allocations: 0 / 1.069 GB, free: 8.305 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008463/0.3102, allocations: 323.1 kB / 1.07 GB, free: 7.973 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.98e-05/0.3102, allocations: 77.11 kB / 1.07 GB, free: 7.879 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.629e-05/0.3102, allocations: 4 kB / 1.07 GB, free: 7.875 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002358/0.3105, allocations: 24.33 kB / 1.07 GB, free: 7.852 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.094e-05/0.3105, allocations: 7.984 kB / 1.07 GB, free: 7.844 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.895e-06/0.3106, allocations: 0 / 1.07 GB, free: 7.844 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 6.927e-05/0.3106, allocations: 103.2 kB / 1.07 GB, free: 7.742 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.323e-06/0.3106, allocations: 0 / 1.07 GB, free: 7.742 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002426/0.3109, allocations: 19.88 kB / 1.07 GB, free: 7.723 MB / 0.8262 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.001068/0.312, allocations: 0.8416 MB / 1.071 GB, free: 6.855 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0007592/0.3127, allocations: 191.7 kB / 1.071 GB, free: 6.668 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.3127, allocations: 4 kB / 1.071 GB, free: 6.664 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0003707/0.3131, allocations: 103.8 kB / 1.071 GB, free: 6.562 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002542/0.3134, allocations: 7.984 kB / 1.071 GB, free: 6.555 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003438/0.3168, allocations: 1.83 MB / 1.073 GB, free: 4.645 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002021/0.317, allocations: 0.6885 MB / 1.074 GB, free: 3.93 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 8.622e-05/0.3171, allocations: 19.98 kB / 1.074 GB, free: 3.91 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.65e-05/0.3172, allocations: 19.44 kB / 1.074 GB, free: 3.891 MB / 0.8262 GB Notification: Performance of SimCode: time 3.01e-07/0.3172, allocations: 0 / 1.074 GB, free: 3.891 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01786/0.3351, allocations: 1.93 MB / 1.076 GB, free: 2.027 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.304/7.64, allocations: 22.08 kB / 1.076 GB, free: 2.012 MB / 0.8262 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 50 --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