Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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: translateModel(Buildings.Utilities.Math.Examples.SmoothMin,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|smoLim.2..y|smoLim.1..y",fileNamePrefix="Buildings_10_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_10_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.001248/0.001248, allocations: 108 kB / 15.6 MB, free: 132 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.001244/0.001244, allocations: 193.7 kB / 16.53 MB, free: 6.391 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.411/1.411, allocations: 222.9 MB / 240.2 MB, free: 4.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.619/2.619, allocations: 437 MB / 0.7103 GB, free: 5.125 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001249/0.001249, allocations: 63.91 kB / 0.8692 GB, free: 4.656 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6618/0.6631, allocations: 151.6 MB / 1.017 GB, free: 2.484 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothMin): time 0.002779/0.6659, allocations: 1.456 MB / 1.019 GB, free: 1.02 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0003794/0.6663, allocations: 148.3 kB / 1.019 GB, free: 0.8711 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.613e-05/0.6663, allocations: 0 / 1.019 GB, free: 0.8711 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 4.298e-05/0.6664, allocations: 3.938 kB / 1.019 GB, free: 0.8672 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 6.988e-05/0.6665, allocations: 11.92 kB / 1.019 GB, free: 0.8555 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.000219/0.6667, allocations: 35.89 kB / 1.019 GB, free: 0.8203 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 9.025e-05/0.6668, allocations: 39.86 kB / 1.019 GB, free: 0.7812 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001343/0.667, allocations: 23.98 kB / 1.019 GB, free: 0.7578 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 4.182e-05/0.667, allocations: 11.94 kB / 1.019 GB, free: 0.7461 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 4.407e-05/0.6671, allocations: 27.91 kB / 1.019 GB, free: 0.7188 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.509e-05/0.6671, allocations: 4 kB / 1.019 GB, free: 0.7148 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 8.889e-05/0.6672, allocations: 27.97 kB / 1.019 GB, free: 0.6875 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 1.81e-05/0.6672, allocations: 8 kB / 1.019 GB, free: 0.6797 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 3.568e-05/0.6672, allocations: 27.86 kB / 1.019 GB, free: 0.6523 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001488/0.6674, allocations: 59.86 kB / 1.019 GB, free: 0.5938 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.6674, allocations: 0 / 1.019 GB, free: 0.5938 MB / 0.7637 GB Notification: Performance of FrontEnd: time 1.273e-06/0.6674, allocations: 0 / 1.019 GB, free: 0.5938 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 1.037e-05/0.6674, allocations: 0 / 1.019 GB, free: 0.5938 MB / 0.7637 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.0004332/0.6679, allocations: 369.2 kB / 1.019 GB, free: 188 kB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 3.209e-05/0.6679, allocations: 8.031 kB / 1.019 GB, free: 180 kB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001142/0.6691, allocations: 212.6 kB / 1.02 GB, free: 15.96 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001131/0.6692, allocations: 172.2 kB / 1.02 GB, free: 15.76 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.326e-05/0.6692, allocations: 384 / 1.02 GB, free: 15.76 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.674e-05/0.6692, allocations: 4.375 kB / 1.02 GB, free: 15.76 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005782/0.6698, allocations: 198 kB / 1.02 GB, free: 15.56 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.284e-06/0.6698, allocations: 192 / 1.02 GB, free: 15.56 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.603e-05/0.6698, allocations: 3.938 kB / 1.02 GB, free: 15.55 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.638e-06/0.6699, allocations: 0 / 1.02 GB, free: 15.55 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008811/0.6707, allocations: 283.6 kB / 1.02 GB, free: 15.28 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009324/0.6717, allocations: 445.1 kB / 1.021 GB, free: 14.79 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00118/0.6729, allocations: 294.1 kB / 1.021 GB, free: 14.49 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003753/0.6733, allocations: 100.8 kB / 1.021 GB, free: 14.39 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.187e-05/0.6733, allocations: 0 / 1.021 GB, free: 14.39 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.523e-05/0.6733, allocations: 30.56 kB / 1.021 GB, free: 14.35 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=3): time 8.92e-07/0.6733, allocations: 0 / 1.021 GB, free: 14.35 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3): time 0.001223/0.6746, allocations: 313.2 kB / 1.021 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.727e-05/0.6746, allocations: 55.34 kB / 1.021 GB, free: 13.97 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.465e-05/0.6747, allocations: 125.8 kB / 1.022 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.886e-05/0.6747, allocations: 25.7 kB / 1.022 GB, free: 13.81 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 4.123e-05/0.6748, allocations: 88.14 kB / 1.022 GB, free: 13.72 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.314e-05/0.6748, allocations: 7.906 kB / 1.022 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.006e-05/0.6749, allocations: 21.7 kB / 1.022 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001062/0.675, allocations: 318.8 kB / 1.022 GB, free: 13.36 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003761/0.6754, allocations: 95.88 kB / 1.022 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003698/0.6757, allocations: 103.9 kB / 1.022 GB, free: 13.17 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007059/0.6765, allocations: 168.6 kB / 1.022 GB, free: 13 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.637e-06/0.6765, allocations: 0 / 1.022 GB, free: 13 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0007915/0.6773, allocations: 221.2 kB / 1.023 GB, free: 12.78 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.372e-05/0.6773, allocations: 8 kB / 1.023 GB, free: 12.77 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.541e-06/0.6773, allocations: 3.984 kB / 1.023 GB, free: 12.77 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.241e-05/0.6773, allocations: 0 / 1.023 GB, free: 12.77 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002659/0.6776, allocations: 35.94 kB / 1.023 GB, free: 12.73 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.98e-06/0.6776, allocations: 4 kB / 1.023 GB, free: 12.73 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002127/0.6778, allocations: 31.95 kB / 1.023 GB, free: 12.7 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.145e-05/0.6778, allocations: 0 / 1.023 GB, free: 12.7 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.4e-05/0.6779, allocations: 117.8 kB / 1.023 GB, free: 12.57 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.178e-05/0.678, allocations: 0 / 1.023 GB, free: 12.57 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.993e-05/0.678, allocations: 11.91 kB / 1.023 GB, free: 12.55 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-06/0.678, allocations: 0 / 1.023 GB, free: 12.55 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.296e-06/0.678, allocations: 4 kB / 1.023 GB, free: 12.55 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.158e-06/0.678, allocations: 4 kB / 1.023 GB, free: 12.55 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002205/0.6783, allocations: 213.4 kB / 1.023 GB, free: 12.29 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.6783, allocations: 0 / 1.023 GB, free: 12.29 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002396/0.6785, allocations: 35.94 kB / 1.023 GB, free: 12.25 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.494e-06/0.6785, allocations: 0 / 1.023 GB, free: 12.25 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.078e-05/0.6785, allocations: 0 / 1.023 GB, free: 12.25 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.6786, allocations: 4 kB / 1.023 GB, free: 12.25 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.01e-07/0.6786, allocations: 0 / 1.023 GB, free: 12.25 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008277/0.6794, allocations: 315.5 kB / 1.023 GB, free: 11.93 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.811e-05/0.6794, allocations: 85 kB / 1.023 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.305e-05/0.6795, allocations: 4 kB / 1.023 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002371/0.6797, allocations: 31.95 kB / 1.023 GB, free: 11.79 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.596e-05/0.6798, allocations: 4.406 kB / 1.023 GB, free: 11.79 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.798e-06/0.6798, allocations: 4 kB / 1.023 GB, free: 11.78 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 6.132e-05/0.6798, allocations: 95.2 kB / 1.024 GB, free: 11.69 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.11e-07/0.6798, allocations: 0 / 1.024 GB, free: 11.69 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002496/0.6801, allocations: 12 kB / 1.024 GB, free: 11.68 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 (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.0001109/0.6802, allocations: 107.2 kB / 1.024 GB, free: 11.56 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0008102/0.681, allocations: 199.7 kB / 1.024 GB, free: 11.36 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.6811, allocations: 0 / 1.024 GB, free: 11.36 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0003921/0.6814, allocations: 103.9 kB / 1.024 GB, free: 11.26 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002467/0.6817, allocations: 7.938 kB / 1.024 GB, free: 11.25 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009365/0.6826, allocations: 257.4 kB / 1.024 GB, free: 10.98 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002369/0.6829, allocations: 0.6846 MB / 1.025 GB, free: 10.27 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 8.538e-05/0.683, allocations: 24.23 kB / 1.025 GB, free: 10.24 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.143e-05/0.683, allocations: 7.438 kB / 1.025 GB, free: 10.23 MB / 0.7794 GB Notification: Performance of SimCode: time 2.3e-07/0.6831, allocations: 0 / 1.025 GB, free: 10.23 MB / 0.7794 GB Notification: Performance of Templates: time 0.003061/0.6861, allocations: 0.9321 MB / 1.026 GB, free: 9.309 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Utilities.Math.Examples.SmoothMin.makefile (rm -f Buildings_10_Buildings.Utilities.Math.Examples.SmoothMin.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Examples.SmoothMin.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Examples.SmoothMin.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Examples.SmoothMin.sim & ./Buildings_10_Buildings.Utilities.Math.Examples.SmoothMin -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.Math.Examples.SmoothMin.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Examples.SmoothMin_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Examples_SmoothMin.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Examples.SmoothMin.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches