Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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_9_Buildings_Utilities_Math_Examples_SmoothMin",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.SmoothMin,fileNamePrefix="Buildings_9_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.001513/0.001513, allocations: 104 kB / 15.6 MB, free: 148 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.001663/0.001663, allocations: 196.1 kB / 16.53 MB, free: 6.625 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.359/1.359, allocations: 222.9 MB / 240.2 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.313/2.313, allocations: 390.3 MB / 0.6647 GB, free: 316 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001345/0.001345, allocations: 63.89 kB / 0.8127 GB, free: 14.19 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7118/0.7131, allocations: 140.4 MB / 0.9497 GB, free: 9.07 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothMin): time 0.002245/0.7154, allocations: 1.453 MB / 0.9511 GB, free: 7.926 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0003382/0.7158, allocations: 147.7 kB / 0.9513 GB, free: 7.809 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.011e-05/0.7158, allocations: 1.375 kB / 0.9513 GB, free: 7.809 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.908e-05/0.7158, allocations: 3.984 kB / 0.9513 GB, free: 7.805 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.728e-05/0.7159, allocations: 5.312 kB / 0.9513 GB, free: 7.801 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002233/0.7161, allocations: 32.14 kB / 0.9513 GB, free: 7.777 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 8.19e-05/0.7162, allocations: 37.8 kB / 0.9514 GB, free: 7.758 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001192/0.7164, allocations: 26.97 kB / 0.9514 GB, free: 7.742 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 3.808e-05/0.7164, allocations: 14.81 kB / 0.9514 GB, free: 7.734 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 3.905e-05/0.7164, allocations: 25.36 kB / 0.9514 GB, free: 7.715 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.487e-05/0.7165, allocations: 8.062 kB / 0.9514 GB, free: 7.711 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 8.433e-05/0.7165, allocations: 32.47 kB / 0.9515 GB, free: 7.695 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.665e-05/0.7166, allocations: 14.72 kB / 0.9515 GB, free: 7.684 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.792e-05/0.7166, allocations: 20 kB / 0.9515 GB, free: 7.668 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001332/0.7167, allocations: 56.17 kB / 0.9515 GB, free: 7.633 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.7168, allocations: 4 kB / 0.9515 GB, free: 7.629 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.362e-06/0.7168, allocations: 0 / 0.9515 GB, free: 7.629 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.631e-06/0.7168, allocations: 0 / 0.9515 GB, free: 7.629 MB / 0.7169 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.0003527/0.7171, allocations: 369.7 kB / 0.9519 GB, free: 7.238 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.417e-05/0.7172, allocations: 10.19 kB / 0.9519 GB, free: 7.238 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.727e-05/0.7172, allocations: 39.92 kB / 0.9519 GB, free: 7.191 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001015/0.7182, allocations: 211.1 kB / 0.9521 GB, free: 7.09 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.327e-05/0.7183, allocations: 169.8 kB / 0.9523 GB, free: 6.887 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.807e-06/0.7183, allocations: 3.156 kB / 0.9523 GB, free: 6.887 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.852e-05/0.7183, allocations: 6.094 kB / 0.9523 GB, free: 6.883 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005073/0.7188, allocations: 192 kB / 0.9525 GB, free: 6.766 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.626e-06/0.7189, allocations: 7.875 kB / 0.9525 GB, free: 6.758 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.454e-05/0.7189, allocations: 7.938 kB / 0.9525 GB, free: 6.75 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.598e-06/0.7189, allocations: 1.406 kB / 0.9525 GB, free: 6.75 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007866/0.7197, allocations: 271.8 kB / 0.9528 GB, free: 6.621 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007689/0.7205, allocations: 448.1 kB / 0.9532 GB, free: 6.223 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001053/0.7215, allocations: 289.1 kB / 0.9535 GB, free: 6.062 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003511/0.7219, allocations: 105.1 kB / 0.9536 GB, free: 6.004 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.23e-05/0.7219, allocations: 4 kB / 0.9536 GB, free: 6 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.572e-05/0.7219, allocations: 35.66 kB / 0.9536 GB, free: 5.957 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 1.252e-06/0.7219, allocations: 0 / 0.9536 GB, free: 5.957 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.001163/0.7231, allocations: 307.2 kB / 0.9539 GB, free: 5.789 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.003e-05/0.7232, allocations: 51.41 kB / 0.954 GB, free: 5.727 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.552e-05/0.7232, allocations: 121.5 kB / 0.9541 GB, free: 5.613 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.292e-05/0.7233, allocations: 25.7 kB / 0.9541 GB, free: 5.582 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.484e-05/0.7233, allocations: 99.03 kB / 0.9542 GB, free: 5.484 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.282e-05/0.7233, allocations: 5.219 kB / 0.9542 GB, free: 5.48 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.798e-05/0.7234, allocations: 21.31 kB / 0.9542 GB, free: 5.457 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.098e-05/0.7235, allocations: 325 kB / 0.9545 GB, free: 5.133 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003626/0.7238, allocations: 90.56 kB / 0.9546 GB, free: 5.09 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003454/0.7242, allocations: 91.47 kB / 0.9547 GB, free: 5.047 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006718/0.7249, allocations: 176.9 kB / 0.9549 GB, free: 4.953 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.7249, allocations: 0 / 0.9549 GB, free: 4.953 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0007384/0.7256, allocations: 223.9 kB / 0.9551 GB, free: 4.82 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.888e-05/0.7256, allocations: 5.906 kB / 0.9551 GB, free: 4.82 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.869e-06/0.7257, allocations: 1.375 kB / 0.9551 GB, free: 4.82 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.8e-05/0.7257, allocations: 0 / 0.9551 GB, free: 4.82 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002554/0.7259, allocations: 30.89 kB / 0.9551 GB, free: 4.809 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.272e-06/0.7259, allocations: 1.156 kB / 0.9551 GB, free: 4.809 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001932/0.7261, allocations: 31.2 kB / 0.9552 GB, free: 4.793 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.325e-05/0.7262, allocations: 3.984 kB / 0.9552 GB, free: 4.789 MB / 0.7169 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 6.961e-05/0.7262, allocations: 123.2 kB / 0.9553 GB, free: 4.664 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.108e-05/0.7263, allocations: 1.406 kB / 0.9553 GB, free: 4.664 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.385e-05/0.7263, allocations: 19.06 kB / 0.9553 GB, free: 4.641 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.026e-06/0.7263, allocations: 1.25 kB / 0.9553 GB, free: 4.641 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.7263, allocations: 4 kB / 0.9553 GB, free: 4.637 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.7264, allocations: 3.984 kB / 0.9553 GB, free: 4.633 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001721/0.7265, allocations: 217.4 kB / 0.9555 GB, free: 4.395 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.7265, allocations: 0 / 0.9555 GB, free: 4.395 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002219/0.7268, allocations: 30.58 kB / 0.9555 GB, free: 4.383 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.7268, allocations: 0 / 0.9555 GB, free: 4.383 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.26e-05/0.7268, allocations: 5.234 kB / 0.9555 GB, free: 4.379 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.373e-06/0.7268, allocations: 0 / 0.9555 GB, free: 4.379 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.7268, allocations: 1.156 kB / 0.9555 GB, free: 4.379 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007183/0.7275, allocations: 317.6 kB / 0.9559 GB, free: 4.148 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.703e-05/0.7276, allocations: 81.02 kB / 0.9559 GB, free: 4.051 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.256e-05/0.7276, allocations: 0 / 0.9559 GB, free: 4.051 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002176/0.7278, allocations: 29.89 kB / 0.956 GB, free: 4.035 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.183e-05/0.7279, allocations: 9.922 kB / 0.956 GB, free: 4.027 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.286e-06/0.7279, allocations: 2.031 kB / 0.956 GB, free: 4.027 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.019e-05/0.7279, allocations: 92.67 kB / 0.9561 GB, free: 3.945 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7279, allocations: 0 / 0.9561 GB, free: 3.945 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002343/0.7282, allocations: 15.62 kB / 0.9561 GB, free: 3.941 MB / 0.7169 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.001006/0.7292, allocations: 0.8341 MB / 0.9569 GB, free: 3.191 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0007305/0.7299, allocations: 203.1 kB / 0.9571 GB, free: 3.09 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.7299, allocations: 0 / 0.9571 GB, free: 3.09 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0003319/0.7303, allocations: 94.25 kB / 0.9572 GB, free: 3.047 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002557/0.7305, allocations: 14.73 kB / 0.9572 GB, free: 3.035 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003104/0.7336, allocations: 1.835 MB / 0.959 GB, free: 1.512 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001095/0.7338, allocations: 0.6963 MB / 0.9597 GB, free: 0.8008 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 8.176e-05/0.7339, allocations: 21.11 kB / 0.9597 GB, free: 0.793 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.537e-05/0.7339, allocations: 17.59 kB / 0.9597 GB, free: 0.7773 MB / 0.7169 GB Notification: Performance of SimCode: time 1.232e-06/0.7339, allocations: 0 / 0.9597 GB, free: 0.7773 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01766/0.7516, allocations: 1.925 MB / 0.9616 GB, free: 15.71 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.181/7.933, allocations: 6.469 kB / 0.9616 GB, free: 15.71 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Utilities.Math.Examples.SmoothMin.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.SmoothMin.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.SmoothMin.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.SmoothMin.sim & python3 -m fmpy simulate --output-file Buildings_9_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_9_Buildings_Utilities_Math_Examples_SmoothMin.fmu > Buildings_9_Buildings.Utilities.Math.Examples.SmoothMin.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.SmoothMin_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_SmoothMin.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.SmoothMin.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches