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.001909/0.001909, allocations: 79.73 kB / 19.76 MB, free: 1.871 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.002276/0.002276, allocations: 156 kB / 23.01 MB, free: 4.602 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.504/1.504, allocations: 177.2 MB / 203.4 MB, free: 8.953 MB / 190.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 2.898/2.898, allocations: 394.2 MB / 0.6387 GB, free: 11.96 MB / 0.6075 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: translateModel(Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|reaToInt.u|reaToInt.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger") translateModel(Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|reaToInt.u|reaToInt.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger") [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.003085/0.003085, allocations: 63.91 kB / 1.009 GB, free: 14.55 MB / 0.9669 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.219/1.222, allocations: 181.8 MB / 1.187 GB, free: 16.21 MB / 1.076 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger): time 0.001796/1.224, allocations: 0.6316 MB / 1.187 GB, free: 15.82 MB / 1.076 GB Notification: Performance of NFInst.instExpressions: time 0.0008285/1.225, allocations: 0.8481 MB / 1.188 GB, free: 15.18 MB / 1.076 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.005e-05/1.225, allocations: 0 / 1.188 GB, free: 15.18 MB / 1.076 GB Notification: Performance of NFTyping.typeComponents: time 2.121e-05/1.225, allocations: 0.8438 kB / 1.188 GB, free: 15.18 MB / 1.076 GB Notification: Performance of NFTyping.typeBindings: time 5.269e-05/1.225, allocations: 13.2 kB / 1.188 GB, free: 15.17 MB / 1.076 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001305/1.225, allocations: 10.52 kB / 1.188 GB, free: 15.17 MB / 1.076 GB Notification: Performance of NFFlatten.flatten: time 6.608e-05/1.225, allocations: 27.61 kB / 1.188 GB, free: 15.16 MB / 1.076 GB Notification: Performance of NFFlatten.resolveConnections: time 8.804e-05/1.225, allocations: 2.328 kB / 1.188 GB, free: 15.16 MB / 1.076 GB Notification: Performance of NFEvalConstants.evaluate: time 7.087e-05/1.225, allocations: 15.28 kB / 1.188 GB, free: 15.15 MB / 1.076 GB Notification: Performance of NFSimplifyModel.simplify: time 4.636e-05/1.225, allocations: 14.36 kB / 1.188 GB, free: 15.14 MB / 1.076 GB Notification: Performance of NFPackage.collectConstants: time 1.914e-05/1.225, allocations: 2.625 kB / 1.188 GB, free: 15.14 MB / 1.076 GB Notification: Performance of NFFlatten.collectFunctions: time 8.526e-06/1.225, allocations: 1.688 kB / 1.188 GB, free: 15.14 MB / 1.076 GB Notification: Performance of NFScalarize.scalarize: time 1.57e-05/1.225, allocations: 2.5 kB / 1.188 GB, free: 15.14 MB / 1.076 GB Notification: Performance of NFVerifyModel.verify: time 2.453e-05/1.225, allocations: 14.7 kB / 1.188 GB, free: 15.13 MB / 1.076 GB Notification: Performance of NFConvertDAE.convert: time 7.579e-05/1.225, allocations: 26.88 kB / 1.188 GB, free: 15.12 MB / 1.076 GB Notification: Performance of FrontEnd - DAE generated: time 3.406e-06/1.225, allocations: 4 kB / 1.188 GB, free: 15.12 MB / 1.076 GB Notification: Performance of FrontEnd: time 2.475e-06/1.225, allocations: 6.297 kB / 1.188 GB, free: 15.11 MB / 1.076 GB Notification: Performance of Transformations before backend: time 4.429e-06/1.225, allocations: 0 / 1.188 GB, free: 15.11 MB / 1.076 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.0003549/1.226, allocations: 255.5 kB / 1.188 GB, free: 14.86 MB / 1.076 GB Notification: Performance of prepare preOptimizeDAE: time 2.984e-05/1.226, allocations: 10.41 kB / 1.188 GB, free: 14.86 MB / 1.076 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.589e-05/1.226, allocations: 6.641 kB / 1.188 GB, free: 14.85 MB / 1.076 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.328e-05/1.226, allocations: 109.4 kB / 1.189 GB, free: 14.72 MB / 1.076 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.849e-05/1.226, allocations: 1.719 kB / 1.189 GB, free: 14.72 MB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.188e-05/1.226, allocations: 1.688 kB / 1.189 GB, free: 14.72 MB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001705/1.226, allocations: 55.41 kB / 1.189 GB, free: 14.68 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.228e-05/1.226, allocations: 1.344 kB / 1.189 GB, free: 14.68 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.156e-06/1.226, allocations: 3.938 kB / 1.189 GB, free: 14.68 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.879e-06/1.226, allocations: 1.625 kB / 1.189 GB, free: 14.68 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001763/1.226, allocations: 34.11 kB / 1.189 GB, free: 14.68 MB / 1.076 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002517/1.227, allocations: 201.1 kB / 1.189 GB, free: 14.46 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001357/1.227, allocations: 41.94 kB / 1.189 GB, free: 14.43 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.967e-05/1.227, allocations: 27.97 kB / 1.189 GB, free: 14.42 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 1.755e-05/1.227, allocations: 5.922 kB / 1.189 GB, free: 14.41 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.495e-05/1.227, allocations: 31.94 kB / 1.189 GB, free: 14.38 MB / 1.076 GB Notification: Performance of pre-optimization done (n=2): time 9.52e-07/1.227, allocations: 0 / 1.189 GB, free: 14.38 MB / 1.076 GB Notification: Performance of matching and sorting (n=2): time 0.0003562/1.227, allocations: 87.47 kB / 1.189 GB, free: 14.33 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.987e-05/1.227, allocations: 53.44 kB / 1.189 GB, free: 14.27 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.367e-05/1.227, allocations: 104.1 kB / 1.189 GB, free: 14.16 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 6.693e-06/1.227, allocations: 31.08 kB / 1.189 GB, free: 14.13 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 2.231e-05/1.227, allocations: 90.77 kB / 1.189 GB, free: 14.04 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 1.343e-05/1.227, allocations: 0 / 1.189 GB, free: 14.04 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.946e-05/1.227, allocations: 13.83 kB / 1.189 GB, free: 14.02 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 3.648e-05/1.227, allocations: 316.9 kB / 1.19 GB, free: 13.71 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.05e-05/1.228, allocations: 18.92 kB / 1.19 GB, free: 13.7 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.997e-05/1.228, allocations: 20.44 kB / 1.19 GB, free: 13.7 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001653/1.228, allocations: 42.81 kB / 1.19 GB, free: 13.68 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/1.228, allocations: 1.375 kB / 1.19 GB, free: 13.68 MB / 1.076 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002027/1.228, allocations: 76.02 kB / 1.19 GB, free: 13.64 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 1.344e-05/1.228, allocations: 5.75 kB / 1.19 GB, free: 13.64 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.326e-06/1.228, allocations: 0.8438 kB / 1.19 GB, free: 13.64 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.254e-05/1.228, allocations: 0 / 1.19 GB, free: 13.64 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.751e-05/1.228, allocations: 10.77 kB / 1.19 GB, free: 13.64 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.238e-06/1.228, allocations: 4.031 kB / 1.19 GB, free: 13.63 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.604e-05/1.228, allocations: 9.953 kB / 1.19 GB, free: 13.63 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.42e-06/1.228, allocations: 1.578 kB / 1.19 GB, free: 13.63 MB / 1.076 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 4.288e-05/1.228, allocations: 112.7 kB / 1.19 GB, free: 13.51 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.35e-05/1.228, allocations: 6.156 kB / 1.19 GB, free: 13.51 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.651e-05/1.228, allocations: 4.25 kB / 1.19 GB, free: 13.5 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-06/1.228, allocations: 0.7188 kB / 1.19 GB, free: 13.5 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.057e-06/1.228, allocations: 1.734 kB / 1.19 GB, free: 13.5 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.933e-06/1.228, allocations: 0 / 1.19 GB, free: 13.5 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.476e-05/1.228, allocations: 105.1 kB / 1.19 GB, free: 13.38 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/1.228, allocations: 4 kB / 1.19 GB, free: 13.37 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.059e-05/1.228, allocations: 8.969 kB / 1.19 GB, free: 13.37 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.526e-06/1.228, allocations: 9.469 kB / 1.19 GB, free: 13.36 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.074e-06/1.228, allocations: 1.125 kB / 1.19 GB, free: 13.36 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.654e-06/1.228, allocations: 4.688 kB / 1.19 GB, free: 13.36 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/1.228, allocations: 0 / 1.19 GB, free: 13.36 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002277/1.229, allocations: 162.4 kB / 1.19 GB, free: 13.22 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 7.985e-06/1.229, allocations: 9.5 kB / 1.19 GB, free: 13.21 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.371e-05/1.229, allocations: 5.641 kB / 1.19 GB, free: 13.21 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.681e-05/1.229, allocations: 9.953 kB / 1.19 GB, free: 13.21 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.288e-05/1.229, allocations: 5.047 kB / 1.19 GB, free: 13.21 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.536e-06/1.229, allocations: 1.281 kB / 1.19 GB, free: 13.21 MB / 1.076 GB Notification: Performance of sorting global known variables: time 2.121e-05/1.229, allocations: 84.53 kB / 1.19 GB, free: 13.13 MB / 1.076 GB Notification: Performance of sort global known variables: time 8e-08/1.229, allocations: 0 / 1.19 GB, free: 13.13 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.0002316/1.229, allocations: 5.094 kB / 1.19 GB, free: 13.13 MB / 1.076 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 7.018e-05/1.229, allocations: 93.38 kB / 1.19 GB, free: 13.04 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.0002225/1.229, allocations: 49.66 kB / 1.19 GB, free: 13.02 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/1.229, allocations: 1.406 kB / 1.19 GB, free: 13.02 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 9.555e-05/1.229, allocations: 22.19 kB / 1.19 GB, free: 13.02 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002739/1.23, allocations: 3.484 kB / 1.19 GB, free: 13.02 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002643/1.23, allocations: 109.2 kB / 1.191 GB, free: 12.91 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.963e-05/1.23, allocations: 63.02 kB / 1.191 GB, free: 12.84 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 2.768e-05/1.23, allocations: 6.719 kB / 1.191 GB, free: 12.83 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.95e-05/1.23, allocations: 12.05 kB / 1.191 GB, free: 12.82 MB / 1.076 GB Notification: Performance of SimCode: time 3.21e-07/1.23, allocations: 0 / 1.191 GB, free: 12.82 MB / 1.076 GB Notification: Performance of Templates: time 0.003132/1.233, allocations: 0.6424 MB / 1.191 GB, free: 12.73 MB / 1.076 GB " [Timeout remaining time 299] make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.makefile [Timeout 300] (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 & ./Buildings_latest_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger -abortSlowSimulation -alarm=800 -s ida -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.pipe 2>&1) [Timeout 800] 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: 9.443350270972587]