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.007715/0.007715, allocations: 99.42 kB / 15.73 MB, free: 6.445 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.001793/0.001793, allocations: 194.9 kB / 16.67 MB, free: 6.352 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.565/1.565, allocations: 222.9 MB / 240.4 MB, free: 4.289 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.768/2.768, allocations: 472.7 MB / 0.7453 GB, free: 4.543 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001333/0.001333, allocations: 60.12 kB / 1.069 GB, free: 9.645 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.267/0.2684, allocations: 159.9 MB / 1.225 GB, free: 9.621 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothMin): time 0.002451/0.2709, allocations: 1.465 MB / 1.227 GB, free: 8.148 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.0004068/0.2713, allocations: 139.6 kB / 1.227 GB, free: 8.012 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.566e-05/0.2714, allocations: 0 / 1.227 GB, free: 8.012 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 4.503e-05/0.2714, allocations: 11.86 kB / 1.227 GB, free: 8 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 6.568e-05/0.2715, allocations: 3.938 kB / 1.227 GB, free: 7.996 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002429/0.2718, allocations: 31.91 kB / 1.227 GB, free: 7.965 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001028/0.2719, allocations: 39.86 kB / 1.227 GB, free: 7.926 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001241/0.272, allocations: 23.97 kB / 1.227 GB, free: 7.902 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 4.673e-05/0.2721, allocations: 19.92 kB / 1.227 GB, free: 7.883 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 5.135e-05/0.2721, allocations: 23.92 kB / 1.227 GB, free: 7.859 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.608e-05/0.2721, allocations: 4 kB / 1.227 GB, free: 7.855 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 9.152e-05/0.2722, allocations: 31.97 kB / 1.227 GB, free: 7.824 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2.294e-05/0.2723, allocations: 7.938 kB / 1.227 GB, free: 7.816 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 3.246e-05/0.2723, allocations: 19.94 kB / 1.227 GB, free: 7.797 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001511/0.2725, allocations: 71.72 kB / 1.227 GB, free: 7.727 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.2725, allocations: 0 / 1.227 GB, free: 7.727 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.393e-06/0.2725, allocations: 0 / 1.227 GB, free: 7.727 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 8.125e-06/0.2725, allocations: 0 / 1.227 GB, free: 7.727 MB / 0.9825 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.0004571/0.273, allocations: 363.3 kB / 1.227 GB, free: 7.32 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.873e-05/0.273, allocations: 8.031 kB / 1.227 GB, free: 7.312 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.342e-05/0.273, allocations: 38.69 kB / 1.227 GB, free: 7.266 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001088/0.2741, allocations: 216.5 kB / 1.228 GB, free: 7.055 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001114/0.2743, allocations: 168.3 kB / 1.228 GB, free: 6.852 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.292e-05/0.2743, allocations: 384 / 1.228 GB, free: 6.852 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.25e-05/0.2743, allocations: 8.375 kB / 1.228 GB, free: 6.844 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005661/0.2749, allocations: 198 kB / 1.228 GB, free: 6.645 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.957e-06/0.2749, allocations: 3.938 kB / 1.228 GB, free: 6.641 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.065e-05/0.2749, allocations: 4 kB / 1.228 GB, free: 6.637 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.648e-06/0.2749, allocations: 4 kB / 1.228 GB, free: 6.633 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008602/0.2758, allocations: 279.6 kB / 1.228 GB, free: 6.359 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008754/0.2767, allocations: 437.2 kB / 1.229 GB, free: 5.883 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001124/0.2778, allocations: 290.1 kB / 1.229 GB, free: 5.59 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003682/0.2782, allocations: 100.8 kB / 1.229 GB, free: 5.488 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.301e-05/0.2782, allocations: 4 kB / 1.229 GB, free: 5.484 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.554e-05/0.2783, allocations: 34.5 kB / 1.229 GB, free: 5.441 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=3): time 1.243e-06/0.2783, allocations: 4 kB / 1.229 GB, free: 5.438 MB / 0.9825 GB Notification: Performance of matching and sorting (n=3): time 0.001201/0.2795, allocations: 305.3 kB / 1.229 GB, free: 5.133 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.939e-05/0.2795, allocations: 51.41 kB / 1.229 GB, free: 5.07 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.196e-05/0.2796, allocations: 125.8 kB / 1.23 GB, free: 4.938 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.949e-05/0.2796, allocations: 25.7 kB / 1.23 GB, free: 4.906 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 5.099e-05/0.2797, allocations: 88.08 kB / 1.23 GB, free: 4.816 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.388e-05/0.2797, allocations: 11.91 kB / 1.23 GB, free: 4.805 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.2e-05/0.2798, allocations: 25.7 kB / 1.23 GB, free: 4.773 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001021/0.2799, allocations: 318.8 kB / 1.23 GB, free: 4.453 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003678/0.2803, allocations: 91.88 kB / 1.23 GB, free: 4.363 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00035/0.2806, allocations: 96 kB / 1.23 GB, free: 4.27 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006769/0.2813, allocations: 180.7 kB / 1.23 GB, free: 4.09 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.315e-06/0.2813, allocations: 0 / 1.23 GB, free: 4.09 MB / 0.9825 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0007526/0.2821, allocations: 217.5 kB / 1.231 GB, free: 3.871 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.616e-05/0.2821, allocations: 4 kB / 1.231 GB, free: 3.867 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.388e-06/0.2821, allocations: 0 / 1.231 GB, free: 3.867 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.42e-05/0.2821, allocations: 0 / 1.231 GB, free: 3.867 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002528/0.2824, allocations: 35.94 kB / 1.231 GB, free: 3.832 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.57e-06/0.2824, allocations: 0 / 1.231 GB, free: 3.832 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001942/0.2826, allocations: 35.91 kB / 1.231 GB, free: 3.797 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.285e-05/0.2826, allocations: 0 / 1.231 GB, free: 3.797 MB / 0.9825 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.111e-05/0.2827, allocations: 126.2 kB / 1.231 GB, free: 3.664 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.288e-05/0.2828, allocations: 4 kB / 1.231 GB, free: 3.66 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.402e-05/0.2828, allocations: 7.906 kB / 1.231 GB, free: 3.641 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.474e-06/0.2828, allocations: 0 / 1.231 GB, free: 3.641 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.057e-06/0.2829, allocations: 4 kB / 1.231 GB, free: 3.637 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.515e-06/0.2829, allocations: 4 kB / 1.231 GB, free: 3.633 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002369/0.2831, allocations: 213.6 kB / 1.231 GB, free: 3.375 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.995e-06/0.2831, allocations: 0 / 1.231 GB, free: 3.375 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002346/0.2834, allocations: 35.88 kB / 1.231 GB, free: 3.34 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.765e-06/0.2834, allocations: 0 / 1.231 GB, free: 3.34 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.552e-05/0.2834, allocations: 4 kB / 1.231 GB, free: 3.336 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.2834, allocations: 0 / 1.231 GB, free: 3.336 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.2834, allocations: 0 / 1.231 GB, free: 3.336 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008249/0.2842, allocations: 315.2 kB / 1.231 GB, free: 3.012 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 3.825e-05/0.2843, allocations: 81.06 kB / 1.231 GB, free: 2.914 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.301e-05/0.2843, allocations: 3.984 kB / 1.231 GB, free: 2.91 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002292/0.2845, allocations: 39.89 kB / 1.231 GB, free: 2.871 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.523e-05/0.2846, allocations: 4 kB / 1.231 GB, free: 2.867 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.254e-05/0.2846, allocations: 4 kB / 1.231 GB, free: 2.863 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 5.384e-05/0.2847, allocations: 95.58 kB / 1.232 GB, free: 2.77 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2847, allocations: 0 / 1.232 GB, free: 2.77 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002471/0.2849, allocations: 15.94 kB / 1.232 GB, free: 2.754 MB / 0.9825 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.001036/0.286, allocations: 0.8373 MB / 1.232 GB, free: 1.891 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0007656/0.2867, allocations: 199.7 kB / 1.233 GB, free: 1.695 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.2868, allocations: 0 / 1.233 GB, free: 1.695 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0003888/0.2871, allocations: 103.9 kB / 1.233 GB, free: 1.594 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002492/0.2874, allocations: 8 kB / 1.233 GB, free: 1.586 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003475/0.2909, allocations: 1.837 MB / 1.234 GB, free: 15.67 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002388/0.2911, allocations: 0.6846 MB / 1.235 GB, free: 14.96 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 8.579e-05/0.2912, allocations: 20.23 kB / 1.235 GB, free: 14.94 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.85e-05/0.2913, allocations: 15.42 kB / 1.235 GB, free: 14.93 MB / 0.9981 GB Notification: Performance of SimCode: time 3.91e-07/0.2913, allocations: 4 kB / 1.235 GB, free: 14.92 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01805/0.3094, allocations: 1.968 MB / 1.237 GB, free: 13.04 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.733/8.042, allocations: 11.56 kB / 1.237 GB, free: 13.03 MB / 0.9981 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