Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_Buildings.Utilities.Math.Examples.SmoothLimit") translateModel(Buildings.Utilities.Math.Examples.SmoothLimit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|smoLim.y",fileNamePrefix="Buildings_9_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.00671/0.00671, allocations: 101.1 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.001329/0.001329, allocations: 190.4 kB / 16.67 MB, free: 5.977 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.437/1.437, allocations: 222.9 MB / 240.4 MB, free: 4.152 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.606/2.606, allocations: 390.2 MB / 0.6648 GB, free: 172 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00121/0.00121, allocations: 63.5 kB / 0.9508 GB, free: 5.457 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4195/0.4208, allocations: 140.4 MB / 1.088 GB, free: 1.5 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothLimit): time 0.005688/0.4265, allocations: 1.46 MB / 1.089 GB, free: 28 kB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.00199/0.4286, allocations: 0.5633 MB / 1.09 GB, free: 15.46 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.019e-05/0.4287, allocations: 0 / 1.09 GB, free: 15.46 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 5.092e-05/0.4288, allocations: 7.875 kB / 1.09 GB, free: 15.45 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001143/0.4289, allocations: 7.938 kB / 1.09 GB, free: 15.44 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005696/0.4295, allocations: 47.83 kB / 1.09 GB, free: 15.39 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001263/0.4297, allocations: 23.92 kB / 1.09 GB, free: 15.37 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001466/0.4298, allocations: 11.94 kB / 1.09 GB, free: 15.36 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001545/0.43, allocations: 23.86 kB / 1.09 GB, free: 15.34 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001088/0.4301, allocations: 19.91 kB / 1.09 GB, free: 15.32 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.829e-05/0.4302, allocations: 0 / 1.09 GB, free: 15.32 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002504/0.4304, allocations: 55.95 kB / 1.09 GB, free: 15.26 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.248e-05/0.4305, allocations: 0 / 1.09 GB, free: 15.26 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 5.602e-05/0.4305, allocations: 11.94 kB / 1.09 GB, free: 15.25 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002853/0.4308, allocations: 59.86 kB / 1.09 GB, free: 15.19 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 8.836e-06/0.4308, allocations: 0 / 1.09 GB, free: 15.19 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.534e-06/0.4309, allocations: 4 kB / 1.09 GB, free: 15.19 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.441e-05/0.4309, allocations: 4 kB / 1.09 GB, free: 15.18 MB / 0.8575 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.0007786/0.4317, allocations: 351.3 kB / 1.09 GB, free: 14.79 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.772e-05/0.4318, allocations: 8.031 kB / 1.091 GB, free: 14.79 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.194e-05/0.4318, allocations: 8.844 kB / 1.091 GB, free: 14.78 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002163/0.4321, allocations: 168.3 kB / 1.091 GB, free: 14.57 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.191e-05/0.4321, allocations: 8.375 kB / 1.091 GB, free: 14.57 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.962e-05/0.4321, allocations: 384 / 1.091 GB, free: 14.57 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002171/0.4324, allocations: 53.92 kB / 1.091 GB, free: 14.51 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.319e-05/0.4324, allocations: 4 kB / 1.091 GB, free: 14.5 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.271e-05/0.4324, allocations: 0 / 1.091 GB, free: 14.5 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.471e-06/0.4324, allocations: 0 / 1.091 GB, free: 14.5 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001577/0.4326, allocations: 19.98 kB / 1.091 GB, free: 14.48 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005072/0.4331, allocations: 252.9 kB / 1.091 GB, free: 14.19 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001387/0.4333, allocations: 26.58 kB / 1.091 GB, free: 14.15 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.843e-05/0.4334, allocations: 28.84 kB / 1.091 GB, free: 14.12 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001354/0.4347, allocations: 469.4 kB / 1.091 GB, free: 13.57 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.424e-05/0.4348, allocations: 34.56 kB / 1.092 GB, free: 13.53 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=2): time 2.264e-06/0.4348, allocations: 4 kB / 1.092 GB, free: 13.52 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2): time 0.000396/0.4352, allocations: 61.59 kB / 1.092 GB, free: 13.46 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.374e-05/0.4353, allocations: 55.39 kB / 1.092 GB, free: 13.39 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001656/0.4355, allocations: 109.8 kB / 1.092 GB, free: 13.27 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.392e-05/0.4355, allocations: 25.7 kB / 1.092 GB, free: 13.24 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 7.597e-05/0.4356, allocations: 88.12 kB / 1.092 GB, free: 13.15 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.997e-05/0.4357, allocations: 3.906 kB / 1.092 GB, free: 13.15 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.327e-05/0.4357, allocations: 17.84 kB / 1.092 GB, free: 13.12 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0002039/0.436, allocations: 318.8 kB / 1.092 GB, free: 12.8 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.219e-05/0.436, allocations: 15.94 kB / 1.092 GB, free: 12.79 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.549e-05/0.4361, allocations: 7.984 kB / 1.092 GB, free: 12.78 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001417/0.4363, allocations: 24.8 kB / 1.092 GB, free: 12.75 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.472e-06/0.4363, allocations: 4 kB / 1.092 GB, free: 12.75 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002366/0.4366, allocations: 57.73 kB / 1.092 GB, free: 12.69 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 3.157e-05/0.4366, allocations: 5.875 kB / 1.092 GB, free: 12.68 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.305e-06/0.4366, allocations: 3.938 kB / 1.092 GB, free: 12.68 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.049e-05/0.4367, allocations: 0 / 1.092 GB, free: 12.68 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001097/0.4368, allocations: 4 kB / 1.092 GB, free: 12.68 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.591e-05/0.4368, allocations: 0 / 1.092 GB, free: 12.68 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.518e-05/0.4369, allocations: 23.86 kB / 1.092 GB, free: 12.65 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.548e-06/0.4369, allocations: 0 / 1.092 GB, free: 12.65 MB / 0.8575 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 0.0001353/0.437, allocations: 113.8 kB / 1.092 GB, free: 12.53 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.993e-05/0.4371, allocations: 7.938 kB / 1.092 GB, free: 12.52 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002799/0.4374, allocations: 65.19 kB / 1.093 GB, free: 12.45 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.697e-06/0.4374, allocations: 0 / 1.093 GB, free: 12.45 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-06/0.4374, allocations: 0 / 1.093 GB, free: 12.45 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.168e-06/0.4374, allocations: 4 kB / 1.093 GB, free: 12.45 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002791/0.4377, allocations: 161.6 kB / 1.093 GB, free: 12.24 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.816e-06/0.4378, allocations: 0 / 1.093 GB, free: 12.24 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.721e-05/0.4378, allocations: 4 kB / 1.093 GB, free: 12.23 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.058e-06/0.4378, allocations: 0 / 1.093 GB, free: 12.23 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.156e-05/0.4379, allocations: 8.031 kB / 1.093 GB, free: 12.23 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.846e-06/0.4379, allocations: 0 / 1.093 GB, free: 12.23 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.31e-06/0.4379, allocations: 0 / 1.093 GB, free: 12.23 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002897/0.4382, allocations: 155.4 kB / 1.093 GB, free: 12.06 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 6.024e-05/0.4383, allocations: 85.02 kB / 1.093 GB, free: 11.96 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.987e-05/0.4383, allocations: 0 / 1.093 GB, free: 11.96 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001101/0.4384, allocations: 3.984 kB / 1.093 GB, free: 11.95 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.686e-05/0.4385, allocations: 8.031 kB / 1.093 GB, free: 11.95 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.522e-06/0.4385, allocations: 0 / 1.093 GB, free: 11.95 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 8.912e-05/0.4386, allocations: 83.28 kB / 1.093 GB, free: 11.86 MB / 0.8575 GB Notification: Performance of sort global known variables: time 3.71e-07/0.4386, allocations: 0 / 1.093 GB, free: 11.86 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0004428/0.4391, allocations: 15.98 kB / 1.093 GB, free: 11.85 MB / 0.8575 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.0002891/0.4394, allocations: 119.2 kB / 1.093 GB, free: 11.72 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002461/0.4396, allocations: 27.92 kB / 1.093 GB, free: 11.7 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.4397, allocations: 4.062 kB / 1.093 GB, free: 11.69 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 8.917e-05/0.4398, allocations: 8 kB / 1.093 GB, free: 11.68 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00038/0.4402, allocations: 7.938 kB / 1.093 GB, free: 11.68 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005883/0.4408, allocations: 122.7 kB / 1.093 GB, free: 11.53 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000429/0.4412, allocations: 0.6845 MB / 1.094 GB, free: 10.82 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 4.167e-05/0.4413, allocations: 3.984 kB / 1.094 GB, free: 10.82 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.281e-05/0.4413, allocations: 15.5 kB / 1.094 GB, free: 10.8 MB / 0.8575 GB Notification: Performance of SimCode: time 8.61e-07/0.4413, allocations: 0 / 1.094 GB, free: 10.8 MB / 0.8575 GB Notification: Performance of Templates: time 0.005094/0.4464, allocations: 0.6721 MB / 1.095 GB, free: 10.14 MB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Examples.SmoothLimit.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Examples.SmoothLimit.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.SmoothLimit.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.SmoothLimit.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.SmoothLimit.sim & ./Buildings_9_Buildings.Utilities.Math.Examples.SmoothLimit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Examples.SmoothLimit.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.SmoothLimit_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_SmoothLimit.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.SmoothLimit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches