Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.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.Controls.OBC.CDL.Conversions.Validation.RealToInteger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|reaToInt.u|reaToInt.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger") translateModel(Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|reaToInt.u|reaToInt.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger") [: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 9.1.1-maint.9.1.x/package.mo): time 1.777/1.777, allocations: 387.2 MB / 394.5 MB, free: 13.63 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.001097/0.001097, allocations: 177.3 kB / 487 MB, free: 5.363 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.116/1.116, allocations: 221.3 MB / 0.7819 GB, free: 1.324 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008442/0.000844, allocations: 101 kB / 0.9213 GB, free: 2.574 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 5.901e-06/5.931e-06, allocations: 4 kB / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1841/0.1841, allocations: 142.3 MB / 1.205 GB, free: 26.2 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5005/0.6847, allocations: 148 MB / 1.35 GB, free: 15.95 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001622/0.6849, allocations: 66.41 kB / 1.35 GB, free: 15.95 MB / 0.8073 GB Notification: Performance of FrontEnd: time 0.001566/0.6865, allocations: 422.7 kB / 1.35 GB, free: 15.93 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 6.351e-06/0.6865, allocations: 1.375 kB / 1.35 GB, free: 15.93 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0002411/0.6867, allocations: 337.5 kB / 1.351 GB, free: 15.58 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.397e-05/0.6868, allocations: 10 kB / 1.351 GB, free: 15.58 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.403e-05/0.6868, allocations: 5.219 kB / 1.351 GB, free: 15.58 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.92e-05/0.6869, allocations: 161.8 kB / 1.351 GB, free: 15.38 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.6e-05/0.6869, allocations: 5.281 kB / 1.351 GB, free: 15.38 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.082e-05/0.6869, allocations: 1.25 kB / 1.351 GB, free: 15.38 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 5.387e-05/0.687, allocations: 18.88 kB / 1.351 GB, free: 15.38 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 5.885e-05/0.687, allocations: 39.05 kB / 1.351 GB, free: 15.34 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.731e-06/0.6871, allocations: 0 / 1.351 GB, free: 15.34 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.456e-06/0.6871, allocations: 3.906 kB / 1.351 GB, free: 15.34 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.466e-06/0.6871, allocations: 0 / 1.351 GB, free: 15.34 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002226/0.6873, allocations: 228.2 kB / 1.351 GB, free: 15.11 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 4.727e-05/0.6874, allocations: 31.83 kB / 1.351 GB, free: 15.08 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.16e-05/0.6874, allocations: 12.7 kB / 1.351 GB, free: 15.07 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 1.373e-05/0.6874, allocations: 1.641 kB / 1.351 GB, free: 15.07 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.331e-05/0.6874, allocations: 41.06 kB / 1.351 GB, free: 15.03 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=2): time 9.92e-07/0.6874, allocations: 0 / 1.351 GB, free: 15.03 MB / 0.8073 GB Notification: Performance of matching and sorting (n=2): time 0.000126/0.6876, allocations: 40.08 kB / 1.351 GB, free: 15 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.234e-05/0.6876, allocations: 55.44 kB / 1.351 GB, free: 14.93 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.527e-05/0.6876, allocations: 95.22 kB / 1.351 GB, free: 14.84 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 7.174e-06/0.6876, allocations: 25.7 kB / 1.351 GB, free: 14.81 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 1.338e-05/0.6877, allocations: 81.55 kB / 1.351 GB, free: 14.73 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 1.344e-05/0.6877, allocations: 8.562 kB / 1.351 GB, free: 14.72 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.176e-06/0.6877, allocations: 0 / 1.351 GB, free: 14.72 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 3.484e-05/0.6877, allocations: 313.8 kB / 1.352 GB, free: 14.41 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.473e-05/0.6877, allocations: 9.438 kB / 1.352 GB, free: 14.41 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.297e-05/0.6878, allocations: 4.031 kB / 1.352 GB, free: 14.41 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.699e-05/0.6878, allocations: 13.33 kB / 1.352 GB, free: 14.4 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.132e-06/0.6878, allocations: 1.406 kB / 1.352 GB, free: 14.4 MB / 0.8073 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.235e-05/0.6878, allocations: 49.92 kB / 1.352 GB, free: 14.36 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 8.847e-06/0.6879, allocations: 5.094 kB / 1.352 GB, free: 14.36 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.647e-06/0.6879, allocations: 1.094 kB / 1.352 GB, free: 14.36 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.308e-06/0.6879, allocations: 0 / 1.352 GB, free: 14.36 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001006/0.688, allocations: 12.83 kB / 1.352 GB, free: 14.36 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.236e-06/0.688, allocations: 4.031 kB / 1.352 GB, free: 14.36 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.934e-05/0.6881, allocations: 9.516 kB / 1.352 GB, free: 14.36 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.841e-06/0.6881, allocations: 1.312 kB / 1.352 GB, free: 14.36 MB / 0.8073 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (reaToInt.y) * Number of discrete 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 3.621e-05/0.6881, allocations: 109.8 kB / 1.352 GB, free: 14.25 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.47e-05/0.6881, allocations: 9.203 kB / 1.352 GB, free: 14.24 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.75e-05/0.6882, allocations: 5.562 kB / 1.352 GB, free: 14.24 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.122e-06/0.6882, allocations: 4 kB / 1.352 GB, free: 14.24 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.936e-06/0.6882, allocations: 0 / 1.352 GB, free: 14.24 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.325e-06/0.6882, allocations: 2.922 kB / 1.352 GB, free: 14.24 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.46e-05/0.6883, allocations: 134.7 kB / 1.352 GB, free: 14.08 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.51e-07/0.6883, allocations: 0 / 1.352 GB, free: 14.08 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.405e-05/0.6884, allocations: 18.67 kB / 1.352 GB, free: 14.08 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.223e-06/0.6884, allocations: 0 / 1.352 GB, free: 14.08 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.843e-06/0.6884, allocations: 5.094 kB / 1.352 GB, free: 14.08 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.6884, allocations: 4.703 kB / 1.352 GB, free: 14.07 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.6884, allocations: 0 / 1.352 GB, free: 14.07 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 7.433e-05/0.6885, allocations: 143.8 kB / 1.352 GB, free: 13.94 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 1.304e-05/0.6885, allocations: 79.75 kB / 1.352 GB, free: 13.84 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.282e-05/0.6885, allocations: 1.281 kB / 1.352 GB, free: 13.84 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.166e-05/0.6886, allocations: 12.69 kB / 1.352 GB, free: 13.84 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.036e-05/0.6887, allocations: 8.719 kB / 1.352 GB, free: 13.84 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.988e-06/0.6887, allocations: 1.312 kB / 1.352 GB, free: 13.84 MB / 0.8073 GB Notification: Performance of sort global known variables: time 1.64e-05/0.6887, allocations: 79.36 kB / 1.352 GB, free: 13.77 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0001934/0.6889, allocations: 5.219 kB / 1.352 GB, free: 13.77 MB / 0.8073 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (reaToInt.y) * Number of discrete 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 8.521e-05/0.689, allocations: 107.1 kB / 1.353 GB, free: 13.67 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 6.138e-05/0.689, allocations: 17.62 kB / 1.353 GB, free: 13.67 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 9.32e-07/0.689, allocations: 8 kB / 1.353 GB, free: 13.66 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 2.424e-05/0.6891, allocations: 11.53 kB / 1.353 GB, free: 13.66 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001474/0.6892, allocations: 5.75 kB / 1.353 GB, free: 13.66 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001714/0.6894, allocations: 63.75 kB / 1.353 GB, free: 13.59 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000105/0.6895, allocations: 0.6886 MB / 1.353 GB, free: 12.89 MB / 0.8073 GB Notification: Performance of SimCode: time 6.42e-07/0.6895, allocations: 0 / 1.353 GB, free: 12.89 MB / 0.8073 GB Notification: Performance of Templates: time 0.001863/0.6914, allocations: 0.5399 MB / 1.354 GB, free: 12.83 MB / 0.8073 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Conversions_Validation_RealToInteger.csv","../files/Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches