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.001875/0.001875, allocations: 109.6 kB / 16.46 MB, free: 6.508 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.002539/0.002539, allocations: 213.7 kB / 19.43 MB, free: 3.648 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.46/1.46, allocations: 230.6 MB / 252.8 MB, free: 9.105 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.252/3.252, allocations: 0.49 GB / 0.7916 GB, free: 33.46 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.002151/0.002151, allocations: 74.41 kB / 1.149 GB, free: 26.35 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3692/0.3714, allocations: 176.1 MB / 1.321 GB, free: 3.359 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger): time 0.002013/0.3734, allocations: 0.6297 MB / 1.321 GB, free: 2.73 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001102/0.3745, allocations: 0.8592 MB / 1.322 GB, free: 1.859 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.455e-05/0.3745, allocations: 0 / 1.322 GB, free: 1.859 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 2.786e-05/0.3745, allocations: 3.938 kB / 1.322 GB, free: 1.855 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 6.158e-05/0.3746, allocations: 0 / 1.322 GB, free: 1.855 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001428/0.3747, allocations: 15.92 kB / 1.322 GB, free: 1.84 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 8.207e-05/0.3748, allocations: 23.98 kB / 1.322 GB, free: 1.816 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 9.602e-05/0.3749, allocations: 7.938 kB / 1.322 GB, free: 1.809 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 6.774e-05/0.375, allocations: 15.92 kB / 1.322 GB, free: 1.793 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 5.483e-05/0.375, allocations: 19.91 kB / 1.322 GB, free: 1.773 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 1.553e-05/0.3751, allocations: 0 / 1.322 GB, free: 1.773 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 1.101e-05/0.3751, allocations: 8 kB / 1.322 GB, free: 1.766 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 1.608e-05/0.3751, allocations: 4 kB / 1.322 GB, free: 1.762 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 2.575e-05/0.3751, allocations: 7.938 kB / 1.322 GB, free: 1.754 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 8.952e-05/0.3752, allocations: 28.17 kB / 1.322 GB, free: 1.727 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.3752, allocations: 0 / 1.322 GB, free: 1.727 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.673e-06/0.3752, allocations: 0 / 1.322 GB, free: 1.727 MB / 1.014 GB Notification: Performance of Transformations before backend: time 4.518e-06/0.3752, allocations: 0 / 1.322 GB, free: 1.727 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.000514/0.3757, allocations: 339.5 kB / 1.323 GB, free: 1.344 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 6.089e-05/0.3758, allocations: 11.98 kB / 1.323 GB, free: 1.332 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.924e-05/0.3758, allocations: 34.75 kB / 1.323 GB, free: 1.289 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.19e-05/0.3759, allocations: 4.875 kB / 1.323 GB, free: 1.285 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001515/0.376, allocations: 176.3 kB / 1.323 GB, free: 1.074 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.892e-05/0.376, allocations: 384 / 1.323 GB, free: 1.074 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.827e-06/0.376, allocations: 384 / 1.323 GB, free: 1.074 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001893/0.3762, allocations: 54.17 kB / 1.323 GB, free: 1.016 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.668e-06/0.3762, allocations: 7.938 kB / 1.323 GB, free: 1.008 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.917e-06/0.3762, allocations: 0 / 1.323 GB, free: 1.008 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.058e-06/0.3762, allocations: 0 / 1.323 GB, free: 1.008 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001985/0.3764, allocations: 47.89 kB / 1.323 GB, free: 0.9609 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000373/0.3768, allocations: 245 kB / 1.323 GB, free: 0.6719 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00015/0.377, allocations: 38.5 kB / 1.323 GB, free: 0.625 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001055/0.3771, allocations: 32.83 kB / 1.323 GB, free: 0.5898 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 1.241e-05/0.3771, allocations: 4 kB / 1.323 GB, free: 0.5859 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.495e-05/0.3771, allocations: 30.56 kB / 1.323 GB, free: 0.5469 MB / 1.014 GB Notification: Performance of pre-optimization done (n=2): time 1.243e-06/0.3771, allocations: 0 / 1.323 GB, free: 0.5469 MB / 1.014 GB Notification: Performance of matching and sorting (n=2): time 0.0003966/0.3775, allocations: 81.64 kB / 1.323 GB, free: 472 kB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.053e-05/0.3775, allocations: 55.41 kB / 1.323 GB, free: 404 kB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.809e-05/0.3776, allocations: 106 kB / 1.324 GB, free: 288 kB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 2.412e-05/0.3777, allocations: 25.7 kB / 1.324 GB, free: 256 kB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 4.701e-05/0.3777, allocations: 80.14 kB / 1.324 GB, free: 172 kB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 1.844e-05/0.3777, allocations: 3.953 kB / 1.324 GB, free: 168 kB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.137e-05/0.3778, allocations: 17.72 kB / 1.324 GB, free: 144 kB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001546/0.3779, allocations: 314.8 kB / 1.324 GB, free: 15.82 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001051/0.378, allocations: 23.92 kB / 1.324 GB, free: 15.8 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.308e-05/0.3781, allocations: 15.98 kB / 1.324 GB, free: 15.79 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001819/0.3783, allocations: 48.81 kB / 1.324 GB, free: 15.73 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.979e-06/0.3783, allocations: 3.938 kB / 1.324 GB, free: 15.73 MB / 1.029 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002223/0.3785, allocations: 65.84 kB / 1.324 GB, free: 15.66 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.533e-05/0.3785, allocations: 8 kB / 1.324 GB, free: 15.65 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.478e-06/0.3785, allocations: 4.094 kB / 1.324 GB, free: 15.65 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.973e-05/0.3786, allocations: 3.984 kB / 1.324 GB, free: 15.64 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001074/0.3787, allocations: 7.984 kB / 1.324 GB, free: 15.64 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.225e-06/0.3787, allocations: 4 kB / 1.324 GB, free: 15.63 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.414e-05/0.3787, allocations: 0 / 1.324 GB, free: 15.63 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.305e-06/0.3787, allocations: 11.92 kB / 1.324 GB, free: 15.62 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 0.000101/0.3788, allocations: 113.8 kB / 1.324 GB, free: 15.5 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.669e-05/0.3789, allocations: 7.891 kB / 1.324 GB, free: 15.49 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.504e-05/0.3789, allocations: 11.12 kB / 1.324 GB, free: 15.48 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.914e-06/0.3789, allocations: 0 / 1.324 GB, free: 15.48 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-06/0.3789, allocations: 0 / 1.324 GB, free: 15.48 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.154e-06/0.3789, allocations: 0 / 1.324 GB, free: 15.48 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001899/0.3791, allocations: 165.5 kB / 1.324 GB, free: 15.27 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.91e-07/0.3791, allocations: 0 / 1.324 GB, free: 15.27 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.578e-05/0.3792, allocations: 11.98 kB / 1.324 GB, free: 15.26 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.884e-06/0.3792, allocations: 0 / 1.324 GB, free: 15.26 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.803e-06/0.3792, allocations: 0 / 1.324 GB, free: 15.26 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.3792, allocations: 0 / 1.324 GB, free: 15.26 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.3792, allocations: 4 kB / 1.324 GB, free: 15.25 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003054/0.3795, allocations: 167.5 kB / 1.325 GB, free: 15.07 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 4.571e-05/0.3795, allocations: 77.11 kB / 1.325 GB, free: 14.98 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.317e-05/0.3795, allocations: 3.938 kB / 1.325 GB, free: 14.98 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.091e-05/0.3796, allocations: 15.92 kB / 1.325 GB, free: 14.96 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.52e-05/0.3797, allocations: 12.02 kB / 1.325 GB, free: 14.95 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.829e-06/0.3797, allocations: 0 / 1.325 GB, free: 14.95 MB / 1.029 GB Notification: Performance of sorting global known variables: time 4.925e-05/0.3797, allocations: 83.28 kB / 1.325 GB, free: 14.87 MB / 1.029 GB Notification: Performance of sort global known variables: time 8e-08/0.3797, allocations: 0 / 1.325 GB, free: 14.87 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002245/0.38, allocations: 4 kB / 1.325 GB, free: 14.86 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.0006009/0.3806, allocations: 0.7007 MB / 1.326 GB, free: 14.13 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0002325/0.3808, allocations: 35.91 kB / 1.326 GB, free: 14.1 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.774e-06/0.3808, allocations: 0 / 1.326 GB, free: 14.1 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001025/0.3809, allocations: 23.97 kB / 1.326 GB, free: 14.07 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002985/0.3812, allocations: 12.14 kB / 1.326 GB, free: 14.06 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004916/0.3817, allocations: 142.1 kB / 1.326 GB, free: 13.89 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003165/0.382, allocations: 0.6768 MB / 1.326 GB, free: 13.18 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 3.05e-05/0.382, allocations: 4 kB / 1.326 GB, free: 13.18 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.934e-05/0.3821, allocations: 11.42 kB / 1.326 GB, free: 13.17 MB / 1.029 GB Notification: Performance of SimCode: time 5.01e-07/0.3821, allocations: 0 / 1.326 GB, free: 13.17 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02458/0.4067, allocations: 1.465 MB / 1.328 GB, free: 11.82 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.021/8.428, allocations: 9.188 kB / 1.328 GB, free: 11.81 MB / 1.029 GB " [Timeout remaining time 292] (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: 15.06280415598303]