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.004521/0.004521, allocations: 97.62 kB / 15.73 MB, free: 6.059 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.00112/0.00112, allocations: 197.3 kB / 16.68 MB, free: 5.977 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.364/1.364, allocations: 222.9 MB / 240.4 MB, free: 4.316 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.5/2.5, allocations: 437.1 MB / 0.7105 GB, free: 4.93 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.00127/0.00127, allocations: 63.91 kB / 1.018 GB, free: 15.05 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2424/0.2437, allocations: 151.6 MB / 1.166 GB, free: 7.301 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger): time 0.001711/0.2454, allocations: 0.6153 MB / 1.167 GB, free: 6.68 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.0009599/0.2464, allocations: 0.8238 MB / 1.168 GB, free: 5.844 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.175e-05/0.2465, allocations: 4 kB / 1.168 GB, free: 5.84 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 2.524e-05/0.2465, allocations: 3.938 kB / 1.168 GB, free: 5.836 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 6.735e-05/0.2466, allocations: 3.938 kB / 1.168 GB, free: 5.832 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001539/0.2468, allocations: 15.98 kB / 1.168 GB, free: 5.816 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 7.214e-05/0.2468, allocations: 27.92 kB / 1.168 GB, free: 5.789 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 9.632e-05/0.247, allocations: 11.92 kB / 1.168 GB, free: 5.777 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 5.955e-05/0.247, allocations: 11.98 kB / 1.168 GB, free: 5.766 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 4.524e-05/0.2471, allocations: 15.92 kB / 1.168 GB, free: 5.75 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 1.572e-05/0.2471, allocations: 4 kB / 1.168 GB, free: 5.746 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 7.073e-06/0.2471, allocations: 0 / 1.168 GB, free: 5.746 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 1.586e-05/0.2471, allocations: 4 kB / 1.168 GB, free: 5.742 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 2.686e-05/0.2472, allocations: 7.938 kB / 1.168 GB, free: 5.734 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 8.034e-05/0.2472, allocations: 27.88 kB / 1.168 GB, free: 5.707 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.2473, allocations: 8 kB / 1.168 GB, free: 5.699 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.223e-06/0.2473, allocations: 0 / 1.168 GB, free: 5.699 MB / 0.92 GB Notification: Performance of Transformations before backend: time 4.228e-06/0.2473, allocations: 0 / 1.168 GB, free: 5.699 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.0004096/0.2477, allocations: 341.4 kB / 1.168 GB, free: 5.316 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.458e-05/0.2477, allocations: 8.031 kB / 1.168 GB, free: 5.309 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.238e-05/0.2478, allocations: 38.75 kB / 1.168 GB, free: 5.262 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.281e-05/0.2478, allocations: 4.875 kB / 1.168 GB, free: 5.258 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001002/0.2479, allocations: 168.3 kB / 1.168 GB, free: 5.055 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.854e-05/0.2479, allocations: 384 / 1.168 GB, free: 5.055 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.627e-06/0.2479, allocations: 8.375 kB / 1.168 GB, free: 5.047 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001751/0.2481, allocations: 50.23 kB / 1.168 GB, free: 4.992 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.234e-06/0.2481, allocations: 3.938 kB / 1.168 GB, free: 4.988 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.816e-06/0.2481, allocations: 0 / 1.168 GB, free: 4.988 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.057e-06/0.2482, allocations: 0 / 1.168 GB, free: 4.988 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001827/0.2483, allocations: 35.95 kB / 1.168 GB, free: 4.953 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003121/0.2487, allocations: 260.9 kB / 1.169 GB, free: 4.648 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000136/0.2488, allocations: 42.5 kB / 1.169 GB, free: 4.598 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.333e-05/0.2489, allocations: 24.89 kB / 1.169 GB, free: 4.57 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 1.633e-05/0.2489, allocations: 7.984 kB / 1.169 GB, free: 4.562 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.384e-05/0.249, allocations: 30.56 kB / 1.169 GB, free: 4.523 MB / 0.92 GB Notification: Performance of pre-optimization done (n=2): time 1.202e-06/0.249, allocations: 4 kB / 1.169 GB, free: 4.52 MB / 0.92 GB Notification: Performance of matching and sorting (n=2): time 0.0003627/0.2493, allocations: 85.58 kB / 1.169 GB, free: 4.43 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.088e-05/0.2494, allocations: 51.41 kB / 1.169 GB, free: 4.367 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.91e-05/0.2495, allocations: 101.8 kB / 1.169 GB, free: 4.258 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.42e-05/0.2495, allocations: 29.7 kB / 1.169 GB, free: 4.223 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 3.392e-05/0.2495, allocations: 80.14 kB / 1.169 GB, free: 4.141 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 1.528e-05/0.2495, allocations: 8.078 kB / 1.169 GB, free: 4.133 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.397e-05/0.2496, allocations: 17.72 kB / 1.169 GB, free: 4.109 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 9.288e-05/0.2497, allocations: 314.8 kB / 1.169 GB, free: 3.793 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.042e-05/0.2498, allocations: 15.98 kB / 1.169 GB, free: 3.777 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.151e-05/0.2499, allocations: 15.98 kB / 1.169 GB, free: 3.762 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001681/0.25, allocations: 48.81 kB / 1.169 GB, free: 3.711 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.427e-06/0.25, allocations: 3.938 kB / 1.169 GB, free: 3.707 MB / 0.92 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.000214/0.2503, allocations: 73.59 kB / 1.169 GB, free: 3.629 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.297e-05/0.2503, allocations: 7.938 kB / 1.169 GB, free: 3.621 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.078e-06/0.2503, allocations: 0 / 1.169 GB, free: 3.621 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.285e-05/0.2503, allocations: 4 kB / 1.17 GB, free: 3.617 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.734e-05/0.2504, allocations: 7.984 kB / 1.17 GB, free: 3.609 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.729e-06/0.2504, allocations: 0 / 1.17 GB, free: 3.609 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.878e-05/0.2505, allocations: 15.97 kB / 1.17 GB, free: 3.594 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.22e-06/0.2505, allocations: 0 / 1.17 GB, free: 3.594 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 7.376e-05/0.2506, allocations: 113.8 kB / 1.17 GB, free: 3.473 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.737e-05/0.2506, allocations: 4 kB / 1.17 GB, free: 3.469 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.656e-05/0.2506, allocations: 3.125 kB / 1.17 GB, free: 3.465 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.703e-06/0.2506, allocations: 0 / 1.17 GB, free: 3.465 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.496e-06/0.2506, allocations: 4 kB / 1.17 GB, free: 3.461 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.104e-06/0.2507, allocations: 0 / 1.17 GB, free: 3.461 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001548/0.2508, allocations: 165.6 kB / 1.17 GB, free: 3.25 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.2508, allocations: 0 / 1.17 GB, free: 3.25 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.493e-05/0.2509, allocations: 11.98 kB / 1.17 GB, free: 3.238 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.894e-06/0.2509, allocations: 0 / 1.17 GB, free: 3.238 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.003e-06/0.2509, allocations: 0 / 1.17 GB, free: 3.238 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-06/0.2509, allocations: 0 / 1.17 GB, free: 3.238 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.2509, allocations: 0 / 1.17 GB, free: 3.238 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002584/0.2512, allocations: 171.4 kB / 1.17 GB, free: 3.055 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 3.11e-05/0.2512, allocations: 81.11 kB / 1.17 GB, free: 2.957 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.225e-05/0.2513, allocations: 0 / 1.17 GB, free: 2.957 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.786e-05/0.2513, allocations: 7.984 kB / 1.17 GB, free: 2.949 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.487e-05/0.2514, allocations: 7.984 kB / 1.17 GB, free: 2.941 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.759e-06/0.2514, allocations: 4 kB / 1.17 GB, free: 2.938 MB / 0.92 GB Notification: Performance of sorting global known variables: time 3.526e-05/0.2515, allocations: 79.28 kB / 1.17 GB, free: 2.859 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2515, allocations: 0 / 1.17 GB, free: 2.859 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0002264/0.2517, allocations: 12.03 kB / 1.17 GB, free: 2.848 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.0005005/0.2522, allocations: 0.7083 MB / 1.171 GB, free: 2.109 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0002224/0.2524, allocations: 40 kB / 1.171 GB, free: 2.07 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 1.644e-06/0.2524, allocations: 0 / 1.171 GB, free: 2.07 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.000104/0.2525, allocations: 23.97 kB / 1.171 GB, free: 2.047 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002824/0.2528, allocations: 7.938 kB / 1.171 GB, free: 2.039 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004067/0.2533, allocations: 139 kB / 1.171 GB, free: 1.863 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002021/0.2535, allocations: 0.673 MB / 1.172 GB, free: 1.164 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 3.049e-05/0.2535, allocations: 8 kB / 1.172 GB, free: 1.156 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.151e-05/0.2536, allocations: 15.42 kB / 1.172 GB, free: 1.141 MB / 0.92 GB Notification: Performance of SimCode: time 2.5e-07/0.2536, allocations: 3.938 kB / 1.172 GB, free: 1.137 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01545/0.269, allocations: 1.451 MB / 1.173 GB, free: 15.8 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.141/7.41, allocations: 16.89 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