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: 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001288/0.001288, 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.00137/0.00137, allocations: 194.6 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.362/1.362, allocations: 222.9 MB / 240.2 MB, free: 4.406 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.503/2.503, allocations: 390.2 MB / 0.6646 GB, free: 244 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001297/0.001297, allocations: 63.89 kB / 0.8125 GB, free: 14.27 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8218/0.8231, allocations: 140.4 MB / 0.9496 GB, free: 9.148 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothMin): time 0.003228/0.8264, allocations: 1.46 MB / 0.951 GB, free: 7.996 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0003518/0.8267, allocations: 147.7 kB / 0.9511 GB, free: 7.879 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.411e-05/0.8268, allocations: 1.094 kB / 0.9511 GB, free: 7.879 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 4.057e-05/0.8268, allocations: 0 / 0.9511 GB, free: 7.879 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.082e-05/0.8269, allocations: 9 kB / 0.9512 GB, free: 7.871 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002198/0.8271, allocations: 29 kB / 0.9512 GB, free: 7.852 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 8.706e-05/0.8272, allocations: 45.08 kB / 0.9512 GB, free: 7.824 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001273/0.8274, allocations: 23.62 kB / 0.9513 GB, free: 7.812 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 4.073e-05/0.8274, allocations: 18.05 kB / 0.9513 GB, free: 7.801 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.293e-05/0.8275, allocations: 21.14 kB / 0.9513 GB, free: 7.785 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.797e-05/0.8275, allocations: 4.562 kB / 0.9513 GB, free: 7.785 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 9.228e-05/0.8276, allocations: 40.88 kB / 0.9513 GB, free: 7.762 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.661e-05/0.8276, allocations: 6.625 kB / 0.9513 GB, free: 7.758 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.733e-05/0.8276, allocations: 23.5 kB / 0.9514 GB, free: 7.738 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001272/0.8278, allocations: 57.09 kB / 0.9514 GB, free: 7.703 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.598e-06/0.8278, allocations: 0 / 0.9514 GB, free: 7.703 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.633e-06/0.8278, allocations: 0 / 0.9514 GB, free: 7.703 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.919e-06/0.8278, allocations: 0 / 0.9514 GB, free: 7.703 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.0004003/0.8282, allocations: 369 kB / 0.9518 GB, free: 7.312 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.886e-05/0.8282, allocations: 9.469 kB / 0.9518 GB, free: 7.312 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001121/0.8294, allocations: 210.7 kB / 0.952 GB, free: 7.211 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001015/0.8295, allocations: 174.6 kB / 0.9521 GB, free: 7.004 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.366e-05/0.8295, allocations: 1.312 kB / 0.9521 GB, free: 7.004 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.722e-05/0.8295, allocations: 7.375 kB / 0.9522 GB, free: 7 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005419/0.8301, allocations: 187.1 kB / 0.9523 GB, free: 6.887 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.107e-06/0.8301, allocations: 192 / 0.9523 GB, free: 6.887 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.695e-05/0.8301, allocations: 9.156 kB / 0.9523 GB, free: 6.879 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.312e-06/0.8301, allocations: 1.062 kB / 0.9523 GB, free: 6.879 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008213/0.831, allocations: 288 kB / 0.9526 GB, free: 6.734 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008477/0.8318, allocations: 447.6 kB / 0.953 GB, free: 6.336 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001098/0.8329, allocations: 288.5 kB / 0.9533 GB, free: 6.176 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000348/0.8333, allocations: 104.8 kB / 0.9534 GB, free: 6.117 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.083e-05/0.8333, allocations: 1.344 kB / 0.9534 GB, free: 6.117 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.366e-05/0.8333, allocations: 32.03 kB / 0.9534 GB, free: 6.078 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 1.443e-06/0.8333, allocations: 4 kB / 0.9535 GB, free: 6.074 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.001133/0.8345, allocations: 302.9 kB / 0.9537 GB, free: 5.91 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.048e-05/0.8345, allocations: 55.41 kB / 0.9538 GB, free: 5.844 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.191e-05/0.8346, allocations: 120.7 kB / 0.9539 GB, free: 5.73 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.246e-05/0.8346, allocations: 30.64 kB / 0.9539 GB, free: 5.695 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.127e-05/0.8346, allocations: 90.52 kB / 0.954 GB, free: 5.605 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.151e-05/0.8347, allocations: 4.844 kB / 0.954 GB, free: 5.602 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.725e-05/0.8347, allocations: 21.83 kB / 0.954 GB, free: 5.578 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.286e-05/0.8348, allocations: 317.6 kB / 0.9544 GB, free: 5.262 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000353/0.8351, allocations: 98.84 kB / 0.9544 GB, free: 5.211 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003331/0.8355, allocations: 90.66 kB / 0.9545 GB, free: 5.168 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000637/0.8361, allocations: 178.6 kB / 0.9547 GB, free: 5.074 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.8361, allocations: 0 / 0.9547 GB, free: 5.074 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0006936/0.8368, allocations: 214.3 kB / 0.9549 GB, free: 4.949 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.641e-05/0.8369, allocations: 9.281 kB / 0.9549 GB, free: 4.945 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.619e-06/0.8369, allocations: 0 / 0.9549 GB, free: 4.945 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.484e-05/0.8369, allocations: 1.094 kB / 0.9549 GB, free: 4.945 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002518/0.8371, allocations: 33.77 kB / 0.9549 GB, free: 4.93 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.113e-06/0.8372, allocations: 4.984 kB / 0.955 GB, free: 4.926 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001897/0.8374, allocations: 26.52 kB / 0.955 GB, free: 4.914 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.264e-05/0.8374, allocations: 5.078 kB / 0.955 GB, free: 4.91 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.393e-05/0.8374, allocations: 122.8 kB / 0.9551 GB, free: 4.785 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.312e-05/0.8375, allocations: 6.203 kB / 0.9551 GB, free: 4.781 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.431e-05/0.8375, allocations: 9.969 kB / 0.9551 GB, free: 4.766 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.278e-06/0.8375, allocations: 1.156 kB / 0.9551 GB, free: 4.766 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.857e-06/0.8376, allocations: 3.938 kB / 0.9551 GB, free: 4.762 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.8376, allocations: 1.156 kB / 0.9551 GB, free: 4.762 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001836/0.8377, allocations: 216.1 kB / 0.9553 GB, free: 4.523 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.8378, allocations: 1.125 kB / 0.9553 GB, free: 4.523 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002271/0.838, allocations: 43.09 kB / 0.9554 GB, free: 4.5 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.894e-06/0.838, allocations: 0 / 0.9554 GB, free: 4.5 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.174e-05/0.838, allocations: 1 kB / 0.9554 GB, free: 4.5 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.838, allocations: 0 / 0.9554 GB, free: 4.5 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.838, allocations: 5.031 kB / 0.9554 GB, free: 4.496 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007346/0.8388, allocations: 318.8 kB / 0.9557 GB, free: 4.262 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.409e-05/0.8388, allocations: 82.17 kB / 0.9558 GB, free: 4.164 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.495e-05/0.8388, allocations: 1.156 kB / 0.9558 GB, free: 4.164 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002213/0.8391, allocations: 29.72 kB / 0.9558 GB, free: 4.148 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4e-05/0.8391, allocations: 2.406 kB / 0.9558 GB, free: 4.148 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.767e-06/0.8391, allocations: 9.344 kB / 0.9558 GB, free: 4.141 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.884e-05/0.8392, allocations: 93.17 kB / 0.9559 GB, free: 4.059 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8392, allocations: 0 / 0.9559 GB, free: 4.059 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002379/0.8394, allocations: 12.06 kB / 0.9559 GB, free: 4.059 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.0001092/0.8395, allocations: 98.62 kB / 0.956 GB, free: 3.969 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0007651/0.8403, allocations: 203.9 kB / 0.9562 GB, free: 3.867 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.8403, allocations: 0 / 0.9562 GB, free: 3.867 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0003543/0.8407, allocations: 98.31 kB / 0.9563 GB, free: 3.82 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002595/0.8409, allocations: 7.984 kB / 0.9563 GB, free: 3.816 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009018/0.8418, allocations: 253.9 kB / 0.9565 GB, free: 3.633 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001236/0.842, allocations: 0.6911 MB / 0.9572 GB, free: 2.926 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 8.101e-05/0.8421, allocations: 22.58 kB / 0.9572 GB, free: 2.918 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.266e-05/0.8421, allocations: 9.25 kB / 0.9572 GB, free: 2.91 MB / 0.7169 GB Notification: Performance of SimCode: time 2e-07/0.8421, allocations: 0 / 0.9572 GB, free: 2.91 MB / 0.7169 GB Notification: Performance of Templates: time 0.003113/0.8452, allocations: 0.9308 MB / 0.9581 GB, free: 2.434 MB / 0.7169 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.SmoothMin.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches