Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.SmoothLimit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Utilities.Math.Examples.SmoothLimit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|smoLim.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.SmoothLimit") translateModel(Buildings.Utilities.Math.Examples.SmoothLimit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|smoLim.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.SmoothLimit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.375/1.375, allocations: 251.9 MB / 266.9 MB, free: 10.99 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001102/0.001102, allocations: 175.8 kB / 326.5 MB, free: 2.238 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.691/1.691, allocations: 205.4 MB / 0.5775 GB, free: 20.28 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007994/0.0007993, allocations: 83.44 kB / 0.6821 GB, free: 12.88 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003337/0.0003337, allocations: 11.91 kB / 0.7962 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2077/0.2081, allocations: 106.3 MB / 0.9001 GB, free: 63.91 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1641/0.3723, allocations: 132.5 MB / 1.029 GB, free: 11.26 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002351/0.3726, allocations: 75.95 kB / 1.03 GB, free: 11.19 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.004202/0.3768, allocations: 1.394 MB / 1.031 GB, free: 9.789 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.824e-06/0.3768, allocations: 0 / 1.031 GB, free: 9.789 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 7.404e-06/0.3768, allocations: 0 / 1.031 GB, free: 9.789 MB / 0.6823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0003629/0.3772, allocations: 359.2 kB / 1.031 GB, free: 9.391 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 3.695e-05/0.3772, allocations: 8.031 kB / 1.031 GB, free: 9.383 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.469e-05/0.3773, allocations: 11.89 kB / 1.031 GB, free: 9.371 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001189/0.3774, allocations: 167 kB / 1.031 GB, free: 9.168 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.246e-05/0.3774, allocations: 11.94 kB / 1.031 GB, free: 9.156 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.07e-05/0.3774, allocations: 0 / 1.031 GB, free: 9.156 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001235/0.3776, allocations: 45.67 kB / 1.031 GB, free: 9.105 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.264e-06/0.3776, allocations: 0 / 1.031 GB, free: 9.105 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.498e-06/0.3776, allocations: 4 kB / 1.031 GB, free: 9.102 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.008e-06/0.3776, allocations: 4 kB / 1.031 GB, free: 9.098 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.669e-05/0.3777, allocations: 23.98 kB / 1.031 GB, free: 9.074 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003344/0.3781, allocations: 248.9 kB / 1.032 GB, free: 8.781 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 8.323e-05/0.3781, allocations: 38.52 kB / 1.032 GB, free: 8.734 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006312/0.3788, allocations: 469.5 kB / 1.032 GB, free: 8.184 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.36e-05/0.3788, allocations: 42.55 kB / 1.032 GB, free: 8.133 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=2): time 1.062e-06/0.3788, allocations: 0 / 1.032 GB, free: 8.133 MB / 0.6823 GB Notification: Performance of matching and sorting (n=2): time 0.0002372/0.3791, allocations: 61.59 kB / 1.032 GB, free: 8.066 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.507e-05/0.3791, allocations: 59.41 kB / 1.032 GB, free: 7.996 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.537e-05/0.3792, allocations: 108.8 kB / 1.032 GB, free: 7.883 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 1.565e-05/0.3792, allocations: 29.83 kB / 1.033 GB, free: 7.848 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 3.8e-05/0.3793, allocations: 84.14 kB / 1.033 GB, free: 7.762 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 1.484e-05/0.3793, allocations: 7.891 kB / 1.033 GB, free: 7.754 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.168e-06/0.3793, allocations: 4 kB / 1.033 GB, free: 7.75 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 9.682e-05/0.3794, allocations: 318.8 kB / 1.033 GB, free: 7.43 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.075e-05/0.3795, allocations: 8 kB / 1.033 GB, free: 7.422 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.389e-05/0.3795, allocations: 19.92 kB / 1.033 GB, free: 7.402 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.866e-05/0.3796, allocations: 12.06 kB / 1.033 GB, free: 7.391 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.302e-06/0.3796, allocations: 0 / 1.033 GB, free: 7.391 MB / 0.6823 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001161/0.3797, allocations: 61.67 kB / 1.033 GB, free: 7.324 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.188e-05/0.3797, allocations: 4 kB / 1.033 GB, free: 7.32 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.357e-06/0.3797, allocations: 0 / 1.033 GB, free: 7.32 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.638e-06/0.3797, allocations: 0 / 1.033 GB, free: 7.32 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.394e-05/0.3798, allocations: 8.031 kB / 1.033 GB, free: 7.312 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.851e-06/0.3798, allocations: 4 kB / 1.033 GB, free: 7.309 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.199e-05/0.3798, allocations: 7.922 kB / 1.033 GB, free: 7.301 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.167e-06/0.3799, allocations: 4 kB / 1.033 GB, free: 7.297 MB / 0.6823 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 (2): * Single equations (assignments): 2 * 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 6.202e-05/0.3799, allocations: 109.8 kB / 1.033 GB, free: 7.18 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.416e-05/0.38, allocations: 7.906 kB / 1.033 GB, free: 7.172 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001624/0.3801, allocations: 69.2 kB / 1.033 GB, free: 7.098 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.684e-06/0.3801, allocations: 0 / 1.033 GB, free: 7.098 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.3802, allocations: 0 / 1.033 GB, free: 7.098 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.988e-06/0.3802, allocations: 4 kB / 1.033 GB, free: 7.094 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001536/0.3803, allocations: 161.6 kB / 1.033 GB, free: 6.887 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.3803, allocations: 4 kB / 1.033 GB, free: 6.883 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.991e-05/0.3804, allocations: 4 kB / 1.033 GB, free: 6.879 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.783e-06/0.3804, allocations: 0 / 1.033 GB, free: 6.879 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.366e-06/0.3804, allocations: 4 kB / 1.033 GB, free: 6.875 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.002e-06/0.3804, allocations: 0 / 1.033 GB, free: 6.875 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.933e-06/0.3804, allocations: 4.031 kB / 1.033 GB, free: 6.871 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000162/0.3806, allocations: 159.4 kB / 1.034 GB, free: 6.699 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 4.624e-05/0.3806, allocations: 81.02 kB / 1.034 GB, free: 6.602 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.325e-05/0.3807, allocations: 0 / 1.034 GB, free: 6.602 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.671e-05/0.3807, allocations: 4 kB / 1.034 GB, free: 6.598 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.256e-05/0.3808, allocations: 8.016 kB / 1.034 GB, free: 6.59 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.762e-06/0.3808, allocations: 7.938 kB / 1.034 GB, free: 6.582 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 3.906e-05/0.3808, allocations: 83.28 kB / 1.034 GB, free: 6.5 MB / 0.6823 GB Notification: Performance of sort global known variables: time 9e-08/0.3808, allocations: 0 / 1.034 GB, free: 6.5 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0002264/0.3811, allocations: 27.92 kB / 1.034 GB, free: 6.473 MB / 0.6823 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 (2): * Single equations (assignments): 2 * 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.0001909/0.3812, allocations: 111.2 kB / 1.034 GB, free: 6.355 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0001366/0.3814, allocations: 39.91 kB / 1.034 GB, free: 6.316 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 1.714e-06/0.3814, allocations: 0 / 1.034 GB, free: 6.316 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 4.274e-05/0.3815, allocations: 8 kB / 1.034 GB, free: 6.309 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001257/0.3816, allocations: 11.95 kB / 1.034 GB, free: 6.297 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003305/0.3819, allocations: 133.3 kB / 1.034 GB, free: 6.137 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003034/0.3822, allocations: 0.685 MB / 1.035 GB, free: 5.426 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 2.586e-05/0.3823, allocations: 3.984 kB / 1.035 GB, free: 5.422 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.069e-05/0.3823, allocations: 11.38 kB / 1.035 GB, free: 5.41 MB / 0.6823 GB Notification: Performance of SimCode: time 3.3e-07/0.3823, allocations: 0 / 1.035 GB, free: 5.41 MB / 0.6823 GB Notification: Performance of Templates: time 0.00254/0.3848, allocations: 0.5931 MB / 1.035 GB, free: 4.82 MB / 0.6823 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.SmoothLimit.makefile (rm -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.SmoothLimit.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.SmoothLimit.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.SmoothLimit.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.SmoothLimit.sim & ./Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.SmoothLimit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.SmoothLimit.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.SmoothLimit_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Utilities_Math_Examples_SmoothLimit.csv","../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.SmoothLimit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches