Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_Buildings.Utilities.Math.Examples.SmoothLimit") translateModel(Buildings.Utilities.Math.Examples.SmoothLimit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|smoLim.y",fileNamePrefix="Buildings_10_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.00122/0.001219, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.01014/0.01014, allocations: 170.8 kB / 16.26 MB, free: 6.613 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.401/1.401, allocations: 223.3 MB / 240.3 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.653/2.653, allocations: 437.8 MB / 0.7121 GB, free: 7.008 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.000309/0.000309, allocations: 8 kB / 0.8728 GB, free: 3.316 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7202/0.7205, allocations: 153.8 MB / 1.023 GB, free: 15.88 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothLimit): time 0.002151/0.7227, allocations: 1.188 MB / 1.024 GB, free: 14.68 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001191/0.724, allocations: 0.5581 MB / 1.025 GB, free: 14.12 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.109e-05/0.724, allocations: 0 / 1.025 GB, free: 14.12 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 2.022e-05/0.724, allocations: 4 kB / 1.025 GB, free: 14.11 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 6.427e-05/0.7241, allocations: 3.938 kB / 1.025 GB, free: 14.11 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003482/0.7245, allocations: 43.89 kB / 1.025 GB, free: 14.07 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 8.201e-05/0.7246, allocations: 23.88 kB / 1.025 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001113/0.7247, allocations: 11.98 kB / 1.025 GB, free: 14.03 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001063/0.7248, allocations: 8 kB / 1.025 GB, free: 14.02 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 8.484e-05/0.7249, allocations: 15.92 kB / 1.025 GB, free: 14.01 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.946e-05/0.7249, allocations: 0 / 1.025 GB, free: 14.01 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001546/0.7251, allocations: 51.94 kB / 1.025 GB, free: 13.96 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 1.606e-05/0.7251, allocations: 3.938 kB / 1.025 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 4.738e-05/0.7252, allocations: 37.64 kB / 1.025 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001518/0.7253, allocations: 59.86 kB / 1.025 GB, free: 13.85 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.7254, allocations: 0 / 1.025 GB, free: 13.85 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.245e-06/0.7254, allocations: 4 kB / 1.025 GB, free: 13.85 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.398e-06/0.7254, allocations: 0 / 1.025 GB, free: 13.85 MB / 0.7794 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.000487/0.7259, allocations: 349.4 kB / 1.025 GB, free: 13.46 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 5.132e-05/0.7259, allocations: 11.97 kB / 1.025 GB, free: 13.45 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.455e-05/0.726, allocations: 8.844 kB / 1.025 GB, free: 13.44 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001365/0.7261, allocations: 172.3 kB / 1.025 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.276e-05/0.7261, allocations: 384 / 1.025 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.046e-05/0.7262, allocations: 4.312 kB / 1.025 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001526/0.7263, allocations: 61.97 kB / 1.026 GB, free: 13.16 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.662e-06/0.7263, allocations: 3.938 kB / 1.026 GB, free: 13.16 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.648e-06/0.7263, allocations: 0 / 1.026 GB, free: 13.16 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.498e-06/0.7264, allocations: 0 / 1.026 GB, free: 13.16 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.517e-05/0.7265, allocations: 23.98 kB / 1.026 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003305/0.7268, allocations: 260.8 kB / 1.026 GB, free: 12.83 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 9.318e-05/0.7269, allocations: 30.58 kB / 1.026 GB, free: 12.79 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.884e-05/0.727, allocations: 16.91 kB / 1.026 GB, free: 12.77 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008095/0.7278, allocations: 0.4975 MB / 1.026 GB, free: 12.18 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.276e-05/0.7278, allocations: 34.56 kB / 1.026 GB, free: 12.14 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=2): time 1.102e-06/0.7278, allocations: 0 / 1.026 GB, free: 12.14 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2): time 0.0002572/0.7281, allocations: 69.62 kB / 1.026 GB, free: 12.07 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.844e-05/0.7281, allocations: 55.39 kB / 1.027 GB, free: 12 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.927e-05/0.7282, allocations: 102 kB / 1.027 GB, free: 11.89 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.905e-05/0.7282, allocations: 33.69 kB / 1.027 GB, free: 11.85 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 4.098e-05/0.7283, allocations: 88.14 kB / 1.027 GB, free: 11.76 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.558e-05/0.7283, allocations: 3.906 kB / 1.027 GB, free: 11.76 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.297e-05/0.7283, allocations: 9.719 kB / 1.027 GB, free: 11.74 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001188/0.7285, allocations: 314.8 kB / 1.027 GB, free: 11.43 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.599e-05/0.7285, allocations: 11.98 kB / 1.027 GB, free: 11.41 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.778e-05/0.7286, allocations: 12 kB / 1.027 GB, free: 11.4 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.217e-05/0.7287, allocations: 36.84 kB / 1.027 GB, free: 11.36 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.7287, allocations: 0 / 1.027 GB, free: 11.36 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001282/0.7288, allocations: 69.52 kB / 1.027 GB, free: 11.29 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.583e-05/0.7288, allocations: 4 kB / 1.027 GB, free: 11.29 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.628e-06/0.7288, allocations: 0 / 1.027 GB, free: 11.29 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.095e-05/0.7288, allocations: 4.031 kB / 1.027 GB, free: 11.28 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.44e-05/0.7289, allocations: 4 kB / 1.027 GB, free: 11.28 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.511e-06/0.7289, allocations: 0 / 1.027 GB, free: 11.28 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.546e-05/0.729, allocations: 11.92 kB / 1.027 GB, free: 11.27 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.851e-06/0.729, allocations: 0 / 1.027 GB, free: 11.27 MB / 0.7794 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 9.98e-05/0.7291, allocations: 117.8 kB / 1.027 GB, free: 11.14 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.254e-05/0.7291, allocations: 0 / 1.027 GB, free: 11.14 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001775/0.7293, allocations: 69.14 kB / 1.027 GB, free: 11.07 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.519e-06/0.7293, allocations: 4 kB / 1.027 GB, free: 11.06 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.971e-06/0.7293, allocations: 0 / 1.027 GB, free: 11.06 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.149e-06/0.7293, allocations: 0 / 1.027 GB, free: 11.06 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001693/0.7295, allocations: 169.5 kB / 1.028 GB, free: 10.85 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.7295, allocations: 0 / 1.028 GB, free: 10.85 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.275e-05/0.7296, allocations: 8 kB / 1.028 GB, free: 10.84 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.723e-06/0.7296, allocations: 0 / 1.028 GB, free: 10.84 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.656e-06/0.7296, allocations: 7.969 kB / 1.028 GB, free: 10.83 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/0.7296, allocations: 0 / 1.028 GB, free: 10.83 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.7296, allocations: 0 / 1.028 GB, free: 10.83 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001808/0.7298, allocations: 159.4 kB / 1.028 GB, free: 10.66 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.39e-05/0.7298, allocations: 77.11 kB / 1.028 GB, free: 10.57 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.687e-05/0.7299, allocations: 4 kB / 1.028 GB, free: 10.56 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.09e-05/0.7299, allocations: 12.03 kB / 1.028 GB, free: 10.55 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.558e-05/0.73, allocations: 7.922 kB / 1.028 GB, free: 10.54 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.366e-06/0.73, allocations: 0 / 1.028 GB, free: 10.54 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 4.846e-05/0.73, allocations: 87.59 kB / 1.028 GB, free: 10.46 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.2e-07/0.73, allocations: 0 / 1.028 GB, free: 10.46 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002453/0.7303, allocations: 19.98 kB / 1.028 GB, free: 10.44 MB / 0.7794 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.0001709/0.7305, allocations: 107.2 kB / 1.028 GB, free: 10.32 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0001312/0.7306, allocations: 31.98 kB / 1.028 GB, free: 10.29 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.7306, allocations: 0 / 1.028 GB, free: 10.29 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 4.875e-05/0.7307, allocations: 15.98 kB / 1.028 GB, free: 10.27 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002202/0.7309, allocations: 7.938 kB / 1.028 GB, free: 10.27 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002879/0.7312, allocations: 140.6 kB / 1.028 GB, free: 10.11 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002154/0.7314, allocations: 0.677 MB / 1.029 GB, free: 9.402 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 2.423e-05/0.7314, allocations: 4 kB / 1.029 GB, free: 9.398 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.946e-05/0.7315, allocations: 11.42 kB / 1.029 GB, free: 9.387 MB / 0.7794 GB Notification: Performance of SimCode: time 3.6e-07/0.7315, allocations: 0 / 1.029 GB, free: 9.387 MB / 0.7794 GB Notification: Performance of Templates: time 0.002874/0.7344, allocations: 0.6372 MB / 1.029 GB, free: 8.75 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Utilities.Math.Examples.SmoothLimit.makefile (rm -f Buildings_10_Buildings.Utilities.Math.Examples.SmoothLimit.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Examples.SmoothLimit.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Examples.SmoothLimit.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Examples.SmoothLimit.sim & ./Buildings_10_Buildings.Utilities.Math.Examples.SmoothLimit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.Math.Examples.SmoothLimit.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Examples.SmoothLimit_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Examples_SmoothLimit.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Examples.SmoothLimit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches