Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Examples.SmoothLimit.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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.SmoothLimit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|smoLim.y",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Examples.SmoothLimit") translateModel(Buildings.Utilities.Math.Examples.SmoothLimit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|smoLim.y",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Examples.SmoothLimit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001405/0.001405, allocations: 109.3 kB / 15.7 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.001112/0.001112, allocations: 194.7 kB / 16.63 MB, free: 6.609 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.252/1.252, allocations: 222.9 MB / 240.3 MB, free: 4.371 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.257/2.257, allocations: 390.3 MB / 0.6648 GB, free: 144 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001204/0.001204, allocations: 64.39 kB / 0.9509 GB, free: 5.535 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2714/0.2726, allocations: 140.4 MB / 1.088 GB, free: 1.41 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothLimit): time 0.002286/0.2749, allocations: 1.459 MB / 1.089 GB, free: 15.94 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0008672/0.2758, allocations: 0.5555 MB / 1.09 GB, free: 15.38 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.474e-05/0.2759, allocations: 0 / 1.09 GB, free: 15.38 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.038e-05/0.2759, allocations: 7.875 kB / 1.09 GB, free: 15.37 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 4.21e-05/0.276, allocations: 11.92 kB / 1.09 GB, free: 15.36 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002527/0.2762, allocations: 47.83 kB / 1.09 GB, free: 15.31 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 6.684e-05/0.2763, allocations: 31.91 kB / 1.09 GB, free: 15.28 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 8.747e-05/0.2764, allocations: 4 kB / 1.09 GB, free: 15.27 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 7.935e-05/0.2765, allocations: 15.88 kB / 1.09 GB, free: 15.26 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 5.374e-05/0.2765, allocations: 15.92 kB / 1.09 GB, free: 15.24 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.282e-05/0.2766, allocations: 4 kB / 1.09 GB, free: 15.24 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001053/0.2767, allocations: 55.94 kB / 1.09 GB, free: 15.18 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.299e-05/0.2767, allocations: 8 kB / 1.09 GB, free: 15.18 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 2.695e-05/0.2767, allocations: 7.938 kB / 1.09 GB, free: 15.17 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.000133/0.2769, allocations: 67.84 kB / 1.09 GB, free: 15.1 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.147e-06/0.2769, allocations: 0 / 1.09 GB, free: 15.1 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.713e-06/0.2769, allocations: 0 / 1.09 GB, free: 15.1 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.059e-06/0.2769, allocations: 0 / 1.09 GB, free: 15.1 MB / 0.8575 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.0003828/0.2773, allocations: 351.4 kB / 1.091 GB, free: 14.71 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.473e-05/0.2773, allocations: 8.031 kB / 1.091 GB, free: 14.7 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.426e-05/0.2773, allocations: 4.844 kB / 1.091 GB, free: 14.7 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001042/0.2775, allocations: 184.3 kB / 1.091 GB, free: 14.48 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.066e-05/0.2775, allocations: 384 / 1.091 GB, free: 14.48 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.928e-06/0.2775, allocations: 4.375 kB / 1.091 GB, free: 14.48 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001303/0.2776, allocations: 49.94 kB / 1.091 GB, free: 14.42 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.354e-06/0.2776, allocations: 0 / 1.091 GB, free: 14.42 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.276e-06/0.2777, allocations: 0 / 1.091 GB, free: 14.42 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.757e-06/0.2777, allocations: 0 / 1.091 GB, free: 14.42 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.557e-05/0.2777, allocations: 19.98 kB / 1.091 GB, free: 14.4 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000314/0.2781, allocations: 252.9 kB / 1.091 GB, free: 14.11 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 8.814e-05/0.2782, allocations: 38.5 kB / 1.091 GB, free: 14.06 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.488e-05/0.2782, allocations: 12.92 kB / 1.091 GB, free: 14.04 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007503/0.279, allocations: 481.4 kB / 1.092 GB, free: 13.48 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.078e-05/0.279, allocations: 30.56 kB / 1.092 GB, free: 13.44 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=2): time 1.012e-06/0.279, allocations: 0 / 1.092 GB, free: 13.44 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2): time 0.0002331/0.2793, allocations: 69.58 kB / 1.092 GB, free: 13.37 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.062e-05/0.2793, allocations: 51.41 kB / 1.092 GB, free: 13.3 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.536e-05/0.2794, allocations: 105.8 kB / 1.092 GB, free: 13.19 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.072e-05/0.2794, allocations: 29.83 kB / 1.092 GB, free: 13.16 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 3.683e-05/0.2794, allocations: 88.14 kB / 1.092 GB, free: 13.07 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.618e-05/0.2795, allocations: 3.906 kB / 1.092 GB, free: 13.06 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.318e-05/0.2795, allocations: 25.64 kB / 1.092 GB, free: 13.03 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 8.591e-05/0.2796, allocations: 310.8 kB / 1.092 GB, free: 12.72 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.988e-05/0.2796, allocations: 8 kB / 1.092 GB, free: 12.71 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.252e-05/0.2797, allocations: 11.98 kB / 1.092 GB, free: 12.7 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.572e-05/0.2798, allocations: 36.78 kB / 1.092 GB, free: 12.66 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.2798, allocations: 4 kB / 1.092 GB, free: 12.66 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001059/0.2799, allocations: 53.69 kB / 1.092 GB, free: 12.6 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.263e-05/0.2799, allocations: 8 kB / 1.092 GB, free: 12.59 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.246e-06/0.2799, allocations: 0 / 1.092 GB, free: 12.59 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.073e-05/0.2799, allocations: 0 / 1.092 GB, free: 12.59 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.464e-05/0.28, allocations: 7.984 kB / 1.092 GB, free: 12.58 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.101e-06/0.28, allocations: 3.938 kB / 1.092 GB, free: 12.58 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.059e-05/0.28, allocations: 11.97 kB / 1.092 GB, free: 12.57 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.699e-06/0.28, allocations: 0 / 1.092 GB, free: 12.57 MB / 0.8575 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.387e-05/0.2801, allocations: 109.8 kB / 1.092 GB, free: 12.45 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.484e-05/0.2801, allocations: 7.906 kB / 1.092 GB, free: 12.44 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001501/0.2803, allocations: 61.2 kB / 1.093 GB, free: 12.37 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.176e-06/0.2803, allocations: 3.984 kB / 1.093 GB, free: 12.37 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.597e-06/0.2803, allocations: 0 / 1.093 GB, free: 12.37 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.124e-06/0.2803, allocations: 0 / 1.093 GB, free: 12.37 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001408/0.2805, allocations: 169.6 kB / 1.093 GB, free: 12.15 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.81e-07/0.2805, allocations: 0 / 1.093 GB, free: 12.15 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.197e-05/0.2805, allocations: 7.984 kB / 1.093 GB, free: 12.14 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.563e-06/0.2805, allocations: 0 / 1.093 GB, free: 12.14 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.141e-06/0.2805, allocations: 0 / 1.093 GB, free: 12.14 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.735e-06/0.2805, allocations: 0 / 1.093 GB, free: 12.14 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.2806, allocations: 3.938 kB / 1.093 GB, free: 12.14 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001452/0.2807, allocations: 155.5 kB / 1.093 GB, free: 11.97 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.173e-05/0.2807, allocations: 85 kB / 1.093 GB, free: 11.87 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.108e-05/0.2808, allocations: 0 / 1.093 GB, free: 11.87 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.746e-05/0.2808, allocations: 4 kB / 1.093 GB, free: 11.87 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.359e-05/0.2809, allocations: 0 / 1.093 GB, free: 11.87 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.146e-06/0.2809, allocations: 0 / 1.093 GB, free: 11.87 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.233e-05/0.2809, allocations: 91.27 kB / 1.093 GB, free: 11.78 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2809, allocations: 0 / 1.093 GB, free: 11.78 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002204/0.2811, allocations: 12 kB / 1.093 GB, free: 11.77 MB / 0.8575 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 (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.0001467/0.2813, allocations: 119.3 kB / 1.093 GB, free: 11.64 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0001353/0.2814, allocations: 27.92 kB / 1.093 GB, free: 11.61 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.2814, allocations: 0 / 1.093 GB, free: 11.61 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 4.307e-05/0.2815, allocations: 11.98 kB / 1.093 GB, free: 11.6 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000194/0.2817, allocations: 6.281 kB / 1.093 GB, free: 11.6 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002681/0.282, allocations: 134.8 kB / 1.093 GB, free: 11.44 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002098/0.2822, allocations: 0.6845 MB / 1.094 GB, free: 10.73 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 2.315e-05/0.2822, allocations: 4 kB / 1.094 GB, free: 10.73 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.76e-05/0.2822, allocations: 7.438 kB / 1.094 GB, free: 10.72 MB / 0.8575 GB Notification: Performance of SimCode: time 2.61e-07/0.2822, allocations: 3.938 kB / 1.094 GB, free: 10.71 MB / 0.8575 GB Notification: Performance of Templates: time 0.00234/0.2846, allocations: 0.6678 MB / 1.095 GB, free: 10.05 MB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Examples.SmoothLimit.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Examples.SmoothLimit.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.SmoothLimit.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.SmoothLimit.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.SmoothLimit.sim & ./Buildings_9_Buildings.Utilities.Math.Examples.SmoothLimit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Examples.SmoothLimit.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.SmoothLimit_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_SmoothLimit.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.SmoothLimit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches