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.00115/0.00115, allocations: 108 kB / 15.61 MB, free: 128 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.001129/0.001129, allocations: 197.5 kB / 16.53 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.197/1.197, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.383/2.383, allocations: 461.9 MB / 0.7346 GB, free: 14.82 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001239/0.001239, allocations: 64.06 kB / 0.8992 GB, free: 37.02 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2466/0.2478, allocations: 157.4 MB / 1.053 GB, free: 8.348 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger): time 0.001752/0.2496, allocations: 0.6172 MB / 1.054 GB, free: 7.73 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0008/0.2504, allocations: 0.8312 MB / 1.054 GB, free: 6.887 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.738e-05/0.2505, allocations: 0 / 1.054 GB, free: 6.887 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.356e-05/0.2505, allocations: 0 / 1.054 GB, free: 6.887 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 4.914e-05/0.2506, allocations: 3.938 kB / 1.054 GB, free: 6.883 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001193/0.2507, allocations: 11.98 kB / 1.054 GB, free: 6.871 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 5.728e-05/0.2508, allocations: 31.91 kB / 1.054 GB, free: 6.84 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 8.224e-05/0.2509, allocations: 12 kB / 1.054 GB, free: 6.828 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 5.214e-05/0.2509, allocations: 7.938 kB / 1.054 GB, free: 6.82 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 4.042e-05/0.251, allocations: 11.98 kB / 1.054 GB, free: 6.809 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.605e-05/0.251, allocations: 3.938 kB / 1.054 GB, free: 6.805 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 1.015e-05/0.251, allocations: 4 kB / 1.054 GB, free: 6.801 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.038e-05/0.251, allocations: 11.92 kB / 1.054 GB, free: 6.789 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 2.557e-05/0.2511, allocations: 11.98 kB / 1.054 GB, free: 6.777 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 6.361e-05/0.2511, allocations: 23.91 kB / 1.054 GB, free: 6.754 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.145e-06/0.2511, allocations: 0 / 1.054 GB, free: 6.754 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.122e-06/0.2511, allocations: 0 / 1.054 GB, free: 6.754 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.717e-06/0.2512, allocations: 4 kB / 1.054 GB, free: 6.75 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.0003879/0.2515, allocations: 335.8 kB / 1.055 GB, free: 6.371 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.374e-05/0.2516, allocations: 12.62 kB / 1.055 GB, free: 6.359 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.544e-05/0.2516, allocations: 34.75 kB / 1.055 GB, free: 6.316 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.18e-05/0.2517, allocations: 4.844 kB / 1.055 GB, free: 6.312 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.529e-05/0.2518, allocations: 168.3 kB / 1.055 GB, free: 6.109 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.685e-05/0.2518, allocations: 384 / 1.055 GB, free: 6.109 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.716e-06/0.2518, allocations: 4.375 kB / 1.055 GB, free: 6.105 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001651/0.252, allocations: 58.22 kB / 1.055 GB, free: 6.043 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.156e-06/0.252, allocations: 3.938 kB / 1.055 GB, free: 6.039 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.364e-06/0.252, allocations: 0 / 1.055 GB, free: 6.039 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.342e-06/0.252, allocations: 4 kB / 1.055 GB, free: 6.035 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001633/0.2522, allocations: 35.91 kB / 1.055 GB, free: 6 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002867/0.2525, allocations: 249 kB / 1.055 GB, free: 5.707 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001261/0.2526, allocations: 50.42 kB / 1.055 GB, free: 5.648 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.346e-05/0.2527, allocations: 24.91 kB / 1.055 GB, free: 5.621 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 9.699e-06/0.2527, allocations: 0 / 1.055 GB, free: 5.621 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.053e-05/0.2527, allocations: 30.56 kB / 1.055 GB, free: 5.582 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=2): time 8.01e-07/0.2527, allocations: 0 / 1.055 GB, free: 5.582 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2): time 0.0003311/0.2531, allocations: 89.62 kB / 1.056 GB, free: 5.488 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.026e-05/0.2531, allocations: 59.34 kB / 1.056 GB, free: 5.418 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.576e-05/0.2532, allocations: 97.86 kB / 1.056 GB, free: 5.312 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.237e-05/0.2532, allocations: 25.7 kB / 1.056 GB, free: 5.281 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 3.417e-05/0.2532, allocations: 88.05 kB / 1.056 GB, free: 5.191 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.494e-05/0.2533, allocations: 3.984 kB / 1.056 GB, free: 5.188 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.92e-05/0.2533, allocations: 17.84 kB / 1.056 GB, free: 5.164 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 8.955e-05/0.2534, allocations: 314.8 kB / 1.056 GB, free: 4.848 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.997e-05/0.2535, allocations: 15.98 kB / 1.056 GB, free: 4.832 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.286e-05/0.2536, allocations: 19.97 kB / 1.056 GB, free: 4.812 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001498/0.2537, allocations: 36.83 kB / 1.056 GB, free: 4.773 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.514e-06/0.2537, allocations: 8 kB / 1.056 GB, free: 4.766 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001888/0.2539, allocations: 69.59 kB / 1.056 GB, free: 4.691 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.354e-05/0.2539, allocations: 8 kB / 1.056 GB, free: 4.684 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.908e-06/0.2539, allocations: 0 / 1.056 GB, free: 4.684 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.232e-05/0.254, allocations: 3.984 kB / 1.056 GB, free: 4.68 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.854e-05/0.2541, allocations: 11.94 kB / 1.056 GB, free: 4.668 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.138e-06/0.2541, allocations: 4 kB / 1.056 GB, free: 4.664 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.32e-05/0.2541, allocations: 15.92 kB / 1.056 GB, free: 4.648 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.428e-06/0.2541, allocations: 0 / 1.056 GB, free: 4.648 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.022e-05/0.2542, allocations: 111.3 kB / 1.056 GB, free: 4.531 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.376e-05/0.2542, allocations: 4 kB / 1.056 GB, free: 4.527 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.595e-05/0.2542, allocations: 11.11 kB / 1.056 GB, free: 4.52 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.683e-06/0.2543, allocations: 0 / 1.056 GB, free: 4.52 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.915e-06/0.2543, allocations: 0 / 1.056 GB, free: 4.52 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.964e-06/0.2543, allocations: 0 / 1.056 GB, free: 4.52 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001344/0.2544, allocations: 161.6 kB / 1.057 GB, free: 4.312 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.92e-07/0.2544, allocations: 4 kB / 1.057 GB, free: 4.309 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.919e-05/0.2545, allocations: 11.98 kB / 1.057 GB, free: 4.297 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/0.2545, allocations: 3.938 kB / 1.057 GB, free: 4.293 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.192e-06/0.2545, allocations: 0 / 1.057 GB, free: 4.293 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.745e-06/0.2545, allocations: 4 kB / 1.057 GB, free: 4.289 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.72e-07/0.2545, allocations: 0 / 1.057 GB, free: 4.289 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002306/0.2547, allocations: 179.4 kB / 1.057 GB, free: 4.098 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 2.772e-05/0.2548, allocations: 77.11 kB / 1.057 GB, free: 4.004 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.117e-05/0.2548, allocations: 0 / 1.057 GB, free: 4.004 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.855e-05/0.2549, allocations: 7.984 kB / 1.057 GB, free: 3.996 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4e-05/0.2549, allocations: 8 kB / 1.057 GB, free: 3.988 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.136e-06/0.2549, allocations: 0 / 1.057 GB, free: 3.988 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 3.439e-05/0.255, allocations: 83.27 kB / 1.057 GB, free: 3.906 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1e-07/0.255, allocations: 0 / 1.057 GB, free: 3.906 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002012/0.2552, allocations: 4 kB / 1.057 GB, free: 3.902 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.0004742/0.2557, allocations: 0.7045 MB / 1.058 GB, free: 3.168 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.000201/0.2559, allocations: 43.98 kB / 1.058 GB, free: 3.125 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.442e-06/0.2559, allocations: 0 / 1.058 GB, free: 3.125 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 8.644e-05/0.256, allocations: 23.98 kB / 1.058 GB, free: 3.102 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002412/0.2562, allocations: 9.484 kB / 1.058 GB, free: 3.094 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003644/0.2566, allocations: 133.2 kB / 1.058 GB, free: 2.926 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000189/0.2568, allocations: 0.6769 MB / 1.058 GB, free: 2.223 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 2.685e-05/0.2568, allocations: 8 kB / 1.058 GB, free: 2.215 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.516e-05/0.2569, allocations: 11.44 kB / 1.058 GB, free: 2.203 MB / 0.8106 GB Notification: Performance of SimCode: time 2.31e-07/0.2569, allocations: 3.938 kB / 1.058 GB, free: 2.199 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7246/0.9815, allocations: 1.431 MB / 1.06 GB, free: 0.8828 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.255/9.236, allocations: 8.734 kB / 1.06 GB, free: 0.8789 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