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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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: translateModel(Buildings.Utilities.Math.Examples.SmoothMin,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|smoLim.2..y|smoLim.1..y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.SmoothMin") translateModel(Buildings.Utilities.Math.Examples.SmoothMin,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|smoLim.2..y|smoLim.1..y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.SmoothMin") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001024/0.001023, allocations: 100.8 kB / 15.06 MB, free: 1.094 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.0009322/0.0009323, allocations: 177.3 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.433/1.433, allocations: 223.2 MB / 239.9 MB, free: 5.445 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.705/2.705, allocations: 436.5 MB / 0.7104 GB, free: 7.797 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003619/0.0003619, allocations: 11.98 kB / 0.8708 GB, free: 4.754 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.921/0.9213, allocations: 153.7 MB / 1.021 GB, free: 1.039 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothMin): time 0.001799/0.9232, allocations: 1.188 MB / 1.022 GB, free: 15.84 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.0003327/0.9236, allocations: 128.5 kB / 1.022 GB, free: 15.71 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.975e-05/0.9236, allocations: 0 / 1.022 GB, free: 15.71 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 3.354e-05/0.9236, allocations: 0 / 1.022 GB, free: 15.71 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 7.179e-05/0.9237, allocations: 15.92 kB / 1.022 GB, free: 15.7 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.000194/0.9239, allocations: 23.91 kB / 1.022 GB, free: 15.68 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 7.463e-05/0.924, allocations: 19.97 kB / 1.022 GB, free: 15.66 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001223/0.9241, allocations: 23.98 kB / 1.022 GB, free: 15.63 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 5.039e-05/0.9242, allocations: 11.94 kB / 1.022 GB, free: 15.62 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 4.057e-05/0.9242, allocations: 11.92 kB / 1.022 GB, free: 15.61 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.244e-05/0.9242, allocations: 0 / 1.022 GB, free: 15.61 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 8.302e-05/0.9243, allocations: 31.97 kB / 1.022 GB, free: 15.58 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 1.056e-05/0.9244, allocations: 3.938 kB / 1.022 GB, free: 15.57 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 2.754e-05/0.9244, allocations: 33.7 kB / 1.022 GB, free: 15.54 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 9.988e-05/0.9245, allocations: 35.92 kB / 1.022 GB, free: 15.5 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 2.935e-06/0.9245, allocations: 4 kB / 1.022 GB, free: 15.5 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.913e-06/0.9245, allocations: 4 kB / 1.022 GB, free: 15.49 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.649e-06/0.9245, allocations: 0 / 1.022 GB, free: 15.49 MB / 0.7794 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.0004869/0.925, allocations: 361.2 kB / 1.023 GB, free: 15.09 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.147e-05/0.9251, allocations: 11.98 kB / 1.023 GB, free: 15.08 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001162/0.9262, allocations: 247.5 kB / 1.023 GB, free: 14.84 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001424/0.9264, allocations: 163.1 kB / 1.023 GB, free: 14.64 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.986e-05/0.9264, allocations: 4 kB / 1.023 GB, free: 14.64 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.683e-05/0.9264, allocations: 3.938 kB / 1.023 GB, free: 14.63 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006001/0.927, allocations: 217.4 kB / 1.023 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.705e-06/0.9271, allocations: 3.938 kB / 1.023 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.501e-05/0.9271, allocations: 0 / 1.023 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.719e-06/0.9271, allocations: 0 / 1.023 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008945/0.928, allocations: 327.6 kB / 1.024 GB, free: 14.09 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009334/0.9289, allocations: 461.1 kB / 1.024 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001155/0.9301, allocations: 346.1 kB / 1.024 GB, free: 13.24 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.133e-05/0.9301, allocations: 0 / 1.024 GB, free: 13.24 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.311e-05/0.9302, allocations: 30.56 kB / 1.024 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=3): time 1.022e-06/0.9302, allocations: 0 / 1.024 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3): time 0.001244/0.9314, allocations: 373.3 kB / 1.025 GB, free: 12.83 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.451e-05/0.9315, allocations: 51.41 kB / 1.025 GB, free: 12.77 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001007/0.9316, allocations: 118 kB / 1.025 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.82e-05/0.9316, allocations: 25.7 kB / 1.025 GB, free: 12.61 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.224e-05/0.9317, allocations: 92.12 kB / 1.025 GB, free: 12.52 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.137e-05/0.9317, allocations: 3.906 kB / 1.025 GB, free: 12.51 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.987e-05/0.9317, allocations: 0 / 1.025 GB, free: 12.51 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001918/0.9319, allocations: 322.8 kB / 1.025 GB, free: 12.19 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004517/0.9324, allocations: 115.9 kB / 1.025 GB, free: 12.07 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003545/0.9327, allocations: 115.9 kB / 1.026 GB, free: 11.96 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003515/0.9331, allocations: 99.89 kB / 1.026 GB, free: 11.86 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.824e-06/0.9331, allocations: 4 kB / 1.026 GB, free: 11.86 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0007699/0.9339, allocations: 257.6 kB / 1.026 GB, free: 11.6 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.727e-05/0.9339, allocations: 5.719 kB / 1.026 GB, free: 11.6 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.771e-06/0.9339, allocations: 0 / 1.026 GB, free: 11.6 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.437e-05/0.9339, allocations: 4.031 kB / 1.026 GB, free: 11.59 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002652/0.9342, allocations: 47.94 kB / 1.026 GB, free: 11.55 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.29e-06/0.9342, allocations: 0 / 1.026 GB, free: 11.55 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002041/0.9344, allocations: 39.95 kB / 1.026 GB, free: 11.51 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.172e-05/0.9344, allocations: 0 / 1.026 GB, free: 11.51 MB / 0.7794 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001089/0.9346, allocations: 123.7 kB / 1.026 GB, free: 11.38 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.291e-05/0.9346, allocations: 11.91 kB / 1.026 GB, free: 11.37 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.661e-05/0.9346, allocations: 7.844 kB / 1.026 GB, free: 11.36 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.515e-06/0.9347, allocations: 4 kB / 1.026 GB, free: 11.35 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.027e-06/0.9347, allocations: 0 / 1.026 GB, free: 11.35 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.204e-06/0.9347, allocations: 0 / 1.026 GB, free: 11.35 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002282/0.9349, allocations: 213.5 kB / 1.026 GB, free: 11.09 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.92e-07/0.9349, allocations: 0 / 1.026 GB, free: 11.09 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002359/0.9351, allocations: 48.31 kB / 1.026 GB, free: 11.05 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.9352, allocations: 0 / 1.026 GB, free: 11.05 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.023e-05/0.9352, allocations: 0 / 1.026 GB, free: 11.05 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.9352, allocations: 0 / 1.026 GB, free: 11.05 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.253e-06/0.9352, allocations: 3.938 kB / 1.026 GB, free: 11.04 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008328/0.936, allocations: 355.2 kB / 1.027 GB, free: 10.68 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.919e-05/0.9361, allocations: 89 kB / 1.027 GB, free: 10.57 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.348e-05/0.9361, allocations: 8 kB / 1.027 GB, free: 10.57 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002322/0.9364, allocations: 39.95 kB / 1.027 GB, free: 10.53 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.298e-05/0.9364, allocations: 0 / 1.027 GB, free: 10.53 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.514e-06/0.9364, allocations: 0 / 1.027 GB, free: 10.53 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 6.601e-05/0.9365, allocations: 95.27 kB / 1.027 GB, free: 10.43 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.1e-07/0.9365, allocations: 0 / 1.027 GB, free: 10.43 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002311/0.9367, allocations: 12 kB / 1.027 GB, free: 10.42 MB / 0.7794 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001329/0.9369, allocations: 107.2 kB / 1.027 GB, free: 10.3 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0007937/0.9377, allocations: 231.7 kB / 1.027 GB, free: 10.08 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.9377, allocations: 0 / 1.027 GB, free: 10.08 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0003781/0.9381, allocations: 119.9 kB / 1.027 GB, free: 9.961 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001794/0.9382, allocations: 7.953 kB / 1.027 GB, free: 9.953 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009576/0.9392, allocations: 296.4 kB / 1.028 GB, free: 9.641 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003484/0.9396, allocations: 0.6926 MB / 1.028 GB, free: 8.922 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 8.52e-05/0.9397, allocations: 19.98 kB / 1.028 GB, free: 8.902 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.839e-05/0.9397, allocations: 11.44 kB / 1.028 GB, free: 8.891 MB / 0.7794 GB Notification: Performance of SimCode: time 4.91e-07/0.9397, allocations: 0 / 1.028 GB, free: 8.891 MB / 0.7794 GB Notification: Performance of Templates: time 0.002981/0.9427, allocations: 0.8146 MB / 1.029 GB, free: 8.074 MB / 0.7794 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.SmoothMin.makefile (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 & ./Buildings_latest_Buildings.Utilities.Math.Examples.SmoothMin -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.SmoothMin.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.SmoothMin_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_SmoothMin.csv","../files/Buildings_latest_Buildings.Utilities.Math.Examples.SmoothMin.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches