Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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_10_Buildings_Controls_OBC_CDL_Conversions_Validation_RealToInteger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger,fileNamePrefix="Buildings_10_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.008967/0.008967, allocations: 101.7 kB / 15.73 MB, free: 6.445 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.002311/0.002312, allocations: 191.2 kB / 16.67 MB, free: 6.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.559/2.559, allocations: 222.9 MB / 240.4 MB, free: 4.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 5.268/5.268, allocations: 437 MB / 0.7105 GB, free: 4.973 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.003064/0.003064, allocations: 71.89 kB / 1.018 GB, free: 15.03 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4957/0.4989, allocations: 151.6 MB / 1.166 GB, free: 7.297 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger): time 0.003046/0.502, allocations: 0.6213 MB / 1.167 GB, free: 6.672 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.002075/0.5041, allocations: 0.8393 MB / 1.168 GB, free: 5.82 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.464e-05/0.5042, allocations: 0 / 1.168 GB, free: 5.82 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 5.332e-05/0.5043, allocations: 3.938 kB / 1.168 GB, free: 5.816 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.0001115/0.5045, allocations: 4 kB / 1.168 GB, free: 5.812 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002343/0.5047, allocations: 15.91 kB / 1.168 GB, free: 5.797 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0001315/0.5049, allocations: 23.94 kB / 1.168 GB, free: 5.773 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001418/0.505, allocations: 7.984 kB / 1.168 GB, free: 5.766 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001063/0.5051, allocations: 8 kB / 1.168 GB, free: 5.758 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001157/0.5053, allocations: 15.92 kB / 1.168 GB, free: 5.742 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 2.825e-05/0.5053, allocations: 8 kB / 1.168 GB, free: 5.734 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 1.243e-05/0.5053, allocations: 0 / 1.168 GB, free: 5.734 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 2.714e-05/0.5054, allocations: 7.984 kB / 1.168 GB, free: 5.727 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 4.513e-05/0.5054, allocations: 11.92 kB / 1.168 GB, free: 5.715 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0001385/0.5056, allocations: 23.91 kB / 1.168 GB, free: 5.691 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 6.973e-06/0.5056, allocations: 0 / 1.168 GB, free: 5.691 MB / 0.92 GB Notification: Performance of FrontEnd: time 2.064e-06/0.5056, allocations: 0 / 1.168 GB, free: 5.691 MB / 0.92 GB Notification: Performance of Transformations before backend: time 8.055e-06/0.5056, allocations: 0 / 1.168 GB, free: 5.691 MB / 0.92 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.0007076/0.5064, allocations: 343.7 kB / 1.168 GB, free: 5.305 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 5.488e-05/0.5064, allocations: 12.03 kB / 1.168 GB, free: 5.293 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.422e-05/0.5065, allocations: 34.73 kB / 1.168 GB, free: 5.25 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.699e-05/0.5065, allocations: 4.938 kB / 1.168 GB, free: 5.246 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002036/0.5068, allocations: 164.3 kB / 1.168 GB, free: 5.047 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.144e-05/0.5068, allocations: 384 / 1.168 GB, free: 5.047 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.985e-05/0.5068, allocations: 8.312 kB / 1.168 GB, free: 5.039 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002681/0.5071, allocations: 50.23 kB / 1.168 GB, free: 4.984 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.813e-05/0.5071, allocations: 3.938 kB / 1.168 GB, free: 4.98 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.26e-05/0.5072, allocations: 0 / 1.168 GB, free: 4.98 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.991e-06/0.5072, allocations: 4 kB / 1.168 GB, free: 4.977 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002885/0.5075, allocations: 39.95 kB / 1.168 GB, free: 4.938 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005609/0.5081, allocations: 245 kB / 1.169 GB, free: 4.648 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002563/0.5083, allocations: 46.48 kB / 1.169 GB, free: 4.594 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001735/0.5085, allocations: 28.84 kB / 1.169 GB, free: 4.562 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 2.585e-05/0.5086, allocations: 0 / 1.169 GB, free: 4.562 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.502e-05/0.5086, allocations: 30.56 kB / 1.169 GB, free: 4.523 MB / 0.92 GB Notification: Performance of pre-optimization done (n=2): time 2.244e-06/0.5087, allocations: 4 kB / 1.169 GB, free: 4.52 MB / 0.92 GB Notification: Performance of matching and sorting (n=2): time 0.0006513/0.5093, allocations: 81.64 kB / 1.169 GB, free: 4.434 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.7e-05/0.5094, allocations: 63.45 kB / 1.169 GB, free: 4.359 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00015/0.5096, allocations: 101.8 kB / 1.169 GB, free: 4.25 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 3.548e-05/0.5096, allocations: 25.7 kB / 1.169 GB, free: 4.219 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 8.559e-05/0.5097, allocations: 92.06 kB / 1.169 GB, free: 4.125 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 3.895e-05/0.5098, allocations: 7.953 kB / 1.169 GB, free: 4.117 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.501e-05/0.5099, allocations: 13.7 kB / 1.169 GB, free: 4.098 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0002321/0.5101, allocations: 314.8 kB / 1.169 GB, free: 3.781 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000165/0.5103, allocations: 19.98 kB / 1.169 GB, free: 3.762 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001532/0.5105, allocations: 19.97 kB / 1.169 GB, free: 3.742 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003056/0.5108, allocations: 40.83 kB / 1.169 GB, free: 3.699 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.853e-06/0.5108, allocations: 3.938 kB / 1.169 GB, free: 3.695 MB / 0.92 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0003899/0.5112, allocations: 65.72 kB / 1.169 GB, free: 3.625 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 2.885e-05/0.5113, allocations: 8.031 kB / 1.169 GB, free: 3.617 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.103e-06/0.5113, allocations: 3.938 kB / 1.169 GB, free: 3.613 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.902e-05/0.5113, allocations: 0 / 1.169 GB, free: 3.613 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001669/0.5115, allocations: 11.98 kB / 1.17 GB, free: 3.602 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.634e-06/0.5115, allocations: 0 / 1.17 GB, free: 3.602 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.994e-05/0.5116, allocations: 11.94 kB / 1.17 GB, free: 3.59 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.488e-06/0.5117, allocations: 0 / 1.17 GB, free: 3.59 MB / 0.92 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 0.0001539/0.5118, allocations: 117.8 kB / 1.17 GB, free: 3.465 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.553e-05/0.5119, allocations: 4.188 kB / 1.17 GB, free: 3.461 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.263e-05/0.5119, allocations: 7.109 kB / 1.17 GB, free: 3.453 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.577e-06/0.5119, allocations: 0 / 1.17 GB, free: 3.453 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.512, allocations: 0 / 1.17 GB, free: 3.453 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.514e-06/0.512, allocations: 3.984 kB / 1.17 GB, free: 3.449 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003223/0.5123, allocations: 161.6 kB / 1.17 GB, free: 3.242 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.145e-06/0.5123, allocations: 4 kB / 1.17 GB, free: 3.238 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001167/0.5125, allocations: 7.984 kB / 1.17 GB, free: 3.23 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.509e-06/0.5125, allocations: 0 / 1.17 GB, free: 3.23 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.957e-05/0.5125, allocations: 8 kB / 1.17 GB, free: 3.223 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.036e-06/0.5125, allocations: 4 kB / 1.17 GB, free: 3.219 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.5125, allocations: 0 / 1.17 GB, free: 3.219 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004879/0.513, allocations: 163.4 kB / 1.17 GB, free: 3.043 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 7.539e-05/0.5131, allocations: 81.09 kB / 1.17 GB, free: 2.945 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.554e-05/0.5132, allocations: 4 kB / 1.17 GB, free: 2.941 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001822/0.5134, allocations: 8.031 kB / 1.17 GB, free: 2.934 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.152e-05/0.5135, allocations: 7.984 kB / 1.17 GB, free: 2.926 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.384e-06/0.5135, allocations: 0 / 1.17 GB, free: 2.926 MB / 0.92 GB Notification: Performance of sorting global known variables: time 7.914e-05/0.5136, allocations: 83.28 kB / 1.17 GB, free: 2.844 MB / 0.92 GB Notification: Performance of sort global known variables: time 5.11e-07/0.5136, allocations: 3.938 kB / 1.17 GB, free: 2.84 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0004428/0.514, allocations: 4 kB / 1.17 GB, free: 2.836 MB / 0.92 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.001057/0.5151, allocations: 0.7122 MB / 1.171 GB, free: 2.094 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0004094/0.5155, allocations: 43.89 kB / 1.171 GB, free: 2.051 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.5156, allocations: 0 / 1.171 GB, free: 2.051 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.0001849/0.5157, allocations: 20.08 kB / 1.171 GB, free: 2.031 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005224/0.5163, allocations: 8.062 kB / 1.171 GB, free: 2.023 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007422/0.5171, allocations: 135.1 kB / 1.171 GB, free: 1.852 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004925/0.5176, allocations: 0.6768 MB / 1.172 GB, free: 1.148 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 5.245e-05/0.5176, allocations: 4 kB / 1.172 GB, free: 1.145 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.328e-05/0.5177, allocations: 11.44 kB / 1.172 GB, free: 1.133 MB / 0.92 GB Notification: Performance of SimCode: time 5.51e-07/0.5177, allocations: 4 kB / 1.172 GB, free: 1.129 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1075/0.6253, allocations: 1.448 MB / 1.173 GB, free: 15.8 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.09/17.71, allocations: 14.28 kB / 1.173 GB, free: 15.79 MB / 0.9356 GB (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_10_Buildings_Controls_OBC_CDL_Conversions_Validation_RealToInteger.fmu > Buildings_10_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Conversions_Validation_RealToInteger.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches