Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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_maint.7.0.x_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_maint.7.0.x_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.479/1.479, allocations: 249.3 MB / 261.9 MB, free: 5.906 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001031/0.001031, allocations: 186.6 kB / 321.3 MB, free: 14.64 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.378/1.378, allocations: 205.2 MB / 0.572 GB, free: 10.68 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008437/0.0008437, allocations: 90.52 kB / 0.6764 GB, free: 15.65 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 3.495e-05/3.501e-05, allocations: 4 kB / 0.788 GB, free: 97.09 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1883/0.1883, allocations: 106.3 MB / 0.8918 GB, free: 6.66 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6846/0.873, allocations: 131.4 MB / 1.02 GB, free: 3.324 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002039/0.8733, allocations: 70.19 kB / 1.02 GB, free: 3.289 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.001906/0.8752, allocations: 0.7283 MB / 1.021 GB, free: 2.625 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.133e-06/0.8752, allocations: 0 / 1.021 GB, free: 2.625 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 5.28e-06/0.8752, allocations: 0 / 1.021 GB, free: 2.625 MB / 0.6355 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.0003113/0.8756, allocations: 337.9 kB / 1.021 GB, free: 2.254 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.138e-05/0.8756, allocations: 12.02 kB / 1.021 GB, free: 2.242 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.971e-05/0.8756, allocations: 4 kB / 1.021 GB, free: 2.238 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001049/0.8758, allocations: 167 kB / 1.021 GB, free: 2.035 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.996e-05/0.8758, allocations: 0 / 1.021 GB, free: 2.035 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.028e-05/0.8758, allocations: 6.734 kB / 1.021 GB, free: 2.031 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.445e-05/0.8759, allocations: 36.94 kB / 1.021 GB, free: 1.992 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.761e-06/0.8759, allocations: 0 / 1.021 GB, free: 1.992 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.029e-05/0.8759, allocations: 3.984 kB / 1.021 GB, free: 1.988 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.533e-06/0.8759, allocations: 7.938 kB / 1.021 GB, free: 1.984 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.912e-05/0.876, allocations: 11.38 kB / 1.021 GB, free: 1.977 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003099/0.8763, allocations: 263.1 kB / 1.022 GB, free: 1.68 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 5.548e-05/0.8764, allocations: 28.95 kB / 1.022 GB, free: 1.648 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.712e-05/0.8764, allocations: 11.61 kB / 1.022 GB, free: 1.637 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 1.597e-05/0.8764, allocations: 0 / 1.022 GB, free: 1.637 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.569e-05/0.8765, allocations: 34.55 kB / 1.022 GB, free: 1.594 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=2): time 9.41e-07/0.8765, allocations: 0 / 1.022 GB, free: 1.594 MB / 0.6355 GB Notification: Performance of matching and sorting (n=2): time 0.0001487/0.8766, allocations: 53.48 kB / 1.022 GB, free: 1.539 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.572e-05/0.8767, allocations: 51.41 kB / 1.022 GB, free: 1.477 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.127e-05/0.8767, allocations: 96.23 kB / 1.022 GB, free: 1.379 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.51e-05/0.8768, allocations: 25.7 kB / 1.022 GB, free: 1.348 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 4.486e-05/0.8768, allocations: 80.14 kB / 1.022 GB, free: 1.266 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 1.622e-05/0.8768, allocations: 7.438 kB / 1.022 GB, free: 1.262 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.537e-06/0.8768, allocations: 3.938 kB / 1.022 GB, free: 1.258 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 9.756e-05/0.877, allocations: 314.8 kB / 1.022 GB, free: 0.9414 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.91e-05/0.877, allocations: 7.875 kB / 1.022 GB, free: 0.9375 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.505e-05/0.877, allocations: 8.031 kB / 1.022 GB, free: 0.9297 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.436e-05/0.877, allocations: 15.8 kB / 1.022 GB, free: 0.918 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.252e-06/0.877, allocations: 0 / 1.022 GB, free: 0.918 MB / 0.6355 GB Notification: Performance of matching and sorting (n=2) (initialization): time 7.326e-05/0.8771, allocations: 48.42 kB / 1.022 GB, free: 0.8672 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.248e-05/0.8771, allocations: 4 kB / 1.022 GB, free: 0.8633 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.837e-06/0.8771, allocations: 0 / 1.022 GB, free: 0.8633 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.047e-06/0.8772, allocations: 0 / 1.022 GB, free: 0.8633 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001053/0.8773, allocations: 12.08 kB / 1.022 GB, free: 0.8516 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.52e-06/0.8773, allocations: 4 kB / 1.022 GB, free: 0.8477 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.645e-05/0.8773, allocations: 11.98 kB / 1.022 GB, free: 0.8359 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.771e-06/0.8774, allocations: 0 / 1.022 GB, free: 0.8359 MB / 0.6355 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 6.268e-05/0.8774, allocations: 114.2 kB / 1.023 GB, free: 0.7227 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.154e-05/0.8775, allocations: 0 / 1.023 GB, free: 0.7227 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.053e-05/0.8775, allocations: 7.078 kB / 1.023 GB, free: 0.7148 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.353e-06/0.8775, allocations: 0 / 1.023 GB, free: 0.7148 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.206e-06/0.8775, allocations: 4 kB / 1.023 GB, free: 0.7109 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.404e-06/0.8775, allocations: 0 / 1.023 GB, free: 0.7109 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000143/0.8777, allocations: 168.9 kB / 1.023 GB, free: 0.5039 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.81e-07/0.8777, allocations: 0 / 1.023 GB, free: 0.5039 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.063e-05/0.8777, allocations: 11.98 kB / 1.023 GB, free: 0.4922 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.044e-06/0.8777, allocations: 0 / 1.023 GB, free: 0.4922 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.053e-06/0.8778, allocations: 0 / 1.023 GB, free: 0.4922 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.002e-06/0.8778, allocations: 0 / 1.023 GB, free: 0.4922 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.337e-06/0.8778, allocations: 0 / 1.023 GB, free: 0.4922 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001228/0.8779, allocations: 153.7 kB / 1.023 GB, free: 340 kB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 3.125e-05/0.8779, allocations: 81.02 kB / 1.023 GB, free: 240 kB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.272e-05/0.878, allocations: 3.125 kB / 1.023 GB, free: 240 kB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.831e-05/0.8781, allocations: 11.98 kB / 1.023 GB, free: 228 kB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.481e-05/0.8781, allocations: 3.984 kB / 1.023 GB, free: 224 kB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.957e-06/0.8781, allocations: 0 / 1.023 GB, free: 224 kB / 0.6355 GB Notification: Performance of sorting global known variables: time 3.082e-05/0.8782, allocations: 83.06 kB / 1.023 GB, free: 144 kB / 0.6355 GB Notification: Performance of sort global known variables: time 1.6e-07/0.8782, allocations: 4 kB / 1.023 GB, free: 140 kB / 0.6355 GB Notification: Performance of remove unused functions: time 0.000196/0.8784, allocations: 8 kB / 1.023 GB, free: 132 kB / 0.6355 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 0.0001096/0.8785, allocations: 105 kB / 1.023 GB, free: 20 kB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 7.736e-05/0.8786, allocations: 23.8 kB / 1.023 GB, free: 0 / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 1.373e-06/0.8786, allocations: 0 / 1.023 GB, free: 0 / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 4.315e-05/0.8786, allocations: 11.36 kB / 1.023 GB, free: 15.99 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001569/0.8788, allocations: 8.016 kB / 1.023 GB, free: 15.98 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001969/0.879, allocations: 68.06 kB / 1.023 GB, free: 15.9 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001988/0.8792, allocations: 0.677 MB / 1.024 GB, free: 15.2 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 3.264e-05/0.8792, allocations: 4 kB / 1.024 GB, free: 15.2 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.439e-05/0.8793, allocations: 7.438 kB / 1.024 GB, free: 15.19 MB / 0.6511 GB Notification: Performance of SimCode: time 4.31e-07/0.8793, allocations: 0 / 1.024 GB, free: 15.19 MB / 0.6511 GB Notification: Performance of Templates: time 0.002101/0.8814, allocations: 0.5087 MB / 1.024 GB, free: 14.69 MB / 0.6511 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Controls_OBC_CDL_Conversions_Validation_RealToInteger.csv","../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches