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.00124/0.00124, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001189/0.001189, allocations: 199.2 kB / 16.54 MB, free: 6.672 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.253/1.253, allocations: 222.9 MB / 240.2 MB, free: 4.41 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 2.382/2.382, allocations: 437 MB / 0.7104 GB, free: 5.098 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.00117/0.00117, allocations: 67.89 kB / 0.8694 GB, free: 4.559 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4713/0.4724, allocations: 151.6 MB / 1.017 GB, free: 2.516 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger): time 0.001733/0.4742, allocations: 0.6171 MB / 1.018 GB, free: 1.902 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0008379/0.4751, allocations: 0.8273 MB / 1.019 GB, free: 1.062 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.005e-05/0.4751, allocations: 0 / 1.019 GB, free: 1.062 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 2.684e-05/0.4752, allocations: 3.938 kB / 1.019 GB, free: 1.059 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 5.168e-05/0.4752, allocations: 3.938 kB / 1.019 GB, free: 1.055 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001296/0.4754, allocations: 15.97 kB / 1.019 GB, free: 1.039 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 6.214e-05/0.4754, allocations: 27.92 kB / 1.019 GB, free: 1.012 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 8.294e-05/0.4755, allocations: 0 / 1.019 GB, free: 1.012 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 5.241e-05/0.4756, allocations: 19.92 kB / 1.019 GB, free: 0.9922 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 4.222e-05/0.4756, allocations: 11.98 kB / 1.019 GB, free: 0.9805 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.4e-05/0.4756, allocations: 4 kB / 1.019 GB, free: 0.9766 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 1.014e-05/0.4757, allocations: 4 kB / 1.019 GB, free: 0.9727 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 1.666e-05/0.4757, allocations: 7.922 kB / 1.019 GB, free: 0.9648 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 2.284e-05/0.4757, allocations: 4 kB / 1.019 GB, free: 0.9609 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 6.79e-05/0.4758, allocations: 31.89 kB / 1.019 GB, free: 0.9297 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 3.367e-06/0.4758, allocations: 0 / 1.019 GB, free: 0.9297 MB / 0.7637 GB Notification: Performance of FrontEnd: time 1.123e-06/0.4758, allocations: 0 / 1.019 GB, free: 0.9297 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 4.559e-06/0.4758, allocations: 0 / 1.019 GB, free: 0.9297 MB / 0.7637 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.0003851/0.4762, allocations: 339.6 kB / 1.019 GB, free: 0.5508 MB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 3.364e-05/0.4762, allocations: 16.03 kB / 1.019 GB, free: 0.5352 MB / 0.7637 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.916e-05/0.4763, allocations: 30.75 kB / 1.019 GB, free: 0.4961 MB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.167e-05/0.4763, allocations: 0.9375 kB / 1.019 GB, free: 0.4961 MB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.926e-05/0.4764, allocations: 172.3 kB / 1.019 GB, free: 296 kB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.825e-05/0.4764, allocations: 384 / 1.019 GB, free: 296 kB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.476e-06/0.4764, allocations: 384 / 1.019 GB, free: 296 kB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001599/0.4766, allocations: 58.17 kB / 1.02 GB, free: 232 kB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.905e-06/0.4766, allocations: 3.938 kB / 1.02 GB, free: 228 kB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.476e-06/0.4766, allocations: 0 / 1.02 GB, free: 228 kB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.707e-06/0.4766, allocations: 0 / 1.02 GB, free: 228 kB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001755/0.4768, allocations: 39.95 kB / 1.02 GB, free: 188 kB / 0.7637 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003028/0.4771, allocations: 253 kB / 1.02 GB, free: 15.89 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001318/0.4773, allocations: 42.44 kB / 1.02 GB, free: 15.84 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.372e-05/0.4774, allocations: 36.83 kB / 1.02 GB, free: 15.8 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.498e-05/0.4774, allocations: 7.922 kB / 1.02 GB, free: 15.79 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.892e-05/0.4774, allocations: 30.56 kB / 1.02 GB, free: 15.75 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=2): time 1.032e-06/0.4774, allocations: 0 / 1.02 GB, free: 15.75 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2): time 0.0003514/0.4778, allocations: 85.62 kB / 1.02 GB, free: 15.66 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.939e-05/0.4778, allocations: 55.53 kB / 1.02 GB, free: 15.59 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.334e-05/0.4779, allocations: 109.8 kB / 1.02 GB, free: 15.48 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.357e-05/0.4779, allocations: 25.7 kB / 1.02 GB, free: 15.45 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 2.896e-05/0.4779, allocations: 80.14 kB / 1.02 GB, free: 15.36 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.666e-05/0.478, allocations: 7.844 kB / 1.02 GB, free: 15.36 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.175e-05/0.478, allocations: 17.72 kB / 1.02 GB, free: 15.33 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 7.791e-05/0.4781, allocations: 310.8 kB / 1.021 GB, free: 15.02 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.731e-05/0.4782, allocations: 23.97 kB / 1.021 GB, free: 15 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.799e-05/0.4783, allocations: 15.98 kB / 1.021 GB, free: 14.98 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001617/0.4784, allocations: 44.81 kB / 1.021 GB, free: 14.93 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.876e-06/0.4784, allocations: 3.938 kB / 1.021 GB, free: 14.93 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001986/0.4786, allocations: 65.66 kB / 1.021 GB, free: 14.86 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.428e-05/0.4787, allocations: 12.09 kB / 1.021 GB, free: 14.85 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.958e-06/0.4787, allocations: 0 / 1.021 GB, free: 14.85 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.25e-05/0.4787, allocations: 4 kB / 1.021 GB, free: 14.84 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.308e-05/0.4788, allocations: 11.92 kB / 1.021 GB, free: 14.83 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.328e-06/0.4788, allocations: 0 / 1.021 GB, free: 14.83 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.24e-05/0.4789, allocations: 4 kB / 1.021 GB, free: 14.83 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.422e-06/0.4789, allocations: 4 kB / 1.021 GB, free: 14.82 MB / 0.7794 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 6.272e-05/0.4789, allocations: 117.8 kB / 1.021 GB, free: 14.7 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.45e-05/0.479, allocations: 7.906 kB / 1.021 GB, free: 14.69 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.584e-05/0.479, allocations: 7.125 kB / 1.021 GB, free: 14.68 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.402e-06/0.479, allocations: 0 / 1.021 GB, free: 14.68 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.715e-06/0.479, allocations: 0 / 1.021 GB, free: 14.68 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.944e-06/0.479, allocations: 0 / 1.021 GB, free: 14.68 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001335/0.4791, allocations: 161.6 kB / 1.021 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.31e-07/0.4791, allocations: 0 / 1.021 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.928e-05/0.4792, allocations: 11.98 kB / 1.021 GB, free: 14.46 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.502e-06/0.4792, allocations: 0 / 1.021 GB, free: 14.46 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.811e-06/0.4792, allocations: 0 / 1.021 GB, free: 14.46 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.246e-06/0.4792, allocations: 0 / 1.021 GB, free: 14.46 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.4793, allocations: 7.938 kB / 1.021 GB, free: 14.46 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002318/0.4795, allocations: 171.4 kB / 1.021 GB, free: 14.27 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 2.571e-05/0.4795, allocations: 77.11 kB / 1.021 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.224e-05/0.4795, allocations: 0 / 1.021 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.282e-05/0.4796, allocations: 11.98 kB / 1.021 GB, free: 14.17 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.574e-05/0.4797, allocations: 4.031 kB / 1.021 GB, free: 14.16 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.26e-06/0.4797, allocations: 7.984 kB / 1.021 GB, free: 14.16 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 3.073e-05/0.4797, allocations: 87.22 kB / 1.021 GB, free: 14.07 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1e-07/0.4797, allocations: 0 / 1.021 GB, free: 14.07 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002066/0.4799, allocations: 4 kB / 1.021 GB, free: 14.07 MB / 0.7794 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.00044/0.4804, allocations: 0.6968 MB / 1.022 GB, free: 13.34 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002028/0.4806, allocations: 39.89 kB / 1.022 GB, free: 13.3 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.4806, allocations: 0 / 1.022 GB, free: 13.3 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 9.327e-05/0.4807, allocations: 27.97 kB / 1.022 GB, free: 13.28 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002474/0.481, allocations: 4.156 kB / 1.022 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003586/0.4813, allocations: 139.2 kB / 1.022 GB, free: 13.1 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001727/0.4815, allocations: 0.6768 MB / 1.023 GB, free: 12.39 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 2.78e-05/0.4815, allocations: 4 kB / 1.023 GB, free: 12.39 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.309e-05/0.4816, allocations: 7.438 kB / 1.023 GB, free: 12.38 MB / 0.7794 GB Notification: Performance of SimCode: time 2.01e-07/0.4816, allocations: 4 kB / 1.023 GB, free: 12.38 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02821/0.5098, allocations: 1.419 MB / 1.024 GB, free: 11.05 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.533/7.042, allocations: 8.188 kB / 1.024 GB, free: 11.05 MB / 0.7794 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