Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Functions.Examples.Round.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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_9_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_9_Buildings.Utilities.Math.Functions.Examples.Round") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.323/2.323, allocations: 387.1 MB / 399.7 MB, free: 9.465 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00139/0.00139, allocations: 176.9 kB / 492.3 MB, free: 0.6055 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.586/1.586, allocations: 221.3 MB / 0.7871 GB, free: 12.87 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008849/0.000885, allocations: 86.64 kB / 0.9267 GB, free: 13.95 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.551e-05/3.554e-05, allocations: 6.031 kB / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3155/0.3155, allocations: 142.3 MB / 1.212 GB, free: 38.48 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9987/1.314, allocations: 148.7 MB / 1.358 GB, free: 19.02 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002059/1.315, allocations: 80.12 kB / 1.358 GB, free: 19.01 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.001961/1.317, allocations: 0.6212 MB / 1.358 GB, free: 34.68 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.903e-06/1.317, allocations: 0.6562 kB / 1.358 GB, free: 34.68 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 5.179e-06/1.317, allocations: 0 / 1.358 GB, free: 34.68 MB / 0.8386 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.0002106/1.317, allocations: 319.5 kB / 1.359 GB, free: 34.34 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.85e-05/1.317, allocations: 7.75 kB / 1.359 GB, free: 34.34 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.015e-05/1.317, allocations: 4 kB / 1.359 GB, free: 34.34 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.01e-05/1.317, allocations: 171.1 kB / 1.359 GB, free: 34.14 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.274e-05/1.317, allocations: 0 / 1.359 GB, free: 34.14 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.237e-05/1.317, allocations: 0 / 1.359 GB, free: 34.14 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001158/1.317, allocations: 80.02 kB / 1.359 GB, free: 34.06 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.126e-06/1.317, allocations: 0 / 1.359 GB, free: 34.06 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.087e-05/1.317, allocations: 7.734 kB / 1.359 GB, free: 34.06 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.34e-06/1.317, allocations: 0 / 1.359 GB, free: 34.06 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.326e-05/1.317, allocations: 12.45 kB / 1.359 GB, free: 34.05 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001405/1.317, allocations: 186.7 kB / 1.359 GB, free: 33.83 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 6.608e-05/1.317, allocations: 96.69 kB / 1.359 GB, free: 33.7 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.03e-05/1.317, allocations: 28.69 kB / 1.359 GB, free: 33.66 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001447/1.318, allocations: 83.09 kB / 1.359 GB, free: 33.57 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.084e-05/1.318, allocations: 47.72 kB / 1.359 GB, free: 33.52 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=5): time 1.292e-06/1.318, allocations: 3.938 kB / 1.359 GB, free: 33.52 MB / 0.8386 GB Notification: Performance of matching and sorting (n=5): time 0.0001505/1.318, allocations: 64.48 kB / 1.359 GB, free: 33.48 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.46e-05/1.318, allocations: 155 kB / 1.36 GB, free: 33.29 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.727e-05/1.318, allocations: 89.16 kB / 1.36 GB, free: 33.2 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.065e-05/1.318, allocations: 33.05 kB / 1.36 GB, free: 33.16 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 2.097e-05/1.318, allocations: 81.67 kB / 1.36 GB, free: 33.08 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 3.085e-05/1.318, allocations: 13.2 kB / 1.36 GB, free: 33.07 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.919e-06/1.318, allocations: 3.188 kB / 1.36 GB, free: 33.07 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 8.324e-05/1.318, allocations: 315.9 kB / 1.36 GB, free: 32.76 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.443e-05/1.318, allocations: 0.75 kB / 1.36 GB, free: 32.76 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.571e-05/1.318, allocations: 44.41 kB / 1.36 GB, free: 32.71 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.869e-05/1.318, allocations: 4.922 kB / 1.36 GB, free: 32.71 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/1.318, allocations: 3.875 kB / 1.36 GB, free: 32.71 MB / 0.8386 GB Notification: Performance of matching and sorting (n=5) (initialization): time 8.826e-05/1.318, allocations: 68.95 kB / 1.36 GB, free: 32.67 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.368e-05/1.318, allocations: 7.938 kB / 1.36 GB, free: 32.66 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.33e-06/1.318, allocations: 0.7031 kB / 1.36 GB, free: 32.66 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.176e-05/1.318, allocations: 3.812 kB / 1.36 GB, free: 32.66 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.12e-05/1.318, allocations: 9.688 kB / 1.36 GB, free: 32.66 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.867e-06/1.318, allocations: 0.75 kB / 1.36 GB, free: 32.66 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.96e-05/1.318, allocations: 5.266 kB / 1.36 GB, free: 32.66 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.327e-06/1.318, allocations: 4.641 kB / 1.36 GB, free: 32.66 MB / 0.8386 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 () * 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 5.651e-05/1.319, allocations: 104.2 kB / 1.36 GB, free: 32.56 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.401e-05/1.319, allocations: 8.453 kB / 1.36 GB, free: 32.55 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000185/1.319, allocations: 104 kB / 1.36 GB, free: 32.5 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.525e-06/1.319, allocations: 3.875 kB / 1.36 GB, free: 32.5 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.518e-06/1.319, allocations: 0 / 1.36 GB, free: 32.5 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.362e-06/1.319, allocations: 8.562 kB / 1.36 GB, free: 32.5 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.813e-05/1.319, allocations: 169.1 kB / 1.361 GB, free: 32.3 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/1.319, allocations: 0 / 1.361 GB, free: 32.3 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.429e-05/1.319, allocations: 17.45 kB / 1.361 GB, free: 32.3 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.717e-06/1.319, allocations: 3.953 kB / 1.361 GB, free: 32.3 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.065e-05/1.319, allocations: 8.344 kB / 1.361 GB, free: 32.3 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.054e-06/1.319, allocations: 4.781 kB / 1.361 GB, free: 32.3 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/1.319, allocations: 3.906 kB / 1.361 GB, free: 32.3 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001329/1.319, allocations: 169.6 kB / 1.361 GB, free: 32.12 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 2.157e-05/1.319, allocations: 85.58 kB / 1.361 GB, free: 32.02 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.544e-05/1.319, allocations: 4.25 kB / 1.361 GB, free: 32.02 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.919e-05/1.319, allocations: 12.48 kB / 1.361 GB, free: 32.02 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.627e-05/1.319, allocations: 10.45 kB / 1.361 GB, free: 32.01 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.832e-06/1.319, allocations: 8.219 kB / 1.361 GB, free: 32.01 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 2.22e-05/1.319, allocations: 75.28 kB / 1.361 GB, free: 31.94 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.11e-07/1.319, allocations: 0 / 1.361 GB, free: 31.94 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002116/1.32, allocations: 8.438 kB / 1.361 GB, free: 31.94 MB / 0.8386 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 () * 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.0001519/1.32, allocations: 109.1 kB / 1.361 GB, free: 31.84 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 9.141e-05/1.32, allocations: 39.77 kB / 1.361 GB, free: 31.83 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/1.32, allocations: 0 / 1.361 GB, free: 31.83 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 3.008e-05/1.32, allocations: 27.39 kB / 1.361 GB, free: 31.83 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.372e-05/1.32, allocations: 1.219 kB / 1.361 GB, free: 31.83 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001977/1.32, allocations: 110.9 kB / 1.361 GB, free: 31.72 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002464/1.32, allocations: 0.6814 MB / 1.362 GB, free: 31.03 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 4.32e-05/1.32, allocations: 9.891 kB / 1.362 GB, free: 31.02 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.408e-05/1.32, allocations: 11.91 kB / 1.362 GB, free: 31.02 MB / 0.8386 GB Notification: Performance of SimCode: time 2.2e-07/1.32, allocations: 7.938 kB / 1.362 GB, free: 31.01 MB / 0.8386 GB Notification: Performance of Templates: time 0.002388/1.323, allocations: 0.5193 MB / 1.362 GB, free: 30.95 MB / 0.8386 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.Round.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.Round.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Functions.Examples.Round.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Functions.Examples.Round.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.Round.sim & ./Buildings_9_Buildings.Utilities.Math.Functions.Examples.Round -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Functions.Examples.Round.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Functions.Examples.Round_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Functions_Examples_Round.csv","../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.Round.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches