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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.008091/0.008091, allocations: 102.3 kB / 15.73 MB, free: 6.055 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.002135/0.002136, allocations: 191 kB / 16.67 MB, free: 5.969 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.374/1.374, allocations: 222.9 MB / 240.4 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.659/2.659, allocations: 461.9 MB / 0.7348 GB, free: 11.06 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001379/0.001379, allocations: 59.91 kB / 1.054 GB, free: 7.68 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9313/0.9327, allocations: 157.4 MB / 1.208 GB, free: 13.58 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothLimit): time 0.0025/0.9353, allocations: 1.468 MB / 1.209 GB, free: 12.11 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0009117/0.9362, allocations: 0.5533 MB / 1.21 GB, free: 11.55 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.571e-05/0.9363, allocations: 4 kB / 1.21 GB, free: 11.55 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 3.146e-05/0.9363, allocations: 3.938 kB / 1.21 GB, free: 11.54 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 4.552e-05/0.9364, allocations: 3.938 kB / 1.21 GB, free: 11.54 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003054/0.9367, allocations: 55.81 kB / 1.21 GB, free: 11.48 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 7.165e-05/0.9367, allocations: 27.86 kB / 1.21 GB, free: 11.46 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 9.541e-05/0.9368, allocations: 4 kB / 1.21 GB, free: 11.45 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 8.785e-05/0.9369, allocations: 19.97 kB / 1.21 GB, free: 11.43 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 6.086e-05/0.937, allocations: 15.94 kB / 1.21 GB, free: 11.42 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.225e-05/0.937, allocations: 0 / 1.21 GB, free: 11.42 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001152/0.9371, allocations: 55.95 kB / 1.21 GB, free: 11.36 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 1.377e-05/0.9372, allocations: 3.938 kB / 1.21 GB, free: 11.36 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 2.85e-05/0.9372, allocations: 19.91 kB / 1.21 GB, free: 11.34 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001471/0.9374, allocations: 63.86 kB / 1.21 GB, free: 11.28 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.9374, allocations: 3.938 kB / 1.21 GB, free: 11.27 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.443e-06/0.9374, allocations: 0 / 1.21 GB, free: 11.27 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 5.43e-06/0.9374, allocations: 0 / 1.21 GB, free: 11.27 MB / 0.9356 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.0003904/0.9378, allocations: 343.3 kB / 1.21 GB, free: 10.89 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.559e-05/0.9378, allocations: 16.02 kB / 1.21 GB, free: 10.88 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.427e-05/0.9379, allocations: 4.844 kB / 1.21 GB, free: 10.88 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001395/0.938, allocations: 170.2 kB / 1.21 GB, free: 10.67 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.193e-05/0.938, allocations: 384 / 1.21 GB, free: 10.67 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.235e-06/0.938, allocations: 384 / 1.21 GB, free: 10.67 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001236/0.9382, allocations: 46 kB / 1.211 GB, free: 10.62 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.354e-06/0.9382, allocations: 0 / 1.211 GB, free: 10.62 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.145e-06/0.9382, allocations: 0 / 1.211 GB, free: 10.62 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.16e-06/0.9382, allocations: 7.938 kB / 1.211 GB, free: 10.61 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.088e-05/0.9383, allocations: 19.98 kB / 1.211 GB, free: 10.59 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003082/0.9386, allocations: 260.8 kB / 1.211 GB, free: 10.29 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 7.849e-05/0.9387, allocations: 34.5 kB / 1.211 GB, free: 10.25 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.427e-05/0.9387, allocations: 16.92 kB / 1.211 GB, free: 10.23 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006957/0.9394, allocations: 477.4 kB / 1.211 GB, free: 9.668 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.136e-05/0.9395, allocations: 30.56 kB / 1.211 GB, free: 9.629 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=2): time 1.032e-06/0.9395, allocations: 0 / 1.211 GB, free: 9.629 MB / 0.9356 GB Notification: Performance of matching and sorting (n=2): time 0.000222/0.9397, allocations: 65.73 kB / 1.211 GB, free: 9.559 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.195e-05/0.9397, allocations: 59.41 kB / 1.211 GB, free: 9.488 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.793e-05/0.9398, allocations: 105.8 kB / 1.212 GB, free: 9.375 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.387e-05/0.9398, allocations: 29.7 kB / 1.212 GB, free: 9.34 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 3.613e-05/0.9399, allocations: 80.14 kB / 1.212 GB, free: 9.258 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 1.557e-05/0.9399, allocations: 7.906 kB / 1.212 GB, free: 9.25 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.013e-05/0.9399, allocations: 17.7 kB / 1.212 GB, free: 9.227 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 9.102e-05/0.94, allocations: 314.8 kB / 1.212 GB, free: 8.91 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.611e-05/0.9401, allocations: 15.98 kB / 1.212 GB, free: 8.895 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.051e-05/0.9401, allocations: 8 kB / 1.212 GB, free: 8.887 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.931e-05/0.9402, allocations: 28.78 kB / 1.212 GB, free: 8.855 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.647e-06/0.9402, allocations: 0 / 1.212 GB, free: 8.855 MB / 0.9356 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001028/0.9403, allocations: 57.62 kB / 1.212 GB, free: 8.793 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.068e-05/0.9403, allocations: 4 kB / 1.212 GB, free: 8.789 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.556e-06/0.9403, allocations: 0 / 1.212 GB, free: 8.789 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.377e-05/0.9404, allocations: 8.094 kB / 1.212 GB, free: 8.781 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.439e-05/0.9404, allocations: 7.984 kB / 1.212 GB, free: 8.773 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.771e-06/0.9404, allocations: 4 kB / 1.212 GB, free: 8.77 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.04e-05/0.9405, allocations: 7.844 kB / 1.212 GB, free: 8.762 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.611e-06/0.9405, allocations: 0 / 1.212 GB, free: 8.762 MB / 0.9356 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.775e-05/0.9406, allocations: 113.8 kB / 1.212 GB, free: 8.641 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.309e-05/0.9406, allocations: 3.984 kB / 1.212 GB, free: 8.637 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001664/0.9408, allocations: 65.16 kB / 1.212 GB, free: 8.559 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.866e-06/0.9408, allocations: 7.984 kB / 1.212 GB, free: 8.551 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.526e-06/0.9408, allocations: 0 / 1.212 GB, free: 8.551 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.164e-06/0.9408, allocations: 0 / 1.212 GB, free: 8.551 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001412/0.9409, allocations: 157.6 kB / 1.212 GB, free: 8.348 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.82e-07/0.9409, allocations: 0 / 1.212 GB, free: 8.348 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.277e-05/0.941, allocations: 11.98 kB / 1.212 GB, free: 8.336 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.763e-06/0.941, allocations: 0 / 1.212 GB, free: 8.336 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.714e-06/0.941, allocations: 0 / 1.212 GB, free: 8.336 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-06/0.941, allocations: 3.938 kB / 1.212 GB, free: 8.332 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.941, allocations: 0 / 1.212 GB, free: 8.332 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001482/0.9412, allocations: 159.5 kB / 1.213 GB, free: 8.16 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 3.135e-05/0.9412, allocations: 92.88 kB / 1.213 GB, free: 8.051 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.069e-05/0.9412, allocations: 0 / 1.213 GB, free: 8.051 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.627e-05/0.9413, allocations: 0 / 1.213 GB, free: 8.051 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.568e-05/0.9413, allocations: 4 kB / 1.213 GB, free: 8.047 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.176e-06/0.9413, allocations: 0 / 1.213 GB, free: 8.047 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 4.42e-05/0.9414, allocations: 99.59 kB / 1.213 GB, free: 7.949 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.2e-07/0.9414, allocations: 0 / 1.213 GB, free: 7.949 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002258/0.9416, allocations: 16 kB / 1.213 GB, free: 7.934 MB / 0.9356 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.0001496/0.9418, allocations: 115.2 kB / 1.213 GB, free: 7.812 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0001255/0.9419, allocations: 19.98 kB / 1.213 GB, free: 7.793 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.9419, allocations: 0 / 1.213 GB, free: 7.793 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 4.958e-05/0.942, allocations: 11.98 kB / 1.213 GB, free: 7.781 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002028/0.9422, allocations: 16.06 kB / 1.213 GB, free: 7.766 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002545/0.9424, allocations: 126.5 kB / 1.213 GB, free: 7.613 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002041/0.9427, allocations: 0.6768 MB / 1.214 GB, free: 6.91 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 1.99e-05/0.9427, allocations: 4 kB / 1.214 GB, free: 6.906 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.839e-05/0.9427, allocations: 7.438 kB / 1.214 GB, free: 6.898 MB / 0.9356 GB Notification: Performance of SimCode: time 2.2e-07/0.9427, allocations: 0 / 1.214 GB, free: 6.898 MB / 0.9356 GB Notification: Performance of Templates: time 0.002699/0.9454, allocations: 0.6745 MB / 1.214 GB, free: 6.227 MB / 0.9356 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches