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.001248/0.001248, allocations: 99.36 kB / 15.33 MB, free: 0.5078 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.001949/0.001949, allocations: 195.7 kB / 16.25 MB, free: 6.633 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.247/1.247, allocations: 222.9 MB / 239.9 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.43/2.43, allocations: 461.9 MB / 0.7344 GB, free: 14.93 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00117/0.00117, allocations: 66.12 kB / 0.8987 GB, free: 37.18 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.239/0.2402, allocations: 157.4 MB / 1.052 GB, free: 8.668 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger): time 0.001524/0.2418, allocations: 0.6781 MB / 1.053 GB, free: 7.988 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0006898/0.2425, allocations: 0.8273 MB / 1.054 GB, free: 7.148 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.695e-05/0.2425, allocations: 8 kB / 1.054 GB, free: 7.141 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.602e-05/0.2425, allocations: 0 / 1.054 GB, free: 7.141 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 4.787e-05/0.2426, allocations: 3.938 kB / 1.054 GB, free: 7.137 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001137/0.2427, allocations: 11.98 kB / 1.054 GB, free: 7.125 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 5.72e-05/0.2428, allocations: 31.84 kB / 1.054 GB, free: 7.094 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 7.808e-05/0.2429, allocations: 4 kB / 1.054 GB, free: 7.09 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 4.831e-05/0.2429, allocations: 11.98 kB / 1.054 GB, free: 7.078 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 3.755e-05/0.243, allocations: 11.94 kB / 1.054 GB, free: 7.066 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.39e-05/0.243, allocations: 4 kB / 1.054 GB, free: 7.062 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 7.534e-06/0.243, allocations: 4 kB / 1.054 GB, free: 7.059 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.508e-05/0.243, allocations: 7.984 kB / 1.054 GB, free: 7.051 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 2.274e-05/0.243, allocations: 11.92 kB / 1.054 GB, free: 7.039 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 6.695e-05/0.2431, allocations: 19.97 kB / 1.054 GB, free: 7.02 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.05e-06/0.2431, allocations: 3.984 kB / 1.054 GB, free: 7.016 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.333e-06/0.2431, allocations: 4 kB / 1.054 GB, free: 7.012 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.957e-06/0.2431, allocations: 0 / 1.054 GB, free: 7.012 MB / 0.8106 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.0003704/0.2435, allocations: 331.8 kB / 1.054 GB, free: 6.637 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.332e-05/0.2435, allocations: 8.625 kB / 1.054 GB, free: 6.629 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.344e-05/0.2436, allocations: 42.75 kB / 1.054 GB, free: 6.578 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.119e-05/0.2436, allocations: 4.844 kB / 1.054 GB, free: 6.574 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.427e-05/0.2437, allocations: 160.4 kB / 1.055 GB, free: 6.379 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.763e-05/0.2437, allocations: 4.312 kB / 1.055 GB, free: 6.375 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.013e-05/0.2437, allocations: 8.359 kB / 1.055 GB, free: 6.367 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001573/0.2439, allocations: 58.16 kB / 1.055 GB, free: 6.305 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.003e-06/0.2439, allocations: 3.938 kB / 1.055 GB, free: 6.301 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.193e-06/0.2439, allocations: 0 / 1.055 GB, free: 6.301 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.587e-06/0.2439, allocations: 0 / 1.055 GB, free: 6.301 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001576/0.2441, allocations: 39.95 kB / 1.055 GB, free: 6.262 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002829/0.2444, allocations: 245 kB / 1.055 GB, free: 5.973 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001202/0.2445, allocations: 46.48 kB / 1.055 GB, free: 5.918 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.582e-05/0.2446, allocations: 28.84 kB / 1.055 GB, free: 5.887 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.498e-05/0.2446, allocations: 0 / 1.055 GB, free: 5.887 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.822e-05/0.2446, allocations: 34.56 kB / 1.055 GB, free: 5.844 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=2): time 8.31e-07/0.2446, allocations: 0 / 1.055 GB, free: 5.844 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2): time 0.0003176/0.245, allocations: 85.62 kB / 1.055 GB, free: 5.754 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.88e-05/0.245, allocations: 55.53 kB / 1.055 GB, free: 5.688 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.93e-05/0.2451, allocations: 97.86 kB / 1.055 GB, free: 5.582 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.208e-05/0.2451, allocations: 29.7 kB / 1.055 GB, free: 5.547 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 3.421e-05/0.2451, allocations: 88.03 kB / 1.055 GB, free: 5.457 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.473e-05/0.2451, allocations: 3.938 kB / 1.055 GB, free: 5.453 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.446e-05/0.2452, allocations: 17.72 kB / 1.055 GB, free: 5.43 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 7.814e-05/0.2453, allocations: 310.8 kB / 1.056 GB, free: 5.117 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.97e-05/0.2454, allocations: 23.91 kB / 1.056 GB, free: 5.094 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.062e-05/0.2454, allocations: 23.98 kB / 1.056 GB, free: 5.07 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001422/0.2456, allocations: 40.83 kB / 1.056 GB, free: 5.027 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.2456, allocations: 3.938 kB / 1.056 GB, free: 5.023 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001826/0.2458, allocations: 65.66 kB / 1.056 GB, free: 4.953 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.195e-05/0.2458, allocations: 9.656 kB / 1.056 GB, free: 4.945 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.609e-06/0.2458, allocations: 3.984 kB / 1.056 GB, free: 4.941 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.588e-06/0.2458, allocations: 0 / 1.056 GB, free: 4.941 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.843e-05/0.2459, allocations: 8 kB / 1.056 GB, free: 4.934 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.492e-06/0.2459, allocations: 0 / 1.056 GB, free: 4.934 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.375e-05/0.246, allocations: 15.83 kB / 1.056 GB, free: 4.918 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.919e-06/0.246, allocations: 0 / 1.056 GB, free: 4.918 MB / 0.8106 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.057e-05/0.2461, allocations: 117.8 kB / 1.056 GB, free: 4.793 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.136e-05/0.2461, allocations: 4 kB / 1.056 GB, free: 4.789 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.679e-05/0.2461, allocations: 7.109 kB / 1.056 GB, free: 4.785 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.533e-06/0.2461, allocations: 3.938 kB / 1.056 GB, free: 4.781 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.207e-06/0.2461, allocations: 4 kB / 1.056 GB, free: 4.777 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.873e-06/0.2461, allocations: 0 / 1.056 GB, free: 4.777 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001291/0.2463, allocations: 161.6 kB / 1.056 GB, free: 4.57 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.2463, allocations: 0 / 1.056 GB, free: 4.57 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.462e-05/0.2463, allocations: 7.984 kB / 1.056 GB, free: 4.562 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.593e-06/0.2463, allocations: 4 kB / 1.056 GB, free: 4.559 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.702e-06/0.2464, allocations: 0 / 1.056 GB, free: 4.559 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.2464, allocations: 0 / 1.056 GB, free: 4.559 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/0.2464, allocations: 7.984 kB / 1.056 GB, free: 4.551 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002144/0.2466, allocations: 163.5 kB / 1.056 GB, free: 4.375 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 2.752e-05/0.2466, allocations: 77.11 kB / 1.056 GB, free: 4.281 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.184e-05/0.2466, allocations: 7.938 kB / 1.056 GB, free: 4.273 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.798e-05/0.2467, allocations: 7.984 kB / 1.056 GB, free: 4.266 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.613e-05/0.2468, allocations: 8.031 kB / 1.056 GB, free: 4.258 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.167e-06/0.2468, allocations: 192 / 1.056 GB, free: 4.258 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 3.315e-05/0.2468, allocations: 91.25 kB / 1.056 GB, free: 4.168 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2468, allocations: 0 / 1.056 GB, free: 4.168 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0001997/0.247, allocations: 4 kB / 1.056 GB, free: 4.164 MB / 0.8106 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.000439/0.2475, allocations: 0.7006 MB / 1.057 GB, free: 3.434 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0001908/0.2477, allocations: 43.89 kB / 1.057 GB, free: 3.391 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.432e-06/0.2477, allocations: 0 / 1.057 GB, free: 3.391 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 8.236e-05/0.2478, allocations: 23.92 kB / 1.057 GB, free: 3.367 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002368/0.248, allocations: 20.02 kB / 1.057 GB, free: 3.348 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000366/0.2484, allocations: 135.3 kB / 1.057 GB, free: 3.176 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001733/0.2486, allocations: 0.6768 MB / 1.058 GB, free: 2.473 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 2.983e-05/0.2486, allocations: 4 kB / 1.058 GB, free: 2.469 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.561e-05/0.2486, allocations: 7.438 kB / 1.058 GB, free: 2.461 MB / 0.8106 GB Notification: Performance of SimCode: time 3.71e-07/0.2486, allocations: 4 kB / 1.058 GB, free: 2.457 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.261/1.51, allocations: 1.294 MB / 1.059 GB, free: 1.328 MB / 0.8106 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002863/1.51, allocations: 223.8 kB / 1.06 GB, free: 1.07 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.048/3.558, allocations: 0 / 1.06 GB, free: 1.07 MB / 0.8106 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) Reference file matches