Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_Buildings.Utilities.Math.Examples.SmoothLimit") translateModel(Buildings.Utilities.Math.Examples.SmoothLimit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|smoLim.y",fileNamePrefix="Buildings_11_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.00849/0.00849, allocations: 97.45 kB / 15.73 MB, free: 6.039 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.001648/0.001648, allocations: 202.2 kB / 16.68 MB, free: 5.961 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.533/1.533, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.903/2.903, allocations: 469.8 MB / 0.7425 GB, free: 7.34 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001386/0.001386, allocations: 68.3 kB / 1.065 GB, free: 13.1 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3538/0.3552, allocations: 159.1 MB / 1.221 GB, free: 13.85 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothLimit): time 0.003467/0.3587, allocations: 1.469 MB / 1.222 GB, free: 12.37 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001096/0.3598, allocations: 0.561 MB / 1.223 GB, free: 11.8 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.862e-05/0.3598, allocations: 4 kB / 1.223 GB, free: 11.8 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 2.416e-05/0.3598, allocations: 0 / 1.223 GB, free: 11.8 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 4.172e-05/0.3599, allocations: 3.938 kB / 1.223 GB, free: 11.79 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002768/0.3601, allocations: 47.83 kB / 1.223 GB, free: 11.75 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 7.417e-05/0.3602, allocations: 31.86 kB / 1.223 GB, free: 11.71 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 8.951e-05/0.3603, allocations: 4 kB / 1.223 GB, free: 11.71 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 8.863e-05/0.3604, allocations: 27.84 kB / 1.223 GB, free: 11.68 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 4.848e-05/0.3604, allocations: 11.98 kB / 1.223 GB, free: 11.67 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 9.257e-06/0.3604, allocations: 0 / 1.223 GB, free: 11.67 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000127/0.3606, allocations: 55.89 kB / 1.223 GB, free: 11.62 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 1.362e-05/0.3606, allocations: 4 kB / 1.223 GB, free: 11.61 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 2.416e-05/0.3606, allocations: 11.94 kB / 1.223 GB, free: 11.6 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001451/0.3608, allocations: 63.78 kB / 1.223 GB, free: 11.54 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.979e-06/0.3608, allocations: 8 kB / 1.223 GB, free: 11.53 MB / 0.9825 GB Notification: Performance of FrontEnd: time 8.92e-07/0.3608, allocations: 0 / 1.223 GB, free: 11.53 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 3.838e-06/0.3608, allocations: 0 / 1.223 GB, free: 11.53 MB / 0.9825 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.0004201/0.3612, allocations: 351.2 kB / 1.223 GB, free: 11.14 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.187e-05/0.3612, allocations: 8.031 kB / 1.223 GB, free: 11.13 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.872e-05/0.3612, allocations: 8.875 kB / 1.223 GB, free: 11.12 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001302/0.3614, allocations: 172.3 kB / 1.223 GB, free: 10.92 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.075e-05/0.3614, allocations: 384 / 1.223 GB, free: 10.92 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.088e-05/0.3614, allocations: 4.375 kB / 1.223 GB, free: 10.91 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001367/0.3615, allocations: 57.92 kB / 1.223 GB, free: 10.85 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.256e-06/0.3615, allocations: 0 / 1.223 GB, free: 10.85 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.059e-05/0.3616, allocations: 3.984 kB / 1.223 GB, free: 10.85 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.248e-06/0.3616, allocations: 0 / 1.223 GB, free: 10.85 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.823e-05/0.3616, allocations: 19.98 kB / 1.223 GB, free: 10.83 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003533/0.362, allocations: 256.9 kB / 1.224 GB, free: 10.53 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 8.746e-05/0.3621, allocations: 30.52 kB / 1.224 GB, free: 10.49 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.836e-05/0.3621, allocations: 20.91 kB / 1.224 GB, free: 10.46 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007903/0.3629, allocations: 469.4 kB / 1.224 GB, free: 9.914 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.094e-05/0.363, allocations: 42.56 kB / 1.224 GB, free: 9.863 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=2): time 1.152e-06/0.363, allocations: 0 / 1.224 GB, free: 9.863 MB / 0.9825 GB Notification: Performance of matching and sorting (n=2): time 0.000277/0.3632, allocations: 57.64 kB / 1.224 GB, free: 9.801 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.234e-05/0.3633, allocations: 51.41 kB / 1.224 GB, free: 9.738 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.346e-05/0.3634, allocations: 117.8 kB / 1.224 GB, free: 9.613 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.79e-05/0.3634, allocations: 25.7 kB / 1.224 GB, free: 9.582 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 4.444e-05/0.3634, allocations: 88.06 kB / 1.225 GB, free: 9.492 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 1.837e-05/0.3635, allocations: 7.953 kB / 1.225 GB, free: 9.484 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.918e-05/0.3635, allocations: 17.84 kB / 1.225 GB, free: 9.461 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001242/0.3636, allocations: 314.8 kB / 1.225 GB, free: 9.145 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.55e-05/0.3637, allocations: 12 kB / 1.225 GB, free: 9.133 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.022e-05/0.3637, allocations: 7.984 kB / 1.225 GB, free: 9.125 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.82e-05/0.3638, allocations: 28.8 kB / 1.225 GB, free: 9.094 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.3638, allocations: 0 / 1.225 GB, free: 9.094 MB / 0.9825 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.000123/0.3639, allocations: 61.73 kB / 1.225 GB, free: 9.027 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.635e-05/0.3639, allocations: 4 kB / 1.225 GB, free: 9.023 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.518e-06/0.3639, allocations: 0 / 1.225 GB, free: 9.023 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.367e-05/0.3639, allocations: 0 / 1.225 GB, free: 9.023 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.571e-05/0.364, allocations: 7.938 kB / 1.225 GB, free: 9.016 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.198e-06/0.364, allocations: 0 / 1.225 GB, free: 9.016 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.689e-05/0.3641, allocations: 7.984 kB / 1.225 GB, free: 9.008 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.438e-06/0.3641, allocations: 0 / 1.225 GB, free: 9.008 MB / 0.9825 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.423e-05/0.3642, allocations: 118.3 kB / 1.225 GB, free: 8.883 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.734e-05/0.3642, allocations: 7.891 kB / 1.225 GB, free: 8.875 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001674/0.3643, allocations: 61.2 kB / 1.225 GB, free: 8.805 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.224e-06/0.3644, allocations: 0 / 1.225 GB, free: 8.805 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.279e-06/0.3644, allocations: 0 / 1.225 GB, free: 8.805 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.174e-06/0.3644, allocations: 0 / 1.225 GB, free: 8.805 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001788/0.3645, allocations: 165.6 kB / 1.225 GB, free: 8.594 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-06/0.3645, allocations: 0 / 1.225 GB, free: 8.594 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.361e-05/0.3646, allocations: 4 kB / 1.225 GB, free: 8.59 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.335e-06/0.3646, allocations: 4.031 kB / 1.225 GB, free: 8.586 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.594e-06/0.3646, allocations: 4 kB / 1.225 GB, free: 8.582 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.342e-06/0.3646, allocations: 7.938 kB / 1.225 GB, free: 8.574 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.384e-06/0.3646, allocations: 4 kB / 1.225 GB, free: 8.57 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001673/0.3648, allocations: 151.5 kB / 1.226 GB, free: 8.406 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 3.9e-05/0.3648, allocations: 81.06 kB / 1.226 GB, free: 8.309 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.509e-05/0.3648, allocations: 4 kB / 1.226 GB, free: 8.305 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.151e-05/0.3649, allocations: 8.016 kB / 1.226 GB, free: 8.297 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.046e-05/0.3649, allocations: 4 kB / 1.226 GB, free: 8.293 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.32e-06/0.3649, allocations: 4 kB / 1.226 GB, free: 8.289 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 4.607e-05/0.365, allocations: 79.59 kB / 1.226 GB, free: 8.211 MB / 0.9825 GB Notification: Performance of sort global known variables: time 7e-08/0.365, allocations: 0 / 1.226 GB, free: 8.211 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002379/0.3652, allocations: 23.92 kB / 1.226 GB, free: 8.188 MB / 0.9825 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.0001763/0.3654, allocations: 111.2 kB / 1.226 GB, free: 8.07 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0001301/0.3655, allocations: 35.91 kB / 1.226 GB, free: 8.035 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.443e-06/0.3655, allocations: 3.938 kB / 1.226 GB, free: 8.031 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 5.853e-05/0.3656, allocations: 8 kB / 1.226 GB, free: 8.023 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002027/0.3658, allocations: 9.812 kB / 1.226 GB, free: 8.016 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003114/0.3661, allocations: 126.5 kB / 1.226 GB, free: 7.867 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002452/0.3663, allocations: 0.6807 MB / 1.227 GB, free: 7.16 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 2.242e-05/0.3663, allocations: 8.109 kB / 1.227 GB, free: 7.152 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.045e-05/0.3664, allocations: 7.438 kB / 1.227 GB, free: 7.145 MB / 0.9825 GB Notification: Performance of SimCode: time 3.81e-07/0.3664, allocations: 7.938 kB / 1.227 GB, free: 7.137 MB / 0.9825 GB Notification: Performance of Templates: time 0.003114/0.3695, allocations: 0.6753 MB / 1.227 GB, free: 6.465 MB / 0.9825 GB make -j1 -f Buildings_11_Buildings.Utilities.Math.Examples.SmoothLimit.makefile (rm -f Buildings_11_Buildings.Utilities.Math.Examples.SmoothLimit.pipe ; mkfifo Buildings_11_Buildings.Utilities.Math.Examples.SmoothLimit.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Math.Examples.SmoothLimit.pipe >> ../files/Buildings_11_Buildings.Utilities.Math.Examples.SmoothLimit.sim & ./Buildings_11_Buildings.Utilities.Math.Examples.SmoothLimit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Utilities.Math.Examples.SmoothLimit.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Utilities.Math.Examples.SmoothLimit_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Math_Examples_SmoothLimit.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Utilities.Math.Examples.SmoothLimit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches