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/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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_9_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_9_Buildings.Utilities.Math.Examples.SmoothMin") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.026/2.026, allocations: 387.4 MB / 394.9 MB, free: 13.36 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001101/0.001101, allocations: 172.8 kB / 487.4 MB, free: 5.043 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.361/1.361, allocations: 221.5 MB / 0.7824 GB, free: 0.9102 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009823/0.0009824, allocations: 94.61 kB / 0.9219 GB, free: 2.156 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.535e-05/1.537e-05, allocations: 4 kB / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2585/0.2585, allocations: 142.4 MB / 1.206 GB, free: 43.95 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8515/1.11, allocations: 148.7 MB / 1.351 GB, free: 18.46 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002578/1.11, allocations: 70.94 kB / 1.351 GB, free: 18.46 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.004118/1.115, allocations: 1.154 MB / 1.352 GB, free: 34.1 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.683e-06/1.115, allocations: 0 / 1.352 GB, free: 34.1 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 6.743e-06/1.115, allocations: 4 kB / 1.352 GB, free: 34.09 MB / 0.8386 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.0003458/1.115, allocations: 349.9 kB / 1.353 GB, free: 33.75 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.807e-05/1.115, allocations: 7.625 kB / 1.353 GB, free: 33.75 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008734/1.116, allocations: 190.3 kB / 1.353 GB, free: 33.74 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001029/1.116, allocations: 172.3 kB / 1.353 GB, free: 33.54 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.899e-06/1.116, allocations: 0 / 1.353 GB, free: 33.54 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.983e-05/1.116, allocations: 3.812 kB / 1.353 GB, free: 33.54 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002049/1.116, allocations: 116.5 kB / 1.353 GB, free: 33.53 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001744/1.116, allocations: 110.6 kB / 1.353 GB, free: 33.5 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.444e-06/1.116, allocations: 1.5 kB / 1.353 GB, free: 33.5 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.449e-05/1.116, allocations: 0 / 1.353 GB, free: 33.5 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.218e-06/1.116, allocations: 0 / 1.353 GB, free: 33.5 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008958/1.117, allocations: 435.4 kB / 1.354 GB, free: 33.25 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003671/1.118, allocations: 157.5 kB / 1.354 GB, free: 33.22 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.195e-05/1.118, allocations: 50.31 kB / 1.354 GB, free: 33.21 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.471e-05/1.118, allocations: 0.6562 kB / 1.354 GB, free: 33.21 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.875e-05/1.118, allocations: 31.22 kB / 1.354 GB, free: 33.17 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=3): time 1.203e-06/1.118, allocations: 3.938 kB / 1.354 GB, free: 33.17 MB / 0.8386 GB Notification: Performance of matching and sorting (n=3): time 0.0002332/1.118, allocations: 111.5 kB / 1.354 GB, free: 33.13 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.235e-05/1.118, allocations: 61.59 kB / 1.354 GB, free: 33.06 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.421e-05/1.118, allocations: 101.4 kB / 1.354 GB, free: 32.97 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.391e-05/1.118, allocations: 25.7 kB / 1.354 GB, free: 32.94 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 5.405e-05/1.118, allocations: 85.19 kB / 1.354 GB, free: 32.86 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.216e-05/1.118, allocations: 12.55 kB / 1.354 GB, free: 32.85 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.895e-06/1.118, allocations: 0 / 1.354 GB, free: 32.85 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001549/1.119, allocations: 316.4 kB / 1.355 GB, free: 32.54 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.463e-05/1.119, allocations: 41.36 kB / 1.355 GB, free: 32.54 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.113e-05/1.119, allocations: 41.23 kB / 1.355 GB, free: 32.54 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.327e-05/1.119, allocations: 32.27 kB / 1.355 GB, free: 32.53 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/1.119, allocations: 0 / 1.355 GB, free: 32.53 MB / 0.8386 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001473/1.119, allocations: 108.1 kB / 1.355 GB, free: 32.5 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.411e-05/1.119, allocations: 9.875 kB / 1.355 GB, free: 32.5 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.282e-06/1.119, allocations: 0.75 kB / 1.355 GB, free: 32.5 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.649e-05/1.119, allocations: 1.312 kB / 1.355 GB, free: 32.5 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002583/1.119, allocations: 44.27 kB / 1.355 GB, free: 32.5 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.646e-06/1.119, allocations: 7.891 kB / 1.355 GB, free: 32.49 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001931/1.119, allocations: 43.66 kB / 1.355 GB, free: 32.48 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.57e-05/1.119, allocations: 3.016 kB / 1.355 GB, free: 32.48 MB / 0.8386 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 () * 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 7.369e-05/1.12, allocations: 105.5 kB / 1.355 GB, free: 32.38 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.889e-05/1.12, allocations: 4 kB / 1.355 GB, free: 32.37 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.25e-05/1.12, allocations: 12.3 kB / 1.355 GB, free: 32.36 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.374e-06/1.12, allocations: 0.5625 kB / 1.355 GB, free: 32.36 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/1.12, allocations: 0 / 1.355 GB, free: 32.36 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.897e-06/1.12, allocations: 4.562 kB / 1.355 GB, free: 32.36 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000171/1.12, allocations: 188.4 kB / 1.355 GB, free: 32.2 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/1.12, allocations: 0 / 1.355 GB, free: 32.2 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002345/1.12, allocations: 48.8 kB / 1.355 GB, free: 32.19 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.803e-06/1.12, allocations: 0 / 1.355 GB, free: 32.19 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.266e-05/1.12, allocations: 0.7031 kB / 1.355 GB, free: 32.19 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/1.12, allocations: 0.6562 kB / 1.355 GB, free: 32.19 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.025e-06/1.12, allocations: 3.75 kB / 1.355 GB, free: 32.19 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001981/1.12, allocations: 201.3 kB / 1.355 GB, free: 32.06 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 2.348e-05/1.12, allocations: 81.72 kB / 1.356 GB, free: 31.96 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.233e-05/1.12, allocations: 4.594 kB / 1.356 GB, free: 31.96 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002296/1.121, allocations: 35.67 kB / 1.356 GB, free: 31.96 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.925e-05/1.121, allocations: 1.406 kB / 1.356 GB, free: 31.96 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.015e-05/1.121, allocations: 7.578 kB / 1.356 GB, free: 31.96 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 6.315e-05/1.121, allocations: 83.95 kB / 1.356 GB, free: 31.88 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.71e-07/1.121, allocations: 4 kB / 1.356 GB, free: 31.88 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002347/1.121, allocations: 19.41 kB / 1.356 GB, free: 31.87 MB / 0.8386 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 () * 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.0001126/1.121, allocations: 96.08 kB / 1.356 GB, free: 31.79 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001679/1.121, allocations: 88.08 kB / 1.356 GB, free: 31.79 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.482e-06/1.121, allocations: 0 / 1.356 GB, free: 31.79 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 7.23e-05/1.121, allocations: 49.39 kB / 1.356 GB, free: 31.79 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001626/1.122, allocations: 7.484 kB / 1.356 GB, free: 31.78 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006083/1.122, allocations: 183 kB / 1.356 GB, free: 31.7 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002908/1.122, allocations: 0.6889 MB / 1.357 GB, free: 31.01 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 9.573e-05/1.123, allocations: 18.94 kB / 1.357 GB, free: 31 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.185e-05/1.123, allocations: 12.45 kB / 1.357 GB, free: 31 MB / 0.8386 GB Notification: Performance of SimCode: time 8.12e-07/1.123, allocations: 0 / 1.357 GB, free: 31 MB / 0.8386 GB Notification: Performance of Templates: time 0.002578/1.125, allocations: 0.7177 MB / 1.358 GB, free: 30.95 MB / 0.8386 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Examples.SmoothMin.makefile (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 & ./Buildings_9_Buildings.Utilities.Math.Examples.SmoothMin -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Examples.SmoothMin.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.SmoothMin_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_SmoothMin.csv","../files/Buildings_9_Buildings.Utilities.Math.Examples.SmoothMin.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches