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/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 1.999/1.999, allocations: 390.4 MB / 397.7 MB, free: 11.26 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.001084/0.001084, allocations: 179.6 kB / 490.8 MB, free: 1.961 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.297/1.297, allocations: 221.3 MB / 0.7863 GB, free: 13.82 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.0008934/0.0008932, allocations: 84.73 kB / 0.9264 GB, free: 14.36 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 7.784e-06/7.814e-06, allocations: 4 kB / 1.072 GB, free: 164.7 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2217/0.2217, allocations: 143 MB / 1.212 GB, free: 21.94 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5696/0.7914, allocations: 149 MB / 1.357 GB, free: 3.992 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001843/0.7916, allocations: 71.58 kB / 1.357 GB, free: 3.949 MB / 0.8073 GB Notification: Performance of FrontEnd: time 0.001296/0.7929, allocations: 321.4 kB / 1.357 GB, free: 3.684 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 3.888e-06/0.7929, allocations: 0.7188 kB / 1.357 GB, free: 3.684 MB / 0.8073 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.0002165/0.7932, allocations: 315.8 kB / 1.358 GB, free: 3.332 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.215e-05/0.7932, allocations: 12.02 kB / 1.358 GB, free: 3.32 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.509e-05/0.7932, allocations: 0 / 1.358 GB, free: 3.32 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.56e-05/0.7933, allocations: 167.6 kB / 1.358 GB, free: 3.117 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.198e-05/0.7933, allocations: 4 kB / 1.358 GB, free: 3.113 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.959e-06/0.7934, allocations: 0.9688 kB / 1.358 GB, free: 3.113 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 4.582e-05/0.7934, allocations: 4 kB / 1.358 GB, free: 3.109 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.559e-05/0.7935, allocations: 80.84 kB / 1.358 GB, free: 3.016 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.873e-06/0.7935, allocations: 0 / 1.358 GB, free: 3.016 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.955e-06/0.7935, allocations: 0 / 1.358 GB, free: 3.016 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.121e-06/0.7935, allocations: 0 / 1.358 GB, free: 3.016 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001298/0.7937, allocations: 162 kB / 1.358 GB, free: 2.812 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 6.861e-05/0.7937, allocations: 95.78 kB / 1.358 GB, free: 2.684 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.777e-05/0.7938, allocations: 43.66 kB / 1.358 GB, free: 2.629 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001428/0.7939, allocations: 81.11 kB / 1.358 GB, free: 2.531 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.103e-05/0.794, allocations: 34.56 kB / 1.358 GB, free: 2.488 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=5): time 9.52e-07/0.794, allocations: 0 / 1.358 GB, free: 2.488 MB / 0.8073 GB Notification: Performance of matching and sorting (n=5): time 0.0003834/0.7944, allocations: 101.1 kB / 1.359 GB, free: 2.387 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.666e-05/0.7944, allocations: 158.2 kB / 1.359 GB, free: 2.195 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.76e-05/0.7944, allocations: 85 kB / 1.359 GB, free: 2.105 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 1.113e-05/0.7945, allocations: 29.2 kB / 1.359 GB, free: 2.074 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 1.897e-05/0.7945, allocations: 80.14 kB / 1.359 GB, free: 1.992 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 2.624e-05/0.7945, allocations: 15.75 kB / 1.359 GB, free: 1.977 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.287e-06/0.7945, allocations: 0 / 1.359 GB, free: 1.977 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 0.0001076/0.7946, allocations: 326.8 kB / 1.359 GB, free: 1.652 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.232e-05/0.7947, allocations: 4 kB / 1.359 GB, free: 1.648 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.303e-05/0.7947, allocations: 28.3 kB / 1.359 GB, free: 1.605 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002284/0.7949, allocations: 59.2 kB / 1.359 GB, free: 1.551 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.7949, allocations: 0 / 1.359 GB, free: 1.551 MB / 0.8073 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0002843/0.7952, allocations: 92.28 kB / 1.359 GB, free: 1.457 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.053e-05/0.7952, allocations: 8 kB / 1.359 GB, free: 1.449 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.958e-06/0.7952, allocations: 0 / 1.359 GB, free: 1.449 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.988e-06/0.7953, allocations: 1.25 kB / 1.359 GB, free: 1.449 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.255e-05/0.7953, allocations: 11.98 kB / 1.359 GB, free: 1.438 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.418e-06/0.7953, allocations: 8.156 kB / 1.359 GB, free: 1.43 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.684e-05/0.7954, allocations: 3.906 kB / 1.359 GB, free: 1.426 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.107e-06/0.7954, allocations: 4 kB / 1.359 GB, free: 1.422 MB / 0.8073 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.027e-05/0.7954, allocations: 104.9 kB / 1.359 GB, free: 1.312 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.431e-05/0.7955, allocations: 4 kB / 1.359 GB, free: 1.309 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003763/0.7958, allocations: 138 kB / 1.36 GB, free: 1.184 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.59e-06/0.7959, allocations: 7.984 kB / 1.36 GB, free: 1.176 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.118e-06/0.7959, allocations: 0 / 1.36 GB, free: 1.176 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.478e-06/0.7959, allocations: 4 kB / 1.36 GB, free: 1.172 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.414e-05/0.796, allocations: 142.4 kB / 1.36 GB, free: 1 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.796, allocations: 8.156 kB / 1.36 GB, free: 0.9922 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.538e-05/0.796, allocations: 15.94 kB / 1.36 GB, free: 0.9766 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.427e-06/0.796, allocations: 0 / 1.36 GB, free: 0.9766 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.035e-06/0.7961, allocations: 7.938 kB / 1.36 GB, free: 0.9688 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/0.7961, allocations: 0 / 1.36 GB, free: 0.9688 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.509e-06/0.7961, allocations: 8.5 kB / 1.36 GB, free: 0.9609 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003164/0.7964, allocations: 197.3 kB / 1.36 GB, free: 0.7266 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 3.018e-05/0.7964, allocations: 92.5 kB / 1.36 GB, free: 0.6211 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.203e-05/0.7965, allocations: 3.938 kB / 1.36 GB, free: 0.6172 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.736e-05/0.7965, allocations: 4.875 kB / 1.36 GB, free: 0.6133 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.36e-05/0.7965, allocations: 4 kB / 1.36 GB, free: 0.6094 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.611e-06/0.7965, allocations: 4 kB / 1.36 GB, free: 0.6055 MB / 0.8073 GB Notification: Performance of sort global known variables: time 2.219e-05/0.7965, allocations: 75.28 kB / 1.36 GB, free: 0.5312 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0001904/0.7967, allocations: 11.98 kB / 1.36 GB, free: 0.5195 MB / 0.8073 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.0001261/0.7969, allocations: 111.1 kB / 1.36 GB, free: 412 kB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 6.977e-05/0.7969, allocations: 31.69 kB / 1.36 GB, free: 384 kB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 1.343e-06/0.7969, allocations: 0 / 1.36 GB, free: 384 kB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 2.701e-05/0.797, allocations: 27.42 kB / 1.36 GB, free: 360 kB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.995e-05/0.7971, allocations: 0 / 1.36 GB, free: 360 kB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001809/0.7973, allocations: 98.09 kB / 1.36 GB, free: 232 kB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002061/0.7975, allocations: 0.7034 MB / 1.361 GB, free: 15.5 MB / 0.823 GB Notification: Performance of SimCode: time 2.5e-07/0.7975, allocations: 0 / 1.361 GB, free: 15.5 MB / 0.823 GB Notification: Performance of Templates: time 0.001955/0.7994, allocations: 0.5553 MB / 1.362 GB, free: 14.95 MB / 0.823 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