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.001246/0.001246, allocations: 108 kB / 15.61 MB, free: 152 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.001279/0.001279, allocations: 195.3 kB / 16.53 MB, free: 6.664 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.251/1.251, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.544/2.544, allocations: 469.4 MB / 0.742 GB, free: 7.73 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001193/0.001193, allocations: 64.62 kB / 0.9083 GB, free: 34.47 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2378/0.239, allocations: 159.1 MB / 1.064 GB, free: 14.52 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger): time 0.001753/0.2408, allocations: 0.6225 MB / 1.064 GB, free: 13.89 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0007861/0.2416, allocations: 0.8234 MB / 1.065 GB, free: 13.06 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.163e-05/0.2416, allocations: 4 kB / 1.065 GB, free: 13.05 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 2.256e-05/0.2416, allocations: 3.984 kB / 1.065 GB, free: 13.05 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 4.92e-05/0.2417, allocations: 3.938 kB / 1.065 GB, free: 13.05 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001185/0.2418, allocations: 11.94 kB / 1.065 GB, free: 13.04 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 5.356e-05/0.2419, allocations: 23.92 kB / 1.065 GB, free: 13.01 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 8.527e-05/0.242, allocations: 15.97 kB / 1.065 GB, free: 13 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 4.982e-05/0.242, allocations: 7.938 kB / 1.065 GB, free: 12.99 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 4.449e-05/0.2421, allocations: 11.98 kB / 1.065 GB, free: 12.98 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.506e-05/0.2421, allocations: 11.94 kB / 1.065 GB, free: 12.96 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 9.809e-06/0.2421, allocations: 0 / 1.065 GB, free: 12.96 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 1.6e-05/0.2421, allocations: 11.94 kB / 1.065 GB, free: 12.95 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 2.927e-05/0.2422, allocations: 15.92 kB / 1.065 GB, free: 12.94 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 6.242e-05/0.2422, allocations: 19.95 kB / 1.065 GB, free: 12.92 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.346e-06/0.2423, allocations: 0 / 1.065 GB, free: 12.92 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.342e-06/0.2423, allocations: 0 / 1.065 GB, free: 12.92 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.963e-06/0.2423, allocations: 4 kB / 1.065 GB, free: 12.91 MB / 0.8262 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.0003698/0.2427, allocations: 331.8 kB / 1.066 GB, free: 12.54 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.185e-05/0.2427, allocations: 12.03 kB / 1.066 GB, free: 12.53 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.916e-05/0.2427, allocations: 34.75 kB / 1.066 GB, free: 12.48 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.172e-05/0.2428, allocations: 8.844 kB / 1.066 GB, free: 12.48 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.938e-05/0.2428, allocations: 164.4 kB / 1.066 GB, free: 12.28 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.68e-05/0.2429, allocations: 384 / 1.066 GB, free: 12.28 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.331e-05/0.2429, allocations: 8.375 kB / 1.066 GB, free: 12.27 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001624/0.2431, allocations: 50.23 kB / 1.066 GB, free: 12.21 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.224e-06/0.2431, allocations: 7.875 kB / 1.066 GB, free: 12.21 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.624e-06/0.2431, allocations: 0 / 1.066 GB, free: 12.21 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.847e-06/0.2431, allocations: 4 kB / 1.066 GB, free: 12.2 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001701/0.2433, allocations: 39.89 kB / 1.066 GB, free: 12.16 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002866/0.2436, allocations: 245 kB / 1.066 GB, free: 11.88 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001272/0.2437, allocations: 42.5 kB / 1.066 GB, free: 11.82 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.192e-05/0.2438, allocations: 28.89 kB / 1.066 GB, free: 11.79 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.349e-05/0.2438, allocations: 0 / 1.066 GB, free: 11.79 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.908e-05/0.2438, allocations: 34.56 kB / 1.066 GB, free: 11.75 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=2): time 1.994e-06/0.2438, allocations: 0 / 1.066 GB, free: 11.75 MB / 0.8262 GB Notification: Performance of matching and sorting (n=2): time 0.0003448/0.2442, allocations: 93.47 kB / 1.066 GB, free: 11.65 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.575e-05/0.2442, allocations: 55.53 kB / 1.066 GB, free: 11.59 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.236e-05/0.2443, allocations: 101.8 kB / 1.066 GB, free: 11.48 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.121e-05/0.2443, allocations: 25.7 kB / 1.066 GB, free: 11.45 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 3.217e-05/0.2444, allocations: 88.14 kB / 1.067 GB, free: 11.36 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.437e-05/0.2444, allocations: 0 / 1.067 GB, free: 11.36 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.08e-05/0.2444, allocations: 13.72 kB / 1.067 GB, free: 11.34 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 8.128e-05/0.2445, allocations: 318.8 kB / 1.067 GB, free: 11.02 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.858e-05/0.2446, allocations: 15.98 kB / 1.067 GB, free: 11 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.891e-05/0.2447, allocations: 19.98 kB / 1.067 GB, free: 10.98 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001577/0.2448, allocations: 44.75 kB / 1.067 GB, free: 10.93 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.115e-06/0.2449, allocations: 3.938 kB / 1.067 GB, free: 10.93 MB / 0.8262 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002033/0.2451, allocations: 77.56 kB / 1.067 GB, free: 10.85 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.239e-05/0.2451, allocations: 4 kB / 1.067 GB, free: 10.84 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.627e-06/0.2451, allocations: 0 / 1.067 GB, free: 10.84 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.638e-06/0.2451, allocations: 0 / 1.067 GB, free: 10.84 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.537e-05/0.2452, allocations: 15.98 kB / 1.067 GB, free: 10.83 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.499e-06/0.2452, allocations: 0 / 1.067 GB, free: 10.83 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.342e-05/0.2453, allocations: 7.984 kB / 1.067 GB, free: 10.82 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.569e-06/0.2453, allocations: 0 / 1.067 GB, free: 10.82 MB / 0.8262 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.214e-05/0.2454, allocations: 113.8 kB / 1.067 GB, free: 10.7 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.355e-05/0.2454, allocations: 4.031 kB / 1.067 GB, free: 10.7 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.503e-05/0.2454, allocations: 7.125 kB / 1.067 GB, free: 10.69 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-06/0.2454, allocations: 0 / 1.067 GB, free: 10.69 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.516e-06/0.2454, allocations: 0 / 1.067 GB, free: 10.69 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.359e-06/0.2454, allocations: 4 kB / 1.067 GB, free: 10.69 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001356/0.2456, allocations: 169.5 kB / 1.067 GB, free: 10.47 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.2456, allocations: 0 / 1.067 GB, free: 10.47 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.698e-05/0.2456, allocations: 7.984 kB / 1.067 GB, free: 10.46 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.417e-06/0.2457, allocations: 4 kB / 1.067 GB, free: 10.46 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.881e-06/0.2457, allocations: 0 / 1.067 GB, free: 10.46 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.244e-06/0.2457, allocations: 8 kB / 1.067 GB, free: 10.45 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.2457, allocations: 0 / 1.067 GB, free: 10.45 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002289/0.2459, allocations: 163.5 kB / 1.067 GB, free: 10.28 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 2.699e-05/0.2459, allocations: 77.11 kB / 1.068 GB, free: 10.18 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.46e-05/0.246, allocations: 7.984 kB / 1.068 GB, free: 10.18 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.019e-05/0.246, allocations: 4.031 kB / 1.068 GB, free: 10.17 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.083e-05/0.2461, allocations: 11.98 kB / 1.068 GB, free: 10.16 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.516e-06/0.2461, allocations: 0 / 1.068 GB, free: 10.16 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 3.222e-05/0.2461, allocations: 79.28 kB / 1.068 GB, free: 10.08 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2461, allocations: 0 / 1.068 GB, free: 10.08 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002115/0.2464, allocations: 7.906 kB / 1.068 GB, free: 10.07 MB / 0.8262 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.0004492/0.2468, allocations: 0.7051 MB / 1.068 GB, free: 9.34 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002078/0.247, allocations: 43.95 kB / 1.068 GB, free: 9.297 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.247, allocations: 0 / 1.068 GB, free: 9.297 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 9.354e-05/0.2471, allocations: 24.02 kB / 1.068 GB, free: 9.273 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002598/0.2474, allocations: 12.94 kB / 1.068 GB, free: 9.262 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003824/0.2478, allocations: 140.9 kB / 1.069 GB, free: 9.086 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001776/0.248, allocations: 0.6729 MB / 1.069 GB, free: 8.387 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 2.787e-05/0.248, allocations: 0 / 1.069 GB, free: 8.387 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.796e-05/0.2481, allocations: 27.36 kB / 1.069 GB, free: 8.363 MB / 0.8262 GB Notification: Performance of SimCode: time 2.3e-07/0.2481, allocations: 0 / 1.069 GB, free: 8.363 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01613/0.2642, allocations: 1.421 MB / 1.071 GB, free: 7.062 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.693/6.957, allocations: 0 / 1.071 GB, free: 7.062 MB / 0.8262 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 & python3 -m fmpy simulate --output-file Buildings_latest_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_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.csv","/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) Reference file matches