Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001366/0.001366, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.002067/0.002067, allocations: 210.5 kB / 22.24 MB, free: 5.262 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.514/1.514, allocations: 230.6 MB / 256 MB, free: 7.734 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.193/3.193, allocations: 0.4892 GB / 0.7943 GB, free: 35.66 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/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_12_Buildings_Controls_OBC_CDL_Conversions_Validation_RealToInteger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger,fileNamePrefix="Buildings_12_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.002184/0.002184, allocations: 66.92 kB / 1.153 GB, free: 25.82 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3439/0.3461, allocations: 176.1 MB / 1.325 GB, free: 2.438 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger): time 0.001805/0.3479, allocations: 0.625 MB / 1.326 GB, free: 1.82 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001049/0.349, allocations: 0.8436 MB / 1.326 GB, free: 0.9648 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.952e-05/0.349, allocations: 4 kB / 1.326 GB, free: 0.9609 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 2.171e-05/0.349, allocations: 3.938 kB / 1.326 GB, free: 0.957 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 5.789e-05/0.3491, allocations: 11.92 kB / 1.327 GB, free: 0.9453 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001281/0.3492, allocations: 15.98 kB / 1.327 GB, free: 0.9297 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 6.847e-05/0.3493, allocations: 23.92 kB / 1.327 GB, free: 0.9062 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 7.759e-05/0.3494, allocations: 4 kB / 1.327 GB, free: 0.9023 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 5.769e-05/0.3494, allocations: 11.98 kB / 1.327 GB, free: 0.8906 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 4.971e-05/0.3495, allocations: 19.91 kB / 1.327 GB, free: 0.8711 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 1.38e-05/0.3495, allocations: 0 / 1.327 GB, free: 0.8711 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 8.095e-06/0.3495, allocations: 4 kB / 1.327 GB, free: 0.8672 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 1.222e-05/0.3495, allocations: 4 kB / 1.327 GB, free: 0.8633 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 2.523e-05/0.3495, allocations: 11.94 kB / 1.327 GB, free: 0.8516 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 7.514e-05/0.3496, allocations: 24.17 kB / 1.327 GB, free: 0.8281 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.3496, allocations: 3.938 kB / 1.327 GB, free: 0.8242 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.333e-06/0.3496, allocations: 3.938 kB / 1.327 GB, free: 0.8203 MB / 1.014 GB Notification: Performance of Transformations before backend: time 4.779e-06/0.3496, allocations: 3.938 kB / 1.327 GB, free: 0.8164 MB / 1.014 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.0004275/0.35, allocations: 262.3 kB / 1.327 GB, free: 0.5273 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.377e-05/0.3501, allocations: 8.031 kB / 1.327 GB, free: 0.5195 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.557e-05/0.3501, allocations: 30.75 kB / 1.327 GB, free: 492 kB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.284e-05/0.3501, allocations: 8.938 kB / 1.327 GB, free: 484 kB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001006/0.3502, allocations: 114.5 kB / 1.327 GB, free: 344 kB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.042e-05/0.3503, allocations: 4.375 kB / 1.327 GB, free: 340 kB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.015e-06/0.3503, allocations: 384 / 1.327 GB, free: 340 kB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001804/0.3504, allocations: 54.22 kB / 1.327 GB, free: 280 kB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.059e-05/0.3505, allocations: 3.938 kB / 1.327 GB, free: 276 kB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.664e-06/0.3505, allocations: 0 / 1.327 GB, free: 276 kB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.018e-06/0.3505, allocations: 0 / 1.327 GB, free: 276 kB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001834/0.3507, allocations: 39.89 kB / 1.327 GB, free: 236 kB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003639/0.351, allocations: 228 kB / 1.327 GB, free: 15.96 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001403/0.3512, allocations: 38.5 kB / 1.327 GB, free: 15.92 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.69e-05/0.3513, allocations: 24.89 kB / 1.327 GB, free: 15.89 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.486e-05/0.3513, allocations: 0 / 1.327 GB, free: 15.89 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.875e-05/0.3513, allocations: 34.56 kB / 1.327 GB, free: 15.85 MB / 1.029 GB Notification: Performance of pre-optimization done (n=2): time 8.51e-07/0.3513, allocations: 0 / 1.327 GB, free: 15.85 MB / 1.029 GB Notification: Performance of matching and sorting (n=2): time 0.0003734/0.3517, allocations: 89.58 kB / 1.328 GB, free: 15.75 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.559e-05/0.3517, allocations: 55.41 kB / 1.328 GB, free: 15.69 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.267e-05/0.3518, allocations: 97.84 kB / 1.328 GB, free: 15.58 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 1.731e-05/0.3518, allocations: 25.7 kB / 1.328 GB, free: 15.55 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 4.691e-05/0.3519, allocations: 84.14 kB / 1.328 GB, free: 15.46 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 1.835e-05/0.3519, allocations: 7.953 kB / 1.328 GB, free: 15.46 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.299e-05/0.3519, allocations: 9.719 kB / 1.328 GB, free: 15.44 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001456/0.3521, allocations: 318.8 kB / 1.328 GB, free: 15.12 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001033/0.3522, allocations: 15.97 kB / 1.328 GB, free: 15.11 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.185e-05/0.3522, allocations: 24.11 kB / 1.328 GB, free: 15.08 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001675/0.3524, allocations: 44.75 kB / 1.328 GB, free: 15.04 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.456e-06/0.3524, allocations: 3.938 kB / 1.328 GB, free: 15.03 MB / 1.029 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002109/0.3526, allocations: 69.66 kB / 1.328 GB, free: 14.96 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.425e-05/0.3526, allocations: 4 kB / 1.328 GB, free: 14.95 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.757e-06/0.3526, allocations: 4.094 kB / 1.328 GB, free: 14.95 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.099e-05/0.3527, allocations: 0 / 1.328 GB, free: 14.95 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.705e-05/0.3528, allocations: 11.98 kB / 1.328 GB, free: 14.94 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.087e-06/0.3528, allocations: 3.938 kB / 1.328 GB, free: 14.93 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.258e-05/0.3528, allocations: 4 kB / 1.328 GB, free: 14.93 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.889e-06/0.3528, allocations: 0 / 1.328 GB, free: 14.93 MB / 1.029 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.43e-05/0.3529, allocations: 118.3 kB / 1.328 GB, free: 14.8 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.47e-05/0.3529, allocations: 3.953 kB / 1.328 GB, free: 14.8 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.436e-05/0.353, allocations: 11.25 kB / 1.328 GB, free: 14.79 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.653e-06/0.353, allocations: 4 kB / 1.328 GB, free: 14.78 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.058e-06/0.353, allocations: 0 / 1.328 GB, free: 14.78 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.194e-06/0.353, allocations: 4 kB / 1.328 GB, free: 14.78 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001697/0.3531, allocations: 136.6 kB / 1.329 GB, free: 14.6 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.001e-06/0.3531, allocations: 0 / 1.329 GB, free: 14.6 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.489e-05/0.3532, allocations: 15.92 kB / 1.329 GB, free: 14.59 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.583e-06/0.3532, allocations: 0 / 1.329 GB, free: 14.59 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.502e-06/0.3532, allocations: 0 / 1.329 GB, free: 14.59 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.3532, allocations: 0 / 1.329 GB, free: 14.59 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.3532, allocations: 0 / 1.329 GB, free: 14.59 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002667/0.3535, allocations: 167.5 kB / 1.329 GB, free: 14.41 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 5.902e-06/0.3535, allocations: 4.188 kB / 1.329 GB, free: 14.4 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.153e-05/0.3535, allocations: 0 / 1.329 GB, free: 14.4 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.77e-05/0.3536, allocations: 11.97 kB / 1.329 GB, free: 14.39 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.844e-05/0.3537, allocations: 11.98 kB / 1.329 GB, free: 14.38 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.446e-06/0.3537, allocations: 0 / 1.329 GB, free: 14.38 MB / 1.029 GB Notification: Performance of sorting global known variables: time 4.296e-05/0.3537, allocations: 79.28 kB / 1.329 GB, free: 14.3 MB / 1.029 GB Notification: Performance of sort global known variables: time 6e-08/0.3537, allocations: 0 / 1.329 GB, free: 14.3 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002181/0.3539, allocations: 4 kB / 1.329 GB, free: 14.3 MB / 1.029 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.000586/0.3545, allocations: 0.7007 MB / 1.33 GB, free: 13.57 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0002172/0.3547, allocations: 43.95 kB / 1.33 GB, free: 13.52 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.3547, allocations: 0 / 1.33 GB, free: 13.52 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 9.824e-05/0.3548, allocations: 28.02 kB / 1.33 GB, free: 13.5 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002762/0.3551, allocations: 7.766 kB / 1.33 GB, free: 13.49 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004276/0.3555, allocations: 135.3 kB / 1.33 GB, free: 13.32 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.691e-05/0.3556, allocations: 55.36 kB / 1.33 GB, free: 13.25 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 3.387e-05/0.3556, allocations: 7.984 kB / 1.33 GB, free: 13.24 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.928e-05/0.3557, allocations: 11.44 kB / 1.33 GB, free: 13.23 MB / 1.029 GB Notification: Performance of SimCode: time 3.21e-07/0.3557, allocations: 3.938 kB / 1.33 GB, free: 13.22 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02785/0.3835, allocations: 1.982 MB / 1.332 GB, free: 11.38 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.15/11.53, allocations: 15.92 kB / 1.332 GB, free: 11.36 MB / 1.029 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger_res.mat --tempDir=temp_Buildings_12_Buildings_Controls_OBC_CDL_Conversions_Validation_RealToInteger_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Controls_OBC_CDL_Conversions_Validation_RealToInteger.fmu > Buildings_12_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Conversions_Validation_RealToInteger.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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.302773491945118]