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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001401/0.001401, allocations: 110.4 kB / 18.94 MB, free: 2.949 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001554/0.001554, allocations: 218.3 kB / 22.26 MB, free: 5.125 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.556/1.556, allocations: 230.6 MB / 256 MB, free: 7.961 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.356/3.356, allocations: 0.505 GB / 0.8101 GB, free: 22 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002015/0.002015, allocations: 67.42 kB / 1.177 GB, free: 17.04 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.355/0.357, allocations: 180.2 MB / 1.353 GB, free: 8.426 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger): time 0.00194/0.359, allocations: 0.6308 MB / 1.353 GB, free: 7.797 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001047/0.36, allocations: 0.8514 MB / 1.354 GB, free: 6.934 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.607e-05/0.36, allocations: 4 kB / 1.354 GB, free: 6.93 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 2.574e-05/0.3601, allocations: 3.938 kB / 1.354 GB, free: 6.926 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 5.804e-05/0.3601, allocations: 3.938 kB / 1.354 GB, free: 6.922 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001425/0.3603, allocations: 19.97 kB / 1.354 GB, free: 6.902 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 6.985e-05/0.3603, allocations: 27.92 kB / 1.354 GB, free: 6.875 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 8.881e-05/0.3604, allocations: 4 kB / 1.354 GB, free: 6.871 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 6.613e-05/0.3605, allocations: 15.92 kB / 1.354 GB, free: 6.855 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 4.859e-05/0.3605, allocations: 8 kB / 1.354 GB, free: 6.848 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 1.623e-05/0.3606, allocations: 4 kB / 1.354 GB, free: 6.844 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 7.895e-06/0.3606, allocations: 0 / 1.354 GB, free: 6.844 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 1.877e-05/0.3606, allocations: 15.91 kB / 1.354 GB, free: 6.828 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 2.6e-05/0.3606, allocations: 7.938 kB / 1.354 GB, free: 6.82 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 8.627e-05/0.3607, allocations: 24.19 kB / 1.354 GB, free: 6.797 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.3607, allocations: 0 / 1.354 GB, free: 6.797 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.282e-06/0.3607, allocations: 0 / 1.354 GB, free: 6.797 MB / 1.045 GB Notification: Performance of Transformations before backend: time 5.159e-06/0.3607, allocations: 4 kB / 1.354 GB, free: 6.793 MB / 1.045 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.0004714/0.3612, allocations: 266.3 kB / 1.355 GB, free: 6.5 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 3.94e-05/0.3612, allocations: 8.031 kB / 1.355 GB, free: 6.492 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.617e-05/0.3613, allocations: 34.75 kB / 1.355 GB, free: 6.449 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.282e-05/0.3613, allocations: 0.9375 kB / 1.355 GB, free: 6.449 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001321/0.3614, allocations: 110.4 kB / 1.355 GB, free: 6.316 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.542e-05/0.3615, allocations: 4.375 kB / 1.355 GB, free: 6.312 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.947e-06/0.3615, allocations: 384 / 1.355 GB, free: 6.312 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001952/0.3617, allocations: 58.17 kB / 1.355 GB, free: 6.25 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.031e-05/0.3617, allocations: 3.938 kB / 1.355 GB, free: 6.246 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.061e-05/0.3617, allocations: 4 kB / 1.355 GB, free: 6.242 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.196e-06/0.3617, allocations: 3.984 kB / 1.355 GB, free: 6.238 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001868/0.3619, allocations: 31.97 kB / 1.355 GB, free: 6.207 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004299/0.3623, allocations: 220 kB / 1.355 GB, free: 5.949 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001623/0.3625, allocations: 50.42 kB / 1.355 GB, free: 5.891 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.757e-05/0.3626, allocations: 20.91 kB / 1.355 GB, free: 5.867 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 1.562e-05/0.3626, allocations: 7.938 kB / 1.355 GB, free: 5.859 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.917e-05/0.3626, allocations: 30.56 kB / 1.355 GB, free: 5.82 MB / 1.045 GB Notification: Performance of pre-optimization done (n=2): time 1.132e-06/0.3626, allocations: 0 / 1.355 GB, free: 5.82 MB / 1.045 GB Notification: Performance of matching and sorting (n=2): time 0.0003843/0.363, allocations: 85.64 kB / 1.355 GB, free: 5.73 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.082e-05/0.363, allocations: 55.34 kB / 1.355 GB, free: 5.664 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.009e-05/0.3631, allocations: 109.8 kB / 1.355 GB, free: 5.547 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 1.597e-05/0.3631, allocations: 25.7 kB / 1.356 GB, free: 5.516 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 5.78e-05/0.3632, allocations: 88.12 kB / 1.356 GB, free: 5.426 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 1.605e-05/0.3632, allocations: 3.953 kB / 1.356 GB, free: 5.422 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.414e-05/0.3632, allocations: 17.83 kB / 1.356 GB, free: 5.398 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.000138/0.3634, allocations: 314.8 kB / 1.356 GB, free: 5.082 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.641e-05/0.3635, allocations: 15.98 kB / 1.356 GB, free: 5.066 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.738e-05/0.3635, allocations: 23.97 kB / 1.356 GB, free: 5.043 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001633/0.3637, allocations: 36.83 kB / 1.356 GB, free: 5.004 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.14e-06/0.3637, allocations: 8 kB / 1.356 GB, free: 4.996 MB / 1.045 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002025/0.3639, allocations: 69.59 kB / 1.356 GB, free: 4.922 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.279e-05/0.3639, allocations: 4 kB / 1.356 GB, free: 4.918 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.977e-06/0.3639, allocations: 0 / 1.356 GB, free: 4.918 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.415e-05/0.364, allocations: 4 kB / 1.356 GB, free: 4.914 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.834e-05/0.364, allocations: 11.98 kB / 1.356 GB, free: 4.902 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.909e-06/0.3641, allocations: 0 / 1.356 GB, free: 4.902 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.707e-05/0.3641, allocations: 11.98 kB / 1.356 GB, free: 4.891 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.809e-06/0.3641, allocations: 4.031 kB / 1.356 GB, free: 4.887 MB / 1.045 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 9.216e-05/0.3642, allocations: 117.7 kB / 1.356 GB, free: 4.762 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.489e-05/0.3642, allocations: 3.953 kB / 1.356 GB, free: 4.758 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.444e-05/0.3642, allocations: 3.312 kB / 1.356 GB, free: 4.758 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.617e-06/0.3643, allocations: 4 kB / 1.356 GB, free: 4.754 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.467e-06/0.3643, allocations: 0 / 1.356 GB, free: 4.754 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.004e-06/0.3643, allocations: 3.938 kB / 1.356 GB, free: 4.75 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001608/0.3644, allocations: 140.6 kB / 1.356 GB, free: 4.57 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.41e-07/0.3644, allocations: 0 / 1.356 GB, free: 4.57 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.172e-05/0.3645, allocations: 15.98 kB / 1.356 GB, free: 4.555 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.493e-06/0.3645, allocations: 0 / 1.356 GB, free: 4.555 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.522e-06/0.3645, allocations: 0 / 1.356 GB, free: 4.555 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.22e-07/0.3645, allocations: 0 / 1.356 GB, free: 4.555 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.31e-07/0.3645, allocations: 0 / 1.356 GB, free: 4.555 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002743/0.3648, allocations: 171.4 kB / 1.357 GB, free: 4.371 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 8.306e-06/0.3648, allocations: 4 kB / 1.357 GB, free: 4.367 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.482e-05/0.3648, allocations: 3.984 kB / 1.357 GB, free: 4.363 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.093e-05/0.3649, allocations: 4 kB / 1.357 GB, free: 4.359 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.348e-05/0.3649, allocations: 7.984 kB / 1.357 GB, free: 4.352 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.406e-06/0.3649, allocations: 4 kB / 1.357 GB, free: 4.348 MB / 1.045 GB Notification: Performance of sorting global known variables: time 5.105e-05/0.365, allocations: 83.22 kB / 1.357 GB, free: 4.266 MB / 1.045 GB Notification: Performance of sort global known variables: time 7e-08/0.365, allocations: 0 / 1.357 GB, free: 4.266 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.000216/0.3652, allocations: 4 kB / 1.357 GB, free: 4.262 MB / 1.045 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.000626/0.3658, allocations: 0.7045 MB / 1.357 GB, free: 3.527 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.000229/0.366, allocations: 43.98 kB / 1.357 GB, free: 3.484 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 2.043e-06/0.366, allocations: 0 / 1.357 GB, free: 3.484 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 9.382e-05/0.3661, allocations: 19.98 kB / 1.357 GB, free: 3.465 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003026/0.3664, allocations: 4 kB / 1.357 GB, free: 3.461 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004671/0.3669, allocations: 135.3 kB / 1.358 GB, free: 3.289 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003371/0.3672, allocations: 0.6729 MB / 1.358 GB, free: 2.59 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 3.306e-05/0.3673, allocations: 8.109 kB / 1.358 GB, free: 2.582 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.479e-05/0.3673, allocations: 15.44 kB / 1.358 GB, free: 2.566 MB / 1.045 GB Notification: Performance of SimCode: time 4e-07/0.3673, allocations: 0 / 1.358 GB, free: 2.566 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02815/0.3955, allocations: 1.57 MB / 1.36 GB, free: 1.125 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.13/11.52, allocations: 5.641 kB / 1.36 GB, free: 1.125 MB / 1.045 GB " [Timeout remaining time 288] (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 --stepSize=0.0004 --timeout=800 --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) [Timeout 840.0] 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) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.527973691001534]