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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Conversions_Validation_RealToInteger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Conversions_Validation_RealToInteger",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005974/0.005974, allocations: 103.4 kB / 15.73 MB, free: 6.047 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.001164/0.001164, allocations: 188 kB / 16.67 MB, free: 5.969 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.324/1.324, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.56/2.56, allocations: 461.9 MB / 0.7348 GB, free: 11.06 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.00155/0.001551, allocations: 59.84 kB / 1.054 GB, free: 8.215 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8531/0.8547, allocations: 157.4 MB / 1.207 GB, free: 13.55 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger): time 0.0018/0.8566, allocations: 0.6167 MB / 1.208 GB, free: 12.94 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.000876/0.8575, allocations: 0.8273 MB / 1.209 GB, free: 12.1 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.529e-05/0.8575, allocations: 0 / 1.209 GB, free: 12.1 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 2.751e-05/0.8575, allocations: 3.938 kB / 1.209 GB, free: 12.1 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 5.587e-05/0.8576, allocations: 7.984 kB / 1.209 GB, free: 12.09 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001392/0.8578, allocations: 11.92 kB / 1.209 GB, free: 12.08 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 6.888e-05/0.8578, allocations: 27.92 kB / 1.209 GB, free: 12.05 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001037/0.8579, allocations: 4 kB / 1.209 GB, free: 12.05 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 7.334e-05/0.858, allocations: 19.92 kB / 1.209 GB, free: 12.03 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 4.82e-05/0.8581, allocations: 11.98 kB / 1.209 GB, free: 12.02 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.598e-05/0.8581, allocations: 4 kB / 1.209 GB, free: 12.01 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 8.867e-06/0.8581, allocations: 0 / 1.209 GB, free: 12.01 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 1.857e-05/0.8581, allocations: 11.92 kB / 1.209 GB, free: 12 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 2.55e-05/0.8582, allocations: 7.938 kB / 1.209 GB, free: 11.99 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 8.027e-05/0.8582, allocations: 27.91 kB / 1.209 GB, free: 11.96 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 7.574e-06/0.8583, allocations: 3.984 kB / 1.209 GB, free: 11.96 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.593e-06/0.8583, allocations: 0 / 1.209 GB, free: 11.96 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 4.559e-06/0.8583, allocations: 0 / 1.209 GB, free: 11.96 MB / 0.9356 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.0004639/0.8587, allocations: 341.7 kB / 1.209 GB, free: 11.58 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.124e-05/0.8588, allocations: 8.031 kB / 1.209 GB, free: 11.57 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.438e-05/0.8588, allocations: 30.75 kB / 1.209 GB, free: 11.53 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.637e-05/0.8589, allocations: 4.938 kB / 1.209 GB, free: 11.53 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001382/0.859, allocations: 164.4 kB / 1.209 GB, free: 11.33 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.084e-05/0.859, allocations: 384 / 1.209 GB, free: 11.33 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.3e-05/0.8591, allocations: 4.375 kB / 1.209 GB, free: 11.32 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000182/0.8592, allocations: 58.16 kB / 1.209 GB, free: 11.26 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.928e-06/0.8593, allocations: 7.938 kB / 1.209 GB, free: 11.25 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.037e-06/0.8593, allocations: 0 / 1.209 GB, free: 11.25 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.619e-06/0.8593, allocations: 0 / 1.209 GB, free: 11.25 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001707/0.8595, allocations: 39.95 kB / 1.209 GB, free: 11.21 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003524/0.8598, allocations: 245 kB / 1.21 GB, free: 10.93 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001425/0.86, allocations: 54.42 kB / 1.21 GB, free: 10.86 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.482e-05/0.8601, allocations: 20.91 kB / 1.21 GB, free: 10.84 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 1.3e-05/0.8601, allocations: 0 / 1.21 GB, free: 10.84 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.343e-05/0.8601, allocations: 34.56 kB / 1.21 GB, free: 10.8 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=2): time 7.71e-07/0.8601, allocations: 3.938 kB / 1.21 GB, free: 10.79 MB / 0.9356 GB Notification: Performance of matching and sorting (n=2): time 0.0003682/0.8605, allocations: 93.53 kB / 1.21 GB, free: 10.7 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.502e-05/0.8606, allocations: 51.41 kB / 1.21 GB, free: 10.63 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.721e-05/0.8606, allocations: 101.8 kB / 1.21 GB, free: 10.52 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.331e-05/0.8607, allocations: 25.7 kB / 1.21 GB, free: 10.49 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 4.131e-05/0.8607, allocations: 88.12 kB / 1.21 GB, free: 10.4 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 1.959e-05/0.8607, allocations: 7.844 kB / 1.21 GB, free: 10.39 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.781e-05/0.8608, allocations: 17.72 kB / 1.21 GB, free: 10.37 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.000109/0.8609, allocations: 315 kB / 1.21 GB, free: 10.05 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.947e-05/0.861, allocations: 19.97 kB / 1.21 GB, free: 10.04 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.445e-05/0.8611, allocations: 15.98 kB / 1.21 GB, free: 10.02 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001573/0.8612, allocations: 40.83 kB / 1.211 GB, free: 9.977 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.477e-06/0.8612, allocations: 3.938 kB / 1.211 GB, free: 9.973 MB / 0.9356 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001942/0.8614, allocations: 69.72 kB / 1.211 GB, free: 9.898 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 2.193e-05/0.8615, allocations: 7.984 kB / 1.211 GB, free: 9.891 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.809e-06/0.8615, allocations: 0 / 1.211 GB, free: 9.891 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.57e-05/0.8615, allocations: 0 / 1.211 GB, free: 9.891 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001025/0.8616, allocations: 11.94 kB / 1.211 GB, free: 9.879 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.05e-06/0.8616, allocations: 0 / 1.211 GB, free: 9.879 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.472e-05/0.8617, allocations: 11.92 kB / 1.211 GB, free: 9.867 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.899e-06/0.8617, allocations: 192 / 1.211 GB, free: 9.867 MB / 0.9356 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 7.978e-05/0.8618, allocations: 121.8 kB / 1.211 GB, free: 9.738 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.333e-05/0.8618, allocations: 0 / 1.211 GB, free: 9.738 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.342e-05/0.8618, allocations: 11.09 kB / 1.211 GB, free: 9.727 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-06/0.8618, allocations: 0 / 1.211 GB, free: 9.727 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.8618, allocations: 0 / 1.211 GB, free: 9.727 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.214e-06/0.8618, allocations: 0 / 1.211 GB, free: 9.727 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001547/0.862, allocations: 161.6 kB / 1.211 GB, free: 9.52 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.862, allocations: 0 / 1.211 GB, free: 9.52 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.867e-05/0.8621, allocations: 7.984 kB / 1.211 GB, free: 9.512 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/0.8621, allocations: 4 kB / 1.211 GB, free: 9.508 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.225e-06/0.8621, allocations: 4 kB / 1.211 GB, free: 9.504 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.343e-06/0.8621, allocations: 0 / 1.211 GB, free: 9.504 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.357e-06/0.8621, allocations: 3.984 kB / 1.211 GB, free: 9.5 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002524/0.8624, allocations: 167.4 kB / 1.211 GB, free: 9.32 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 3.629e-05/0.8624, allocations: 81.02 kB / 1.211 GB, free: 9.223 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.506e-05/0.8625, allocations: 11.97 kB / 1.211 GB, free: 9.211 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.292e-05/0.8625, allocations: 7.984 kB / 1.211 GB, free: 9.203 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.814e-05/0.8626, allocations: 4 kB / 1.211 GB, free: 9.199 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.457e-06/0.8626, allocations: 0 / 1.211 GB, free: 9.199 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 4.684e-05/0.8627, allocations: 87.27 kB / 1.211 GB, free: 9.113 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.5e-07/0.8627, allocations: 0 / 1.211 GB, free: 9.113 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002095/0.8629, allocations: 4 kB / 1.211 GB, free: 9.109 MB / 0.9356 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.0005498/0.8634, allocations: 0.6993 MB / 1.212 GB, free: 8.383 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0002181/0.8637, allocations: 43.89 kB / 1.212 GB, free: 8.34 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.8637, allocations: 0 / 1.212 GB, free: 8.34 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 9.026e-05/0.8638, allocations: 24.08 kB / 1.212 GB, free: 8.316 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002735/0.864, allocations: 11.98 kB / 1.212 GB, free: 8.305 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004429/0.8645, allocations: 143.1 kB / 1.212 GB, free: 8.121 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002441/0.8648, allocations: 0.6768 MB / 1.213 GB, free: 7.418 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 2.805e-05/0.8648, allocations: 0 / 1.213 GB, free: 7.418 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.112e-05/0.8648, allocations: 15.5 kB / 1.213 GB, free: 7.402 MB / 0.9356 GB Notification: Performance of SimCode: time 2.2e-07/0.8648, allocations: 0 / 1.213 GB, free: 7.402 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01731/0.8822, allocations: 1.47 MB / 1.214 GB, free: 6.07 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.512/8.394, allocations: 4.5 kB / 1.214 GB, free: 6.066 MB / 0.9356 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Conversions_Validation_RealToInteger_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Conversions_Validation_RealToInteger.fmu > 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,reaToInt.u,reaToInt.y Variables in the result:ramp1.duration,ramp1.height,ramp1.offset,ramp1.startTime,ramp1.y,reaToInt.u,reaToInt.y,time