Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Round.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.Functions.Examples.Round,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|ym2|ym1|y|y1|y2",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Round") translateModel(Buildings.Utilities.Math.Functions.Examples.Round,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|ym2|ym1|y|y1|y2",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Round") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009903/0.0009905, allocations: 99.7 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.0009666/0.0009667, allocations: 177.3 kB / 15.94 MB, free: 228 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.47/1.47, allocations: 223.2 MB / 239.9 MB, free: 5.445 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.757/2.757, allocations: 436.5 MB / 0.7104 GB, free: 7.922 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0004078/0.0004078, allocations: 16 kB / 0.8708 GB, free: 4.789 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7585/0.7589, allocations: 153.7 MB / 1.021 GB, free: 1.117 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Round): time 0.001088/0.7601, allocations: 325.4 kB / 1.021 GB, free: 0.7969 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0003414/0.7604, allocations: 63.78 kB / 1.021 GB, free: 0.7344 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.351e-05/0.7605, allocations: 0 / 1.021 GB, free: 0.7344 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 1.684e-05/0.7605, allocations: 0 / 1.021 GB, free: 0.7344 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 9.398e-06/0.7605, allocations: 0 / 1.021 GB, free: 0.7344 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003303/0.7609, allocations: 19.97 kB / 1.021 GB, free: 0.7148 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 6.917e-05/0.761, allocations: 0 / 1.021 GB, free: 0.7148 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 6.974e-05/0.7611, allocations: 4 kB / 1.021 GB, free: 0.7109 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 3.77e-05/0.7611, allocations: 15.92 kB / 1.021 GB, free: 0.6953 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 8.133e-05/0.7612, allocations: 11.98 kB / 1.021 GB, free: 0.6836 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.432e-05/0.7612, allocations: 0 / 1.021 GB, free: 0.6836 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001075/0.7613, allocations: 11.98 kB / 1.021 GB, free: 0.6719 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 1.299e-05/0.7614, allocations: 4 kB / 1.021 GB, free: 0.668 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 3.926e-05/0.7614, allocations: 25.7 kB / 1.021 GB, free: 0.6367 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 8.607e-05/0.7615, allocations: 7.984 kB / 1.021 GB, free: 0.6289 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.7615, allocations: 0 / 1.021 GB, free: 0.6289 MB / 0.7637 GB Notification: Performance of FrontEnd: time 2.174e-06/0.7615, allocations: 3.938 kB / 1.021 GB, free: 0.625 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 4.85e-06/0.7615, allocations: 0 / 1.021 GB, free: 0.625 MB / 0.7637 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0005311/0.7621, allocations: 327.4 kB / 1.022 GB, free: 264 kB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 5.438e-05/0.7621, allocations: 15.92 kB / 1.022 GB, free: 248 kB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.833e-05/0.7622, allocations: 3.906 kB / 1.022 GB, free: 244 kB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001339/0.7623, allocations: 171 kB / 1.022 GB, free: 32 kB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.805e-05/0.7624, allocations: 0 / 1.022 GB, free: 32 kB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.603e-05/0.7624, allocations: 3.938 kB / 1.022 GB, free: 28 kB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001985/0.7626, allocations: 73.94 kB / 1.022 GB, free: 15.93 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.536e-06/0.7626, allocations: 3.938 kB / 1.022 GB, free: 15.93 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.491e-05/0.7626, allocations: 8 kB / 1.022 GB, free: 15.92 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.14e-06/0.7626, allocations: 0 / 1.022 GB, free: 15.92 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.546e-05/0.7627, allocations: 11.92 kB / 1.022 GB, free: 15.91 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000218/0.7629, allocations: 183.2 kB / 1.022 GB, free: 15.67 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001025/0.763, allocations: 93.06 kB / 1.022 GB, free: 15.54 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002188/0.7632, allocations: 85.11 kB / 1.022 GB, free: 15.43 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.098e-05/0.7633, allocations: 38.55 kB / 1.022 GB, free: 15.39 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=5): time 1.633e-06/0.7633, allocations: 0 / 1.022 GB, free: 15.39 MB / 0.7794 GB Notification: Performance of matching and sorting (n=5): time 0.0002186/0.7635, allocations: 73.52 kB / 1.022 GB, free: 15.31 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001067/0.7636, allocations: 162.8 kB / 1.022 GB, free: 15.11 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.158e-05/0.7637, allocations: 89.86 kB / 1.023 GB, free: 15.02 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.433e-05/0.7637, allocations: 29.7 kB / 1.023 GB, free: 14.98 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.032e-05/0.7638, allocations: 80.14 kB / 1.023 GB, free: 14.9 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 4.729e-05/0.7638, allocations: 19.73 kB / 1.023 GB, free: 14.88 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.141e-06/0.7638, allocations: 4 kB / 1.023 GB, free: 14.88 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001238/0.7639, allocations: 314.8 kB / 1.023 GB, free: 14.56 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.755e-05/0.764, allocations: 4 kB / 1.023 GB, free: 14.55 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.835e-05/0.764, allocations: 40.28 kB / 1.023 GB, free: 14.5 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.681e-05/0.7641, allocations: 8 kB / 1.023 GB, free: 14.49 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.7641, allocations: 0 / 1.023 GB, free: 14.49 MB / 0.7794 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001025/0.7642, allocations: 61.56 kB / 1.023 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.121e-05/0.7642, allocations: 11.98 kB / 1.023 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.279e-06/0.7642, allocations: 4.156 kB / 1.023 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.702e-05/0.7642, allocations: 3.953 kB / 1.023 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.639e-05/0.7643, allocations: 8 kB / 1.023 GB, free: 14.4 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.444e-06/0.7644, allocations: 11.88 kB / 1.023 GB, free: 14.39 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.447e-05/0.7644, allocations: 3.906 kB / 1.023 GB, free: 14.38 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.898e-06/0.7644, allocations: 4 kB / 1.023 GB, free: 14.38 MB / 0.7794 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (5): * Single equations (assignments): 5 * 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.25e-05/0.7645, allocations: 117.8 kB / 1.023 GB, free: 14.25 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.475e-05/0.7645, allocations: 0 / 1.023 GB, free: 14.25 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002045/0.7647, allocations: 100.7 kB / 1.023 GB, free: 14.15 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.889e-06/0.7647, allocations: 4 kB / 1.023 GB, free: 14.14 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.989e-06/0.7648, allocations: 7.938 kB / 1.023 GB, free: 14.14 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.252e-06/0.7648, allocations: 4 kB / 1.023 GB, free: 14.13 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001394/0.7649, allocations: 165.6 kB / 1.024 GB, free: 13.92 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/0.7649, allocations: 4.156 kB / 1.024 GB, free: 13.92 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.516e-05/0.765, allocations: 19.92 kB / 1.024 GB, free: 13.9 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.23e-06/0.765, allocations: 4 kB / 1.024 GB, free: 13.89 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.027e-06/0.765, allocations: 4.125 kB / 1.024 GB, free: 13.89 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.979e-06/0.765, allocations: 11.94 kB / 1.024 GB, free: 13.88 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.765, allocations: 0 / 1.024 GB, free: 13.88 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000165/0.7652, allocations: 167.3 kB / 1.024 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.309e-05/0.7653, allocations: 89.03 kB / 1.024 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.611e-05/0.7653, allocations: 8 kB / 1.024 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.943e-05/0.7653, allocations: 0 / 1.024 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.974e-05/0.7654, allocations: 8 kB / 1.024 GB, free: 13.54 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.908e-06/0.7654, allocations: 7.984 kB / 1.024 GB, free: 13.53 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 2.431e-05/0.7654, allocations: 83.22 kB / 1.024 GB, free: 13.45 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1e-07/0.7654, allocations: 0 / 1.024 GB, free: 13.45 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002096/0.7656, allocations: 8 kB / 1.024 GB, free: 13.44 MB / 0.7794 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (9): * Single equations (assignments): 9 * 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.0001716/0.7658, allocations: 99.25 kB / 1.024 GB, free: 13.34 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0001165/0.7659, allocations: 35.92 kB / 1.024 GB, free: 13.3 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.145e-06/0.7659, allocations: 0 / 1.024 GB, free: 13.3 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 3.577e-05/0.766, allocations: 27.92 kB / 1.024 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001061/0.7661, allocations: 13.84 kB / 1.024 GB, free: 13.26 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002988/0.7664, allocations: 154.7 kB / 1.024 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002585/0.7666, allocations: 0.6848 MB / 1.025 GB, free: 12.36 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 4.965e-05/0.7667, allocations: 4 kB / 1.025 GB, free: 12.36 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.69e-05/0.7667, allocations: 15.44 kB / 1.025 GB, free: 12.34 MB / 0.7794 GB Notification: Performance of SimCode: time 2.6e-07/0.7667, allocations: 0 / 1.025 GB, free: 12.34 MB / 0.7794 GB Notification: Performance of Templates: time 0.002943/0.7697, allocations: 0.5272 MB / 1.025 GB, free: 11.82 MB / 0.7794 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Round.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Round.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Round.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Round.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Round.sim & ./Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Round -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Round.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Round_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_Round.csv","../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Round.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches