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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.01089/0.01089, allocations: 100.5 kB / 15.73 MB, free: 6.477 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.002283/0.002283, allocations: 189 kB / 16.67 MB, free: 6.391 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.619/1.619, allocations: 222.9 MB / 240.4 MB, free: 4.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 3.183/3.183, allocations: 461.8 MB / 0.7348 GB, free: 14.67 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001483/0.001483, allocations: 59.91 kB / 1.054 GB, free: 7.16 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3921/0.3936, allocations: 157.4 MB / 1.208 GB, free: 9.656 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger): time 0.002411/0.3961, allocations: 0.623 MB / 1.208 GB, free: 9.031 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001388/0.3975, allocations: 0.8156 MB / 1.209 GB, free: 8.203 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.858e-05/0.3976, allocations: 3.938 kB / 1.209 GB, free: 8.199 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 3.553e-05/0.3976, allocations: 0 / 1.209 GB, free: 8.199 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 7.147e-05/0.3977, allocations: 3.938 kB / 1.209 GB, free: 8.195 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001804/0.3979, allocations: 19.98 kB / 1.209 GB, free: 8.176 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 9.268e-05/0.398, allocations: 27.92 kB / 1.209 GB, free: 8.148 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001188/0.3981, allocations: 4 kB / 1.209 GB, free: 8.145 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 9.114e-05/0.3982, allocations: 15.91 kB / 1.209 GB, free: 8.129 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 9.515e-05/0.3983, allocations: 11.98 kB / 1.209 GB, free: 8.117 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.643e-05/0.3984, allocations: 4 kB / 1.209 GB, free: 8.113 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 1.107e-05/0.3984, allocations: 4 kB / 1.209 GB, free: 8.109 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.441e-05/0.3984, allocations: 7.938 kB / 1.209 GB, free: 8.102 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 3.679e-05/0.3984, allocations: 4 kB / 1.209 GB, free: 8.098 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.00011/0.3986, allocations: 35.88 kB / 1.209 GB, free: 8.062 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 6.352e-06/0.3986, allocations: 0 / 1.209 GB, free: 8.062 MB / 0.9669 GB Notification: Performance of FrontEnd: time 2.344e-06/0.3986, allocations: 0 / 1.209 GB, free: 8.062 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 6.953e-06/0.3986, allocations: 0 / 1.209 GB, free: 8.062 MB / 0.9669 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.0005408/0.3991, allocations: 336.5 kB / 1.21 GB, free: 7.684 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.348e-05/0.3992, allocations: 12.03 kB / 1.21 GB, free: 7.672 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.086e-05/0.3992, allocations: 0.9375 kB / 1.21 GB, free: 7.672 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001259/0.3994, allocations: 172.2 kB / 1.21 GB, free: 7.465 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.504e-05/0.3994, allocations: 384 / 1.21 GB, free: 7.465 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.221e-05/0.3994, allocations: 8.375 kB / 1.21 GB, free: 7.457 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002197/0.3997, allocations: 54.22 kB / 1.21 GB, free: 7.398 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.345e-05/0.3997, allocations: 192 / 1.21 GB, free: 7.398 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.809e-05/0.3997, allocations: 3.938 kB / 1.21 GB, free: 7.395 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.231e-06/0.3997, allocations: 0 / 1.21 GB, free: 7.395 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001749/0.3999, allocations: 39.95 kB / 1.21 GB, free: 7.355 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004432/0.4004, allocations: 252.9 kB / 1.21 GB, free: 7.059 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001467/0.4005, allocations: 46.44 kB / 1.21 GB, free: 7.004 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000101/0.4006, allocations: 28.83 kB / 1.21 GB, free: 6.973 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.114e-05/0.4007, allocations: 0 / 1.21 GB, free: 6.973 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.721e-05/0.4007, allocations: 34.56 kB / 1.21 GB, free: 6.93 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=2): time 2.936e-06/0.4007, allocations: 4 kB / 1.21 GB, free: 6.926 MB / 0.9669 GB Notification: Performance of matching and sorting (n=2): time 0.0003813/0.4011, allocations: 85.58 kB / 1.21 GB, free: 6.836 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.21e-05/0.4011, allocations: 51.41 kB / 1.21 GB, free: 6.773 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.712e-05/0.4012, allocations: 101.8 kB / 1.21 GB, free: 6.664 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.617e-05/0.4013, allocations: 29.7 kB / 1.21 GB, free: 6.629 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 4.59e-05/0.4013, allocations: 80.14 kB / 1.211 GB, free: 6.547 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.036e-05/0.4013, allocations: 8.031 kB / 1.211 GB, free: 6.539 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.006e-05/0.4014, allocations: 17.72 kB / 1.211 GB, free: 6.516 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001309/0.4015, allocations: 314.8 kB / 1.211 GB, free: 6.199 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.236e-05/0.4016, allocations: 15.98 kB / 1.211 GB, free: 6.184 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.264e-05/0.4017, allocations: 23.92 kB / 1.211 GB, free: 6.16 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001558/0.4018, allocations: 44.88 kB / 1.211 GB, free: 6.113 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.4019, allocations: 0 / 1.211 GB, free: 6.113 MB / 0.9669 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001998/0.4021, allocations: 73.53 kB / 1.211 GB, free: 6.035 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 2.511e-05/0.4021, allocations: 4 kB / 1.211 GB, free: 6.031 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.209e-06/0.4021, allocations: 0 / 1.211 GB, free: 6.031 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.405e-05/0.4021, allocations: 0 / 1.211 GB, free: 6.031 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001034/0.4022, allocations: 11.98 kB / 1.211 GB, free: 6.02 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.422e-06/0.4022, allocations: 0 / 1.211 GB, free: 6.02 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.103e-05/0.4023, allocations: 8.031 kB / 1.211 GB, free: 6.012 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.186e-06/0.4023, allocations: 3.984 kB / 1.211 GB, free: 6.008 MB / 0.9669 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 8.336e-05/0.4024, allocations: 117.8 kB / 1.211 GB, free: 5.883 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.344e-05/0.4024, allocations: 0 / 1.211 GB, free: 5.883 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.131e-05/0.4025, allocations: 7.125 kB / 1.211 GB, free: 5.879 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.803e-06/0.4025, allocations: 0 / 1.211 GB, free: 5.879 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.4025, allocations: 4 kB / 1.211 GB, free: 5.875 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.475e-06/0.4025, allocations: 0 / 1.211 GB, free: 5.875 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001624/0.4027, allocations: 161.6 kB / 1.211 GB, free: 5.668 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.4027, allocations: 4 kB / 1.211 GB, free: 5.664 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.235e-05/0.4027, allocations: 15.98 kB / 1.211 GB, free: 5.648 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.964e-06/0.4028, allocations: 0 / 1.211 GB, free: 5.648 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.618e-06/0.4028, allocations: 0 / 1.211 GB, free: 5.648 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.789e-06/0.4028, allocations: 0 / 1.211 GB, free: 5.648 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.4028, allocations: 3.938 kB / 1.211 GB, free: 5.645 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002546/0.403, allocations: 167.4 kB / 1.211 GB, free: 5.465 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 3.909e-05/0.4031, allocations: 85.02 kB / 1.212 GB, free: 5.363 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.306e-05/0.4031, allocations: 4 kB / 1.212 GB, free: 5.359 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.871e-05/0.4032, allocations: 7.984 kB / 1.212 GB, free: 5.352 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.244e-05/0.4033, allocations: 3.984 kB / 1.212 GB, free: 5.348 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.017e-06/0.4033, allocations: 0 / 1.212 GB, free: 5.348 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 4.958e-05/0.4033, allocations: 87.45 kB / 1.212 GB, free: 5.262 MB / 0.9669 GB Notification: Performance of sort global known variables: time 2.2e-07/0.4033, allocations: 0 / 1.212 GB, free: 5.262 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002234/0.4036, allocations: 4 kB / 1.212 GB, free: 5.258 MB / 0.9669 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.0001155/0.4037, allocations: 99.28 kB / 1.212 GB, free: 5.148 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0002279/0.4039, allocations: 43.89 kB / 1.212 GB, free: 5.105 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.4039, allocations: 0 / 1.212 GB, free: 5.105 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001047/0.404, allocations: 27.97 kB / 1.212 GB, free: 5.078 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003161/0.4044, allocations: 8.062 kB / 1.212 GB, free: 5.07 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003381/0.4047, allocations: 113.4 kB / 1.212 GB, free: 4.93 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002798/0.405, allocations: 0.6768 MB / 1.213 GB, free: 4.227 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 3.384e-05/0.405, allocations: 7.938 kB / 1.213 GB, free: 4.219 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.289e-05/0.4051, allocations: 7.438 kB / 1.213 GB, free: 4.211 MB / 0.9669 GB Notification: Performance of SimCode: time 2.4e-07/0.4051, allocations: 4 kB / 1.213 GB, free: 4.207 MB / 0.9669 GB Notification: Performance of Templates: time 0.00311/0.4082, allocations: 0.6012 MB / 1.213 GB, free: 3.609 MB / 0.9669 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