Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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_latest_Buildings.Utilities.Math.Examples.SmoothLimit") translateModel(Buildings.Utilities.Math.Examples.SmoothLimit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|smoLim.y",fileNamePrefix="Buildings_latest_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.00711/0.00711, allocations: 100.9 kB / 15.87 MB, free: 5.867 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001572/0.001572, allocations: 192.7 kB / 16.79 MB, free: 5.809 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.385/1.385, allocations: 222.9 MB / 240.5 MB, free: 4.574 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.708/2.708, allocations: 461.8 MB / 0.7348 GB, free: 14.22 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001388/0.001388, allocations: 66.5 kB / 0.899 GB, free: 37.02 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.27/0.2714, allocations: 157.4 MB / 1.053 GB, free: 8.359 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothLimit): time 0.002978/0.2744, allocations: 1.526 MB / 1.054 GB, free: 6.816 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0009733/0.2754, allocations: 0.5726 MB / 1.055 GB, free: 6.238 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.146e-05/0.2755, allocations: 0 / 1.055 GB, free: 6.238 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.524e-05/0.2755, allocations: 7.922 kB / 1.055 GB, free: 6.23 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 4.538e-05/0.2756, allocations: 3.938 kB / 1.055 GB, free: 6.227 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002521/0.2758, allocations: 43.91 kB / 1.055 GB, free: 6.184 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 6.332e-05/0.2759, allocations: 23.92 kB / 1.055 GB, free: 6.16 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 9.805e-05/0.276, allocations: 8 kB / 1.055 GB, free: 6.152 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 8.965e-05/0.2761, allocations: 11.92 kB / 1.055 GB, free: 6.141 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 5.348e-05/0.2762, allocations: 15.92 kB / 1.055 GB, free: 6.125 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.469e-05/0.2762, allocations: 4 kB / 1.055 GB, free: 6.121 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001228/0.2763, allocations: 47.95 kB / 1.055 GB, free: 6.074 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.431e-05/0.2763, allocations: 3.984 kB / 1.055 GB, free: 6.07 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.41e-05/0.2764, allocations: 15.94 kB / 1.055 GB, free: 6.055 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001125/0.2765, allocations: 47.88 kB / 1.055 GB, free: 6.008 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.2765, allocations: 0 / 1.055 GB, free: 6.008 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.272e-06/0.2765, allocations: 0 / 1.055 GB, free: 6.008 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.578e-06/0.2765, allocations: 0 / 1.055 GB, free: 6.008 MB / 0.8106 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.000431/0.2769, allocations: 351.7 kB / 1.055 GB, free: 5.617 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.981e-05/0.277, allocations: 11.97 kB / 1.055 GB, free: 5.605 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.662e-05/0.277, allocations: 4.938 kB / 1.055 GB, free: 5.602 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001266/0.2772, allocations: 168.2 kB / 1.056 GB, free: 5.398 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.978e-06/0.2772, allocations: 4.375 kB / 1.056 GB, free: 5.395 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.052e-05/0.2772, allocations: 4.375 kB / 1.056 GB, free: 5.391 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001505/0.2774, allocations: 49.98 kB / 1.056 GB, free: 5.336 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.796e-06/0.2774, allocations: 4 kB / 1.056 GB, free: 5.332 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.137e-06/0.2774, allocations: 0 / 1.056 GB, free: 5.332 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.227e-06/0.2774, allocations: 0 / 1.056 GB, free: 5.332 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.7e-05/0.2775, allocations: 19.98 kB / 1.056 GB, free: 5.312 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003652/0.2779, allocations: 264.8 kB / 1.056 GB, free: 5.004 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 8.833e-05/0.278, allocations: 30.52 kB / 1.056 GB, free: 4.965 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.935e-05/0.278, allocations: 16.91 kB / 1.056 GB, free: 4.945 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008455/0.2789, allocations: 477.4 kB / 1.056 GB, free: 4.387 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.348e-05/0.2789, allocations: 34.55 kB / 1.056 GB, free: 4.344 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=2): time 1.162e-06/0.2789, allocations: 4 kB / 1.056 GB, free: 4.34 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2): time 0.00026/0.2792, allocations: 61.53 kB / 1.056 GB, free: 4.273 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.709e-05/0.2792, allocations: 51.41 kB / 1.056 GB, free: 4.211 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.979e-05/0.2793, allocations: 113.8 kB / 1.057 GB, free: 4.09 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.48e-05/0.2793, allocations: 25.83 kB / 1.057 GB, free: 4.059 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.646e-05/0.2794, allocations: 88.12 kB / 1.057 GB, free: 3.969 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.178e-05/0.2794, allocations: 7.906 kB / 1.057 GB, free: 3.961 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.82e-05/0.2795, allocations: 13.72 kB / 1.057 GB, free: 3.941 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.000123/0.2796, allocations: 314.8 kB / 1.057 GB, free: 3.625 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.658e-05/0.2797, allocations: 11.98 kB / 1.057 GB, free: 3.613 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.581e-05/0.2797, allocations: 4 kB / 1.057 GB, free: 3.609 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.447e-05/0.2798, allocations: 44.72 kB / 1.057 GB, free: 3.562 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.2798, allocations: 0 / 1.057 GB, free: 3.562 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001395/0.2799, allocations: 61.61 kB / 1.057 GB, free: 3.496 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.6e-05/0.28, allocations: 4 kB / 1.057 GB, free: 3.492 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.98e-06/0.28, allocations: 0 / 1.057 GB, free: 3.492 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.228e-05/0.28, allocations: 0 / 1.057 GB, free: 3.492 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.295e-05/0.2801, allocations: 4 kB / 1.057 GB, free: 3.488 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.222e-06/0.2801, allocations: 0 / 1.057 GB, free: 3.488 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.808e-05/0.2801, allocations: 12.02 kB / 1.057 GB, free: 3.477 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.711e-06/0.2801, allocations: 0 / 1.057 GB, free: 3.477 MB / 0.8106 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 8.585e-05/0.2802, allocations: 109.8 kB / 1.057 GB, free: 3.359 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.792e-05/0.2803, allocations: 7.906 kB / 1.057 GB, free: 3.352 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000169/0.2804, allocations: 61.2 kB / 1.057 GB, free: 3.285 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.488e-06/0.2804, allocations: 0 / 1.057 GB, free: 3.285 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.2805, allocations: 3.938 kB / 1.057 GB, free: 3.281 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.815e-06/0.2805, allocations: 0 / 1.057 GB, free: 3.281 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001748/0.2806, allocations: 177.6 kB / 1.058 GB, free: 3.059 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.502e-06/0.2807, allocations: 0 / 1.058 GB, free: 3.059 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.318e-05/0.2807, allocations: 4 kB / 1.058 GB, free: 3.055 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.414e-06/0.2807, allocations: 0 / 1.058 GB, free: 3.055 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.925e-06/0.2807, allocations: 0 / 1.058 GB, free: 3.055 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.2807, allocations: 0 / 1.058 GB, free: 3.055 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.2807, allocations: 4 kB / 1.058 GB, free: 3.051 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001732/0.2809, allocations: 151.5 kB / 1.058 GB, free: 2.887 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.678e-05/0.281, allocations: 85.02 kB / 1.058 GB, free: 2.785 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.509e-05/0.281, allocations: 4 kB / 1.058 GB, free: 2.781 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.041e-05/0.281, allocations: 4 kB / 1.058 GB, free: 2.777 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.461e-05/0.2811, allocations: 7.969 kB / 1.058 GB, free: 2.77 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.833e-06/0.2811, allocations: 4 kB / 1.058 GB, free: 2.766 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.977e-05/0.2811, allocations: 83.58 kB / 1.058 GB, free: 2.684 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.723e-06/0.2812, allocations: 0 / 1.058 GB, free: 2.684 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002364/0.2814, allocations: 27.92 kB / 1.058 GB, free: 2.656 MB / 0.8106 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.0001638/0.2816, allocations: 111.2 kB / 1.058 GB, free: 2.539 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0001323/0.2817, allocations: 27.97 kB / 1.058 GB, free: 2.512 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.2817, allocations: 0 / 1.058 GB, free: 2.512 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 5.385e-05/0.2818, allocations: 8 kB / 1.058 GB, free: 2.504 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002171/0.282, allocations: 13.44 kB / 1.058 GB, free: 2.492 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003208/0.2823, allocations: 158.1 kB / 1.058 GB, free: 2.305 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002615/0.2826, allocations: 0.677 MB / 1.059 GB, free: 1.602 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.494e-05/0.2826, allocations: 11.42 kB / 1.059 GB, free: 1.59 MB / 0.8106 GB Notification: Performance of SimCode: time 3.7e-07/0.2826, allocations: 0 / 1.059 GB, free: 1.59 MB / 0.8106 GB Notification: Performance of Templates: time 0.002262/0.2849, allocations: 0.8025 MB / 1.06 GB, free: 0.7852 MB / 0.8106 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit.sim & ./Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_SmoothLimit.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches