Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/Buildings 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_latest_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_latest_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.01091/0.01091, allocations: 99.16 kB / 15.73 MB, free: 6.004 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001937/0.001937, allocations: 191.8 kB / 16.67 MB, free: 5.93 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.529/1.529, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.718/2.718, allocations: 472.7 MB / 0.7453 GB, free: 488 kB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001509/0.001509, allocations: 63.89 kB / 1.069 GB, free: 9.555 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.062/1.063, allocations: 159.9 MB / 1.226 GB, free: 13.48 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger): time 0.00199/1.065, allocations: 0.6055 MB / 1.226 GB, free: 12.88 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.0009919/1.066, allocations: 0.8234 MB / 1.227 GB, free: 12.04 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.065e-05/1.067, allocations: 0 / 1.227 GB, free: 12.04 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 3.276e-05/1.067, allocations: 3.938 kB / 1.227 GB, free: 12.04 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 6.53e-05/1.067, allocations: 0 / 1.227 GB, free: 12.04 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.000166/1.067, allocations: 19.92 kB / 1.227 GB, free: 12.02 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 9.105e-05/1.067, allocations: 27.92 kB / 1.227 GB, free: 11.99 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001261/1.067, allocations: 4 kB / 1.227 GB, free: 11.98 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 7.43e-05/1.067, allocations: 23.91 kB / 1.227 GB, free: 11.96 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 6.204e-05/1.067, allocations: 11.98 kB / 1.227 GB, free: 11.95 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 2.003e-05/1.067, allocations: 0 / 1.227 GB, free: 11.95 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 1.496e-05/1.067, allocations: 4 kB / 1.227 GB, free: 11.95 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 2.135e-05/1.067, allocations: 3.938 kB / 1.227 GB, free: 11.94 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 3.252e-05/1.067, allocations: 8 kB / 1.227 GB, free: 11.93 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.000109/1.067, allocations: 27.88 kB / 1.227 GB, free: 11.91 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 6.151e-06/1.067, allocations: 0 / 1.227 GB, free: 11.91 MB / 0.9512 GB Notification: Performance of FrontEnd: time 2.034e-06/1.067, allocations: 0 / 1.227 GB, free: 11.91 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 6.312e-06/1.067, allocations: 0 / 1.227 GB, free: 11.91 MB / 0.9512 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.0005464/1.068, allocations: 344 kB / 1.227 GB, free: 11.52 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.412e-05/1.068, allocations: 8.031 kB / 1.227 GB, free: 11.52 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.756e-05/1.068, allocations: 4.891 kB / 1.227 GB, free: 11.51 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001346/1.068, allocations: 172.3 kB / 1.228 GB, free: 11.3 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.789e-05/1.068, allocations: 4.375 kB / 1.228 GB, free: 11.3 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.12e-05/1.068, allocations: 384 / 1.228 GB, free: 11.3 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001905/1.068, allocations: 58.16 kB / 1.228 GB, free: 11.24 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.093e-06/1.069, allocations: 192 / 1.228 GB, free: 11.24 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.109e-05/1.069, allocations: 7.938 kB / 1.228 GB, free: 11.23 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.111e-06/1.069, allocations: 4 kB / 1.228 GB, free: 11.23 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001713/1.069, allocations: 39.89 kB / 1.228 GB, free: 11.19 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003566/1.069, allocations: 241 kB / 1.228 GB, free: 10.9 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001322/1.069, allocations: 46.48 kB / 1.228 GB, free: 10.85 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.691e-05/1.069, allocations: 28.84 kB / 1.228 GB, free: 10.82 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 1.838e-05/1.069, allocations: 0 / 1.228 GB, free: 10.82 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.914e-05/1.069, allocations: 42.55 kB / 1.228 GB, free: 10.77 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=2): time 9.11e-07/1.069, allocations: 0 / 1.228 GB, free: 10.77 MB / 0.9512 GB Notification: Performance of matching and sorting (n=2): time 0.0003645/1.07, allocations: 81.64 kB / 1.228 GB, free: 10.68 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.641e-05/1.07, allocations: 59.53 kB / 1.228 GB, free: 10.61 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.389e-05/1.07, allocations: 97.84 kB / 1.228 GB, free: 10.5 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 1.447e-05/1.07, allocations: 25.7 kB / 1.228 GB, free: 10.47 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 5.079e-05/1.07, allocations: 92.03 kB / 1.228 GB, free: 10.38 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 1.684e-05/1.07, allocations: 0 / 1.228 GB, free: 10.38 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.139e-05/1.07, allocations: 13.72 kB / 1.228 GB, free: 10.36 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001125/1.07, allocations: 314.8 kB / 1.229 GB, free: 10.04 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.61e-05/1.07, allocations: 27.91 kB / 1.229 GB, free: 10.02 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.225e-05/1.07, allocations: 15.98 kB / 1.229 GB, free: 10 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001709/1.07, allocations: 40.81 kB / 1.229 GB, free: 9.957 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/1.07, allocations: 0 / 1.229 GB, free: 9.957 MB / 0.9512 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002034/1.071, allocations: 81.61 kB / 1.229 GB, free: 9.871 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.759e-05/1.071, allocations: 8 kB / 1.229 GB, free: 9.863 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.391e-06/1.071, allocations: 0 / 1.229 GB, free: 9.863 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.463e-05/1.071, allocations: 0 / 1.229 GB, free: 9.863 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001035/1.071, allocations: 7.984 kB / 1.229 GB, free: 9.855 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.734e-06/1.071, allocations: 4 kB / 1.229 GB, free: 9.852 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.048e-05/1.071, allocations: 7.938 kB / 1.229 GB, free: 9.844 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.641e-06/1.071, allocations: 0 / 1.229 GB, free: 9.844 MB / 0.9512 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 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.488e-05/1.071, allocations: 114.3 kB / 1.229 GB, free: 9.723 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.317e-05/1.071, allocations: 8 kB / 1.229 GB, free: 9.715 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.043e-05/1.071, allocations: 7.125 kB / 1.229 GB, free: 9.707 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.743e-06/1.071, allocations: 0 / 1.229 GB, free: 9.707 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.728e-06/1.071, allocations: 0 / 1.229 GB, free: 9.707 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.935e-06/1.071, allocations: 0 / 1.229 GB, free: 9.707 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001576/1.071, allocations: 161.6 kB / 1.229 GB, free: 9.5 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-06/1.071, allocations: 0 / 1.229 GB, free: 9.5 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.544e-05/1.071, allocations: 11.94 kB / 1.229 GB, free: 9.488 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.643e-06/1.071, allocations: 3.938 kB / 1.229 GB, free: 9.484 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.049e-05/1.071, allocations: 3.984 kB / 1.229 GB, free: 9.48 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/1.071, allocations: 4 kB / 1.229 GB, free: 9.477 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/1.071, allocations: 0 / 1.229 GB, free: 9.477 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002355/1.072, allocations: 167.5 kB / 1.229 GB, free: 9.297 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 4.472e-05/1.072, allocations: 81.25 kB / 1.229 GB, free: 9.199 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.255e-05/1.072, allocations: 3.938 kB / 1.229 GB, free: 9.195 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.16e-05/1.072, allocations: 12.02 kB / 1.23 GB, free: 9.184 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.621e-05/1.072, allocations: 11.98 kB / 1.23 GB, free: 9.172 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.497e-06/1.072, allocations: 0 / 1.23 GB, free: 9.172 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 3.84e-05/1.072, allocations: 83.27 kB / 1.23 GB, free: 9.09 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.4e-07/1.072, allocations: 0 / 1.23 GB, free: 9.09 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0002112/1.072, allocations: 4 kB / 1.23 GB, free: 9.086 MB / 0.9512 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 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001149/1.072, allocations: 95.25 kB / 1.23 GB, free: 8.98 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0002255/1.072, allocations: 47.95 kB / 1.23 GB, free: 8.934 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/1.073, allocations: 0 / 1.23 GB, free: 8.934 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 9.135e-05/1.073, allocations: 19.98 kB / 1.23 GB, free: 8.914 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003102/1.073, allocations: 11.92 kB / 1.23 GB, free: 8.902 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003184/1.073, allocations: 117.3 kB / 1.23 GB, free: 8.762 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002563/1.074, allocations: 0.673 MB / 1.231 GB, free: 8.062 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 3.221e-05/1.074, allocations: 7.984 kB / 1.231 GB, free: 8.055 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.358e-05/1.074, allocations: 11.44 kB / 1.231 GB, free: 8.043 MB / 0.9512 GB Notification: Performance of SimCode: time 2.2e-07/1.074, allocations: 0 / 1.231 GB, free: 8.043 MB / 0.9512 GB Notification: Performance of Templates: time 0.002764/1.076, allocations: 0.6001 MB / 1.231 GB, free: 7.449 MB / 0.9512 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Conversions_Validation_RealToInteger.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches