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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.0008264/0.0008262, allocations: 99.58 kB / 16.02 MB, free: 76 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.0009957/0.0009955, allocations: 181.5 kB / 16.92 MB, free: 6.918 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.417/1.417, allocations: 223.3 MB / 241 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.669/2.669, allocations: 437.8 MB / 0.7128 GB, free: 7.066 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003685/0.0003686, allocations: 8 kB / 0.8735 GB, free: 3.348 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.574/0.5744, allocations: 153.8 MB / 1.024 GB, free: 15.91 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothLimit): time 0.001577/0.576, allocations: 1.192 MB / 1.025 GB, free: 14.72 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.0008997/0.577, allocations: 0.5619 MB / 1.025 GB, free: 14.15 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.803e-05/0.577, allocations: 0 / 1.025 GB, free: 14.15 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 1.544e-05/0.577, allocations: 0 / 1.025 GB, free: 14.15 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 5.28e-05/0.5771, allocations: 3.938 kB / 1.025 GB, free: 14.14 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002514/0.5774, allocations: 51.83 kB / 1.025 GB, free: 14.09 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 7.165e-05/0.5774, allocations: 19.94 kB / 1.025 GB, free: 14.07 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 8.118e-05/0.5775, allocations: 11.97 kB / 1.025 GB, free: 14.06 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 8.134e-05/0.5776, allocations: 11.94 kB / 1.025 GB, free: 14.05 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 5.174e-05/0.5777, allocations: 7.984 kB / 1.025 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.096e-05/0.5777, allocations: 3.938 kB / 1.026 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001199/0.5778, allocations: 47.95 kB / 1.026 GB, free: 13.99 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 1.612e-05/0.5778, allocations: 11.98 kB / 1.026 GB, free: 13.98 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 3.147e-05/0.5779, allocations: 29.64 kB / 1.026 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001086/0.578, allocations: 55.92 kB / 1.026 GB, free: 13.89 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.387e-06/0.578, allocations: 0 / 1.026 GB, free: 13.89 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.482e-06/0.578, allocations: 0 / 1.026 GB, free: 13.89 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 6.122e-06/0.578, allocations: 0 / 1.026 GB, free: 13.89 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.000383/0.5784, allocations: 345.3 kB / 1.026 GB, free: 13.51 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.596e-05/0.5785, allocations: 11.97 kB / 1.026 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.966e-05/0.5785, allocations: 4.938 kB / 1.026 GB, free: 13.49 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001131/0.5786, allocations: 172.2 kB / 1.026 GB, free: 13.29 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.352e-05/0.5786, allocations: 8.375 kB / 1.026 GB, free: 13.28 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.037e-05/0.5786, allocations: 4.375 kB / 1.026 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001297/0.5788, allocations: 46 kB / 1.026 GB, free: 13.22 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.001e-06/0.5788, allocations: 0 / 1.026 GB, free: 13.22 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.776e-06/0.5788, allocations: 4 kB / 1.026 GB, free: 13.22 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.378e-06/0.5788, allocations: 0 / 1.026 GB, free: 13.22 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.358e-05/0.5789, allocations: 23.98 kB / 1.026 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003126/0.5792, allocations: 252.9 kB / 1.026 GB, free: 12.9 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 8.637e-05/0.5793, allocations: 34.52 kB / 1.027 GB, free: 12.86 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.087e-05/0.5794, allocations: 20.91 kB / 1.027 GB, free: 12.83 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000804/0.5802, allocations: 0.4897 MB / 1.027 GB, free: 12.25 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.447e-05/0.5802, allocations: 34.56 kB / 1.027 GB, free: 12.21 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=2): time 1.483e-06/0.5803, allocations: 0 / 1.027 GB, free: 12.21 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2): time 0.0002502/0.5805, allocations: 65.67 kB / 1.027 GB, free: 12.14 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.475e-05/0.5806, allocations: 59.47 kB / 1.027 GB, free: 12.07 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.064e-05/0.5806, allocations: 109.8 kB / 1.027 GB, free: 11.95 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.201e-05/0.5807, allocations: 25.7 kB / 1.027 GB, free: 11.92 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 4.124e-05/0.5807, allocations: 92.08 kB / 1.027 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.525e-05/0.5807, allocations: 3.906 kB / 1.027 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.196e-05/0.5808, allocations: 9.719 kB / 1.027 GB, free: 11.8 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.247e-05/0.5809, allocations: 318.8 kB / 1.028 GB, free: 11.48 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.559e-05/0.5809, allocations: 8 kB / 1.028 GB, free: 11.48 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.935e-05/0.581, allocations: 19.98 kB / 1.028 GB, free: 11.46 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.62e-05/0.5811, allocations: 28.8 kB / 1.028 GB, free: 11.43 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.5811, allocations: 0 / 1.028 GB, free: 11.43 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001274/0.5812, allocations: 65.52 kB / 1.028 GB, free: 11.36 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.504e-05/0.5812, allocations: 12.09 kB / 1.028 GB, free: 11.34 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.679e-06/0.5812, allocations: 0 / 1.028 GB, free: 11.34 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.127e-05/0.5812, allocations: 0 / 1.028 GB, free: 11.34 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.691e-05/0.5813, allocations: 4 kB / 1.028 GB, free: 11.34 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.939e-06/0.5813, allocations: 0 / 1.028 GB, free: 11.34 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.927e-05/0.5814, allocations: 11.92 kB / 1.028 GB, free: 11.33 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.073e-06/0.5814, allocations: 0 / 1.028 GB, free: 11.33 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 7.542e-05/0.5815, allocations: 122.2 kB / 1.028 GB, free: 11.2 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.351e-05/0.5815, allocations: 4 kB / 1.028 GB, free: 11.2 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001628/0.5817, allocations: 65.2 kB / 1.028 GB, free: 11.12 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.274e-06/0.5817, allocations: 0 / 1.028 GB, free: 11.12 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/0.5817, allocations: 4 kB / 1.028 GB, free: 11.12 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.815e-06/0.5817, allocations: 0 / 1.028 GB, free: 11.12 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001531/0.5819, allocations: 161.6 kB / 1.028 GB, free: 10.91 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.5819, allocations: 3.938 kB / 1.028 GB, free: 10.91 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.424e-05/0.5819, allocations: 8 kB / 1.028 GB, free: 10.9 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.364e-06/0.5819, allocations: 4.031 kB / 1.028 GB, free: 10.9 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.635e-06/0.5819, allocations: 4 kB / 1.028 GB, free: 10.89 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.5819, allocations: 0 / 1.028 GB, free: 10.89 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.582, allocations: 0 / 1.028 GB, free: 10.89 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001705/0.5821, allocations: 163.4 kB / 1.028 GB, free: 10.72 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.018e-05/0.5822, allocations: 81.14 kB / 1.028 GB, free: 10.62 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.129e-05/0.5822, allocations: 0 / 1.028 GB, free: 10.62 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.222e-05/0.5823, allocations: 7.984 kB / 1.028 GB, free: 10.61 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.673e-05/0.5823, allocations: 3.984 kB / 1.028 GB, free: 10.61 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.637e-06/0.5823, allocations: 0 / 1.028 GB, free: 10.61 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 4.782e-05/0.5823, allocations: 95.56 kB / 1.029 GB, free: 10.52 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5824, allocations: 0 / 1.029 GB, free: 10.52 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002335/0.5826, allocations: 16 kB / 1.029 GB, free: 10.5 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.0001589/0.5828, allocations: 115.2 kB / 1.029 GB, free: 10.38 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0001292/0.5829, allocations: 31.97 kB / 1.029 GB, free: 10.34 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.744e-06/0.5829, allocations: 0 / 1.029 GB, free: 10.34 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 4.82e-05/0.583, allocations: 12 kB / 1.029 GB, free: 10.33 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002027/0.5832, allocations: 7.875 kB / 1.029 GB, free: 10.32 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002765/0.5835, allocations: 170.4 kB / 1.029 GB, free: 10.13 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002241/0.5837, allocations: 0.677 MB / 1.03 GB, free: 9.426 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.541e-05/0.5837, allocations: 19.38 kB / 1.03 GB, free: 9.406 MB / 0.7794 GB Notification: Performance of SimCode: time 3.91e-07/0.5837, allocations: 0 / 1.03 GB, free: 9.406 MB / 0.7794 GB Notification: Performance of Templates: time 0.00221/0.5859, allocations: 0.8015 MB / 1.03 GB, free: 8.609 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Examples.SmoothLimit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches