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.506/1.506, allocations: 249.5 MB / 257 MB, free: 6.828 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.001071/0.001071, allocations: 184.8 kB / 316.3 MB, free: 3.238 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.641/1.641, allocations: 205.3 MB / 0.5671 GB, free: 15.91 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.000846/0.0008461, allocations: 96.59 kB / 0.6714 GB, free: 5.023 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.099e-05/2.1e-05, allocations: 4 kB / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2366/0.2367, allocations: 106.3 MB / 0.8852 GB, free: 12.28 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7919/1.029, allocations: 131.6 MB / 1.014 GB, free: 6.195 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002716/1.029, allocations: 72.33 kB / 1.014 GB, free: 6.156 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.002109/1.031, allocations: 0.7208 MB / 1.015 GB, free: 5.508 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.804e-06/1.031, allocations: 3.938 kB / 1.015 GB, free: 5.504 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 6.803e-06/1.031, allocations: 4 kB / 1.015 GB, free: 5.5 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.0004059/1.032, allocations: 338.4 kB / 1.015 GB, free: 5.125 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.067e-05/1.032, allocations: 12.03 kB / 1.015 GB, free: 5.113 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.727e-05/1.032, allocations: 0 / 1.015 GB, free: 5.113 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001707/1.032, allocations: 170.8 kB / 1.015 GB, free: 4.91 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.153e-05/1.032, allocations: 2.625 kB / 1.015 GB, free: 4.91 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.256e-05/1.032, allocations: 4.75 kB / 1.015 GB, free: 4.906 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.406e-05/1.032, allocations: 11.56 kB / 1.015 GB, free: 4.898 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.784e-05/1.032, allocations: 40.88 kB / 1.015 GB, free: 4.855 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.378e-06/1.032, allocations: 0 / 1.015 GB, free: 4.855 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.287e-05/1.032, allocations: 3.984 kB / 1.015 GB, free: 4.852 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.61e-06/1.032, allocations: 3.75 kB / 1.015 GB, free: 4.852 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003531/1.032, allocations: 232.7 kB / 1.015 GB, free: 4.594 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 6.445e-05/1.033, allocations: 29.45 kB / 1.015 GB, free: 4.559 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.807e-05/1.033, allocations: 16.05 kB / 1.015 GB, free: 4.543 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 1.807e-05/1.033, allocations: 0 / 1.015 GB, free: 4.543 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.741e-05/1.033, allocations: 30.56 kB / 1.015 GB, free: 4.504 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=2): time 1.042e-06/1.033, allocations: 0 / 1.015 GB, free: 4.504 MB / 0.6355 GB Notification: Performance of matching and sorting (n=2): time 0.0001738/1.033, allocations: 51.84 kB / 1.015 GB, free: 4.453 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.421e-05/1.033, allocations: 55.34 kB / 1.016 GB, free: 4.387 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.893e-05/1.033, allocations: 93.03 kB / 1.016 GB, free: 4.289 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.565e-05/1.033, allocations: 25.7 kB / 1.016 GB, free: 4.258 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 4.61e-05/1.033, allocations: 83.52 kB / 1.016 GB, free: 4.176 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 1.727e-05/1.033, allocations: 4 kB / 1.016 GB, free: 4.172 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.068e-06/1.033, allocations: 0 / 1.016 GB, free: 4.172 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001274/1.033, allocations: 322 kB / 1.016 GB, free: 3.852 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.684e-05/1.033, allocations: 7.938 kB / 1.016 GB, free: 3.844 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.444e-05/1.033, allocations: 7.375 kB / 1.016 GB, free: 3.84 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.846e-05/1.033, allocations: 0 / 1.016 GB, free: 3.84 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.323e-06/1.033, allocations: 4.062 kB / 1.016 GB, free: 3.836 MB / 0.6355 GB Notification: Performance of matching and sorting (n=2) (initialization): time 7.251e-05/1.033, allocations: 48.3 kB / 1.016 GB, free: 3.789 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.415e-05/1.033, allocations: 7.984 kB / 1.016 GB, free: 3.781 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.869e-06/1.033, allocations: 4 kB / 1.016 GB, free: 3.777 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.346e-05/1.033, allocations: 0 / 1.016 GB, free: 3.777 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001135/1.034, allocations: 11.98 kB / 1.016 GB, free: 3.766 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.574e-06/1.034, allocations: 0 / 1.016 GB, free: 3.766 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.921e-05/1.034, allocations: 11.97 kB / 1.016 GB, free: 3.754 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.611e-06/1.034, allocations: 4 kB / 1.016 GB, free: 3.75 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 7.263e-05/1.034, allocations: 104.9 kB / 1.016 GB, free: 3.641 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.153e-05/1.034, allocations: 0 / 1.016 GB, free: 3.641 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.947e-05/1.034, allocations: 15.69 kB / 1.016 GB, free: 3.621 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-06/1.034, allocations: 0 / 1.016 GB, free: 3.621 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/1.034, allocations: 0 / 1.016 GB, free: 3.621 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.444e-06/1.034, allocations: 0 / 1.016 GB, free: 3.621 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000137/1.034, allocations: 133.6 kB / 1.016 GB, free: 3.457 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.515e-06/1.034, allocations: 3.953 kB / 1.016 GB, free: 3.453 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.96e-05/1.034, allocations: 15.98 kB / 1.016 GB, free: 3.438 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.804e-06/1.034, allocations: 0 / 1.016 GB, free: 3.438 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.306e-06/1.034, allocations: 3.312 kB / 1.016 GB, free: 3.438 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/1.034, allocations: 4 kB / 1.016 GB, free: 3.434 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/1.034, allocations: 0 / 1.016 GB, free: 3.434 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00012/1.034, allocations: 134.8 kB / 1.017 GB, free: 3.289 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 4.107e-05/1.034, allocations: 89 kB / 1.017 GB, free: 3.184 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.506e-05/1.034, allocations: 0 / 1.017 GB, free: 3.184 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.883e-05/1.034, allocations: 11.98 kB / 1.017 GB, free: 3.172 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.925e-05/1.034, allocations: 11.3 kB / 1.017 GB, free: 3.164 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.486e-06/1.034, allocations: 3.938 kB / 1.017 GB, free: 3.16 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 4.364e-05/1.035, allocations: 82.59 kB / 1.017 GB, free: 3.082 MB / 0.6355 GB Notification: Performance of sort global known variables: time 2.735e-06/1.035, allocations: 0 / 1.017 GB, free: 3.082 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.000208/1.035, allocations: 11.94 kB / 1.017 GB, free: 3.07 MB / 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.0001596/1.035, allocations: 107.2 kB / 1.017 GB, free: 2.957 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 8.779e-05/1.035, allocations: 15.19 kB / 1.017 GB, free: 2.945 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/1.035, allocations: 0 / 1.017 GB, free: 2.945 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 2.414e-05/1.035, allocations: 7.125 kB / 1.017 GB, free: 2.941 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001958/1.035, allocations: 6.578 kB / 1.017 GB, free: 2.938 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002256/1.035, allocations: 54.94 kB / 1.017 GB, free: 2.863 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002504/1.036, allocations: 0.6885 MB / 1.018 GB, free: 2.148 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 3.317e-05/1.036, allocations: 0 / 1.018 GB, free: 2.148 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.595e-05/1.036, allocations: 15.42 kB / 1.018 GB, free: 2.133 MB / 0.6355 GB Notification: Performance of SimCode: time 2.71e-07/1.036, allocations: 0 / 1.018 GB, free: 2.133 MB / 0.6355 GB Notification: Performance of Templates: time 0.002277/1.038, allocations: 479.4 kB / 1.018 GB, free: 1.684 MB / 0.6355 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