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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.001221/0.001221, allocations: 100 kB / 15.05 MB, free: 1.105 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.001357/0.001357, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.452/1.452, allocations: 223.2 MB / 239.9 MB, free: 5.434 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.696/2.696, allocations: 436.5 MB / 0.7104 GB, free: 7.91 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003817/0.0003817, allocations: 8 kB / 0.8708 GB, free: 4.785 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8646/0.865, allocations: 153.6 MB / 1.021 GB, free: 1.215 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothLimit): time 0.002001/0.867, allocations: 1.18 MB / 1.022 GB, free: 24 kB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001075/0.8681, allocations: 0.5156 MB / 1.022 GB, free: 15.5 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.691e-05/0.8682, allocations: 4 kB / 1.022 GB, free: 15.5 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 2.819e-05/0.8682, allocations: 3.938 kB / 1.022 GB, free: 15.49 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 6.099e-05/0.8683, allocations: 11.98 kB / 1.022 GB, free: 15.48 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003216/0.8686, allocations: 31.95 kB / 1.023 GB, free: 15.45 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 7.383e-05/0.8687, allocations: 19.91 kB / 1.023 GB, free: 15.43 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 9.887e-05/0.8688, allocations: 4 kB / 1.023 GB, free: 15.43 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 9.964e-05/0.8689, allocations: 11.94 kB / 1.023 GB, free: 15.41 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 8.162e-05/0.869, allocations: 11.92 kB / 1.023 GB, free: 15.4 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.151e-05/0.8691, allocations: 4 kB / 1.023 GB, free: 15.4 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001352/0.8692, allocations: 51.94 kB / 1.023 GB, free: 15.35 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 1.113e-05/0.8692, allocations: 0 / 1.023 GB, free: 15.35 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 3.467e-05/0.8693, allocations: 37.64 kB / 1.023 GB, free: 15.3 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001324/0.8694, allocations: 43.92 kB / 1.023 GB, free: 15.26 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.8694, allocations: 0 / 1.023 GB, free: 15.26 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.234e-06/0.8694, allocations: 0 / 1.023 GB, free: 15.26 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 7.203e-06/0.8694, allocations: 0 / 1.023 GB, free: 15.26 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.000484/0.8699, allocations: 339.3 kB / 1.023 GB, free: 14.89 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.911e-05/0.87, allocations: 15.98 kB / 1.023 GB, free: 14.87 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.185e-05/0.87, allocations: 15.91 kB / 1.023 GB, free: 14.86 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001624/0.8702, allocations: 167.1 kB / 1.023 GB, free: 14.65 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.692e-05/0.8702, allocations: 0 / 1.023 GB, free: 14.65 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.968e-06/0.8702, allocations: 0 / 1.023 GB, free: 14.65 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001655/0.8704, allocations: 49.64 kB / 1.023 GB, free: 14.6 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.063e-05/0.8704, allocations: 3.938 kB / 1.023 GB, free: 14.59 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.102e-05/0.8704, allocations: 3.938 kB / 1.023 GB, free: 14.59 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.42e-06/0.8705, allocations: 0 / 1.023 GB, free: 14.59 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.828e-05/0.8706, allocations: 27.98 kB / 1.023 GB, free: 14.56 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004033/0.871, allocations: 248.9 kB / 1.024 GB, free: 14.27 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 8.919e-05/0.8711, allocations: 30.58 kB / 1.024 GB, free: 14.23 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008828/0.872, allocations: 0.4936 MB / 1.024 GB, free: 13.64 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.864e-05/0.872, allocations: 38.5 kB / 1.024 GB, free: 13.6 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=2): time 1.182e-06/0.872, allocations: 3.938 kB / 1.024 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2): time 0.0002735/0.8723, allocations: 69.67 kB / 1.024 GB, free: 13.52 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.033e-05/0.8724, allocations: 59.44 kB / 1.024 GB, free: 13.45 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.799e-05/0.8725, allocations: 105.8 kB / 1.024 GB, free: 13.34 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.585e-05/0.8725, allocations: 25.7 kB / 1.024 GB, free: 13.3 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 7.229e-05/0.8726, allocations: 84.14 kB / 1.024 GB, free: 13.22 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.898e-05/0.8726, allocations: 7.906 kB / 1.024 GB, free: 13.21 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.947e-06/0.8726, allocations: 0 / 1.024 GB, free: 13.21 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001449/0.8728, allocations: 314.8 kB / 1.025 GB, free: 12.89 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.993e-05/0.8728, allocations: 16 kB / 1.025 GB, free: 12.88 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.692e-05/0.8729, allocations: 11.98 kB / 1.025 GB, free: 12.87 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.941e-05/0.8729, allocations: 15.94 kB / 1.025 GB, free: 12.85 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.8729, allocations: 0 / 1.025 GB, free: 12.85 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001439/0.8731, allocations: 65.61 kB / 1.025 GB, free: 12.78 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.648e-05/0.8731, allocations: 8.094 kB / 1.025 GB, free: 12.77 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.741e-06/0.8731, allocations: 0 / 1.025 GB, free: 12.77 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.259e-05/0.8731, allocations: 4 kB / 1.025 GB, free: 12.77 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.915e-05/0.8732, allocations: 4 kB / 1.025 GB, free: 12.77 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.404e-06/0.8732, allocations: 0 / 1.025 GB, free: 12.77 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.854e-05/0.8733, allocations: 11.92 kB / 1.025 GB, free: 12.75 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.611e-06/0.8733, allocations: 0 / 1.025 GB, free: 12.75 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.114e-05/0.8734, allocations: 109.8 kB / 1.025 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.562e-05/0.8734, allocations: 15.86 kB / 1.025 GB, free: 12.62 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002148/0.8736, allocations: 65.14 kB / 1.025 GB, free: 12.55 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.425e-06/0.8736, allocations: 0 / 1.025 GB, free: 12.55 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.61e-06/0.8737, allocations: 0 / 1.025 GB, free: 12.55 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.8737, allocations: 0 / 1.025 GB, free: 12.55 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002079/0.8739, allocations: 169.6 kB / 1.025 GB, free: 12.34 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-06/0.8739, allocations: 3.938 kB / 1.025 GB, free: 12.33 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.197e-05/0.8739, allocations: 4 kB / 1.025 GB, free: 12.33 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.048e-06/0.8739, allocations: 7.984 kB / 1.025 GB, free: 12.32 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.068e-05/0.874, allocations: 4 kB / 1.025 GB, free: 12.32 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.874, allocations: 0 / 1.025 GB, free: 12.32 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.874, allocations: 0 / 1.025 GB, free: 12.32 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002035/0.8742, allocations: 155.5 kB / 1.025 GB, free: 12.15 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 6.33e-05/0.8743, allocations: 85.05 kB / 1.025 GB, free: 12.05 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.091e-05/0.8743, allocations: 7.953 kB / 1.025 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.877e-05/0.8743, allocations: 4 kB / 1.025 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.166e-05/0.8744, allocations: 7.984 kB / 1.025 GB, free: 12.03 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.527e-06/0.8744, allocations: 0 / 1.025 GB, free: 12.03 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.888e-05/0.8745, allocations: 83.59 kB / 1.026 GB, free: 11.95 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8745, allocations: 0 / 1.026 GB, free: 11.95 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002513/0.8747, allocations: 23.92 kB / 1.026 GB, free: 11.92 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002606/0.875, allocations: 111.2 kB / 1.026 GB, free: 11.8 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0001531/0.8752, allocations: 27.98 kB / 1.026 GB, free: 11.77 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.8752, allocations: 0 / 1.026 GB, free: 11.77 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 5.028e-05/0.8752, allocations: 15.98 kB / 1.026 GB, free: 11.76 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001796/0.8754, allocations: 7.938 kB / 1.026 GB, free: 11.75 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003661/0.8758, allocations: 136.7 kB / 1.026 GB, free: 11.59 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003739/0.8762, allocations: 0.6848 MB / 1.027 GB, free: 10.88 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 2.505e-05/0.8762, allocations: 0 / 1.027 GB, free: 10.88 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.246e-05/0.8762, allocations: 7.438 kB / 1.027 GB, free: 10.88 MB / 0.7794 GB Notification: Performance of SimCode: time 2e-07/0.8762, allocations: 0 / 1.027 GB, free: 10.88 MB / 0.7794 GB Notification: Performance of Templates: time 0.00341/0.8797, allocations: 0.6249 MB / 1.027 GB, free: 10.25 MB / 0.7794 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","../files/Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches