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.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.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.00167/0.00167, allocations: 112.5 kB / 15.73 MB, free: 76 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.001949/0.001949, allocations: 191.2 kB / 16.66 MB, free: 6.582 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.376/1.376, allocations: 222.9 MB / 240.4 MB, free: 4.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.766/2.766, allocations: 469.4 MB / 0.7421 GB, free: 7.672 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001335/0.001335, allocations: 64.12 kB / 1.064 GB, free: 13.9 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2687/0.2701, allocations: 159.1 MB / 1.22 GB, free: 14.66 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothMin): time 0.002654/0.2727, allocations: 1.461 MB / 1.221 GB, free: 13.18 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.0003994/0.2732, allocations: 139.6 kB / 1.221 GB, free: 13.05 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.804e-05/0.2732, allocations: 3.938 kB / 1.221 GB, free: 13.04 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 4.315e-05/0.2733, allocations: 3.938 kB / 1.221 GB, free: 13.04 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 6.368e-05/0.2734, allocations: 7.938 kB / 1.221 GB, free: 13.03 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002464/0.2736, allocations: 27.91 kB / 1.221 GB, free: 13 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.000108/0.2737, allocations: 43.84 kB / 1.221 GB, free: 12.96 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000125/0.2739, allocations: 23.98 kB / 1.221 GB, free: 12.94 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 5.221e-05/0.2739, allocations: 19.92 kB / 1.221 GB, free: 12.92 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 4.736e-05/0.274, allocations: 19.92 kB / 1.221 GB, free: 12.9 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.743e-05/0.274, allocations: 4 kB / 1.221 GB, free: 12.89 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 9.948e-05/0.2741, allocations: 39.97 kB / 1.221 GB, free: 12.86 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 1.929e-05/0.2741, allocations: 4 kB / 1.221 GB, free: 12.85 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 4.11e-05/0.2742, allocations: 19.86 kB / 1.222 GB, free: 12.83 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001529/0.2743, allocations: 63.73 kB / 1.222 GB, free: 12.77 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.2743, allocations: 0 / 1.222 GB, free: 12.77 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.573e-06/0.2744, allocations: 0 / 1.222 GB, free: 12.77 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 5.57e-06/0.2744, allocations: 8 kB / 1.222 GB, free: 12.76 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.0004852/0.2749, allocations: 363.3 kB / 1.222 GB, free: 12.36 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.177e-05/0.2749, allocations: 8.031 kB / 1.222 GB, free: 12.35 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.267e-05/0.275, allocations: 34.69 kB / 1.222 GB, free: 12.3 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001157/0.2761, allocations: 220.5 kB / 1.222 GB, free: 12.09 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000128/0.2763, allocations: 164.3 kB / 1.222 GB, free: 11.89 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.539e-05/0.2763, allocations: 4.375 kB / 1.222 GB, free: 11.89 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.075e-05/0.2763, allocations: 4.375 kB / 1.222 GB, free: 11.88 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006068/0.2769, allocations: 198 kB / 1.223 GB, free: 11.68 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.08e-05/0.2769, allocations: 7.922 kB / 1.223 GB, free: 11.68 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.717e-05/0.277, allocations: 4 kB / 1.223 GB, free: 11.67 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.509e-06/0.277, allocations: 4 kB / 1.223 GB, free: 11.67 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008753/0.2779, allocations: 275.6 kB / 1.223 GB, free: 11.4 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009573/0.2788, allocations: 441.3 kB / 1.223 GB, free: 10.91 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00118/0.28, allocations: 286.2 kB / 1.224 GB, free: 10.62 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003861/0.2804, allocations: 100.8 kB / 1.224 GB, free: 10.52 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 3.059e-05/0.2805, allocations: 0 / 1.224 GB, free: 10.52 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.945e-05/0.2805, allocations: 34.5 kB / 1.224 GB, free: 10.48 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=3): time 1.242e-06/0.2805, allocations: 4 kB / 1.224 GB, free: 10.48 MB / 0.9825 GB Notification: Performance of matching and sorting (n=3): time 0.001246/0.2818, allocations: 301.3 kB / 1.224 GB, free: 10.18 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.823e-05/0.2818, allocations: 63.39 kB / 1.224 GB, free: 10.1 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001049/0.2819, allocations: 121.7 kB / 1.224 GB, free: 9.973 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.758e-05/0.282, allocations: 29.7 kB / 1.224 GB, free: 9.938 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 5.302e-05/0.282, allocations: 88.08 kB / 1.224 GB, free: 9.848 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 3.144e-05/0.282, allocations: 19.89 kB / 1.224 GB, free: 9.828 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.401e-05/0.2821, allocations: 13.72 kB / 1.224 GB, free: 9.809 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001124/0.2822, allocations: 322.8 kB / 1.225 GB, free: 9.484 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003792/0.2826, allocations: 95.88 kB / 1.225 GB, free: 9.391 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003641/0.283, allocations: 96 kB / 1.225 GB, free: 9.297 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006897/0.2837, allocations: 176.7 kB / 1.225 GB, free: 9.121 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.2837, allocations: 0 / 1.225 GB, free: 9.121 MB / 0.9825 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000772/0.2845, allocations: 213.5 kB / 1.225 GB, free: 8.906 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.991e-05/0.2845, allocations: 8 kB / 1.225 GB, free: 8.898 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.092e-06/0.2845, allocations: 0 / 1.225 GB, free: 8.898 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.353e-05/0.2845, allocations: 0 / 1.225 GB, free: 8.898 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002686/0.2848, allocations: 35.94 kB / 1.225 GB, free: 8.863 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.603e-06/0.2848, allocations: 0 / 1.225 GB, free: 8.863 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001999/0.285, allocations: 27.91 kB / 1.225 GB, free: 8.836 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.352e-05/0.2851, allocations: 4 kB / 1.225 GB, free: 8.832 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.014e-05/0.2852, allocations: 130.2 kB / 1.225 GB, free: 8.695 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.266e-05/0.2852, allocations: 0 / 1.225 GB, free: 8.695 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.8e-05/0.2852, allocations: 11.91 kB / 1.225 GB, free: 8.676 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.834e-06/0.2853, allocations: 0 / 1.225 GB, free: 8.676 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/0.2853, allocations: 0 / 1.225 GB, free: 8.676 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.645e-06/0.2853, allocations: 0 / 1.225 GB, free: 8.676 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002276/0.2855, allocations: 217.5 kB / 1.226 GB, free: 8.414 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.2855, allocations: 0 / 1.226 GB, free: 8.414 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00024/0.2858, allocations: 39.94 kB / 1.226 GB, free: 8.375 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.615e-06/0.2858, allocations: 0 / 1.226 GB, free: 8.375 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.148e-05/0.2858, allocations: 0 / 1.226 GB, free: 8.375 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.392e-06/0.2858, allocations: 0 / 1.226 GB, free: 8.375 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.2858, allocations: 4 kB / 1.226 GB, free: 8.371 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008311/0.2866, allocations: 315.2 kB / 1.226 GB, free: 8.047 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 4.544e-05/0.2867, allocations: 85.06 kB / 1.226 GB, free: 7.945 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.713e-05/0.2867, allocations: 0 / 1.226 GB, free: 7.945 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002354/0.287, allocations: 35.83 kB / 1.226 GB, free: 7.91 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.718e-05/0.287, allocations: 4 kB / 1.226 GB, free: 7.906 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.989e-06/0.287, allocations: 7.984 kB / 1.226 GB, free: 7.898 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 5.97e-05/0.2871, allocations: 99.58 kB / 1.226 GB, free: 7.801 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2871, allocations: 0 / 1.226 GB, free: 7.801 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002522/0.2874, allocations: 15.94 kB / 1.226 GB, free: 7.785 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.001164/0.2885, allocations: 0.8373 MB / 1.227 GB, free: 6.922 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0008048/0.2893, allocations: 203.7 kB / 1.227 GB, free: 6.723 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.2894, allocations: 0 / 1.227 GB, free: 6.723 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0003724/0.2897, allocations: 95.88 kB / 1.227 GB, free: 6.629 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002578/0.29, allocations: 8 kB / 1.227 GB, free: 6.621 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003578/0.2936, allocations: 1.838 MB / 1.229 GB, free: 4.703 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002933/0.2939, allocations: 0.6885 MB / 1.23 GB, free: 3.988 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 9.201e-05/0.294, allocations: 20.23 kB / 1.23 GB, free: 3.969 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.861e-05/0.2941, allocations: 15.44 kB / 1.23 GB, free: 3.953 MB / 0.9825 GB Notification: Performance of SimCode: time 6.82e-07/0.2941, allocations: 0 / 1.23 GB, free: 3.953 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01789/0.312, allocations: 1.967 MB / 1.232 GB, free: 2.07 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.678/7.99, allocations: 16.27 kB / 1.232 GB, free: 2.059 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 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