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.001002/0.001002, allocations: 80.75 kB / 19.94 MB, free: 4.547 MB / 18.57 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.00104/0.00104, allocations: 181 kB / 23.36 MB, free: 1.133 MB / 18.57 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 0.9874/0.9874, allocations: 177.2 MB / 203.8 MB, free: 5.457 MB / 186.7 MB " [Timeout remaining time 179] 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.41/2.41, allocations: 438.8 MB / 0.6827 GB, free: 13.59 MB / 0.6511 GB " [Timeout remaining time 177] Using package Buildings with version 14.1.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: Performance of FrontEnd - loaded program: time 1.483e-06/1.483e-06, allocations: 0 / 0.8386 GB, free: 14.24 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.819e-05/1.968e-05, allocations: 2.312 kB / 0.8386 GB, free: 14.23 MB / 0.8073 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger): time 0.004511/0.00453, allocations: 0.636 MB / 0.8392 GB, free: 13.6 MB / 0.8073 GB Notification: Performance of NFInst.instExpressions: time 0.001063/0.005594, allocations: 0.8664 MB / 0.84 GB, free: 12.72 MB / 0.8073 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.895e-05/0.005623, allocations: 0 / 0.84 GB, free: 12.72 MB / 0.8073 GB Notification: Performance of NFTyping.typeComponents: time 2.433e-05/0.005647, allocations: 0 / 0.84 GB, free: 12.72 MB / 0.8073 GB Notification: Performance of NFTyping.typeBindings: time 6.156e-05/0.005709, allocations: 7.875 kB / 0.84 GB, free: 12.71 MB / 0.8073 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001218/0.00583, allocations: 15.92 kB / 0.84 GB, free: 12.7 MB / 0.8073 GB Notification: Performance of NFFlatten.flatten: time 6.152e-05/0.005892, allocations: 27.92 kB / 0.8401 GB, free: 12.67 MB / 0.8073 GB Notification: Performance of NFFlatten.resolveConnections: time 6.717e-05/0.005959, allocations: 7.984 kB / 0.8401 GB, free: 12.66 MB / 0.8073 GB Notification: Performance of NFEvalConstants.evaluate: time 7.395e-05/0.006033, allocations: 15.98 kB / 0.8401 GB, free: 12.64 MB / 0.8073 GB Notification: Performance of NFSimplifyModel.simplify: time 3.842e-05/0.006072, allocations: 7.984 kB / 0.8401 GB, free: 12.64 MB / 0.8073 GB Notification: Performance of NFPackage.collectConstants: time 2.082e-05/0.006092, allocations: 8 kB / 0.8401 GB, free: 12.63 MB / 0.8073 GB Notification: Performance of NFFlatten.collectFunctions: time 6.483e-06/0.006099, allocations: 0 / 0.8401 GB, free: 12.63 MB / 0.8073 GB Notification: Performance of NFScalarize.scalarize: time 1.775e-05/0.006117, allocations: 7.938 kB / 0.8401 GB, free: 12.62 MB / 0.8073 GB Notification: Performance of NFVerifyModel.verify: time 1.561e-05/0.006132, allocations: 8 kB / 0.8401 GB, free: 12.61 MB / 0.8073 GB Notification: Performance of NFConvertDAE.convert: time 6.727e-05/0.006199, allocations: 19.91 kB / 0.8401 GB, free: 12.59 MB / 0.8073 GB Notification: Performance of FrontEnd - DAE generated: time 2.956e-06/0.006202, allocations: 3.984 kB / 0.8401 GB, free: 12.59 MB / 0.8073 GB Notification: Performance of FrontEnd: time 6.82e-07/0.006203, allocations: 0 / 0.8401 GB, free: 12.59 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 2.675e-06/0.006206, allocations: 0 / 0.8401 GB, free: 12.59 MB / 0.8073 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.0002845/0.00649, allocations: 229 kB / 0.8404 GB, free: 12.34 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.363e-05/0.006524, allocations: 12.03 kB / 0.8404 GB, free: 12.33 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.309e-05/0.006547, allocations: 4.938 kB / 0.8404 GB, free: 12.32 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.79e-05/0.006625, allocations: 117.7 kB / 0.8405 GB, free: 12.18 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.534e-05/0.00664, allocations: 384 / 0.8405 GB, free: 12.18 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.518e-06/0.00665, allocations: 384 / 0.8405 GB, free: 12.18 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001023/0.006752, allocations: 54.94 kB / 0.8405 GB, free: 12.12 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.642e-06/0.006759, allocations: 4.188 kB / 0.8405 GB, free: 12.12 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.424e-06/0.006766, allocations: 384 / 0.8406 GB, free: 12.12 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.581e-06/0.006772, allocations: 384 / 0.8406 GB, free: 12.12 MB / 0.8073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.79e-05/0.0068, allocations: 19.86 kB / 0.8406 GB, free: 12.1 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001936/0.006993, allocations: 144.3 kB / 0.8407 GB, free: 11.94 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 4.503e-05/0.007038, allocations: 26.58 kB / 0.8407 GB, free: 11.91 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.451e-05/0.007053, allocations: 4.859 kB / 0.8407 GB, free: 11.9 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 9.548e-06/0.007062, allocations: 0 / 0.8407 GB, free: 11.9 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.084e-05/0.007083, allocations: 34.62 kB / 0.8408 GB, free: 11.86 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=2): time 5.91e-07/0.007084, allocations: 0 / 0.8408 GB, free: 11.86 MB / 0.8073 GB Notification: Performance of matching and sorting (n=2): time 0.0001124/0.007196, allocations: 45.62 kB / 0.8408 GB, free: 11.8 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.003055/0.01025, allocations: 55.34 kB / 0.8409 GB, free: 11.74 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.531e-05/0.01033, allocations: 110.7 kB / 0.841 GB, free: 11.62 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 1.389e-05/0.01034, allocations: 25.7 kB / 0.841 GB, free: 11.59 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 3.55e-05/0.01038, allocations: 84.27 kB / 0.8411 GB, free: 11.5 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 1.821e-05/0.01039, allocations: 3.953 kB / 0.8411 GB, free: 11.5 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.455e-05/0.01043, allocations: 13.72 kB / 0.8411 GB, free: 11.48 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 9.115e-05/0.01052, allocations: 322.8 kB / 0.8414 GB, free: 11.15 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.26e-05/0.01054, allocations: 4 kB / 0.8414 GB, free: 11.15 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.205e-05/0.01055, allocations: 0 / 0.8414 GB, free: 11.15 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.753e-05/0.01059, allocations: 16.8 kB / 0.8414 GB, free: 11.13 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.01059, allocations: 0 / 0.8414 GB, free: 11.13 MB / 0.8073 GB Notification: Performance of matching and sorting (n=2) (initialization): time 7.369e-05/0.01067, allocations: 41.69 kB / 0.8415 GB, free: 11.08 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.366e-05/0.01068, allocations: 8.094 kB / 0.8415 GB, free: 11.07 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.118e-06/0.01068, allocations: 0 / 0.8415 GB, free: 11.07 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.154e-05/0.0107, allocations: 0 / 0.8415 GB, free: 11.07 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.68e-05/0.01078, allocations: 15.92 kB / 0.8415 GB, free: 11.06 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.915e-06/0.01079, allocations: 0 / 0.8415 GB, free: 11.06 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.663e-05/0.01081, allocations: 0 / 0.8415 GB, free: 11.06 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.272e-06/0.01082, allocations: 4 kB / 0.8415 GB, free: 11.05 MB / 0.8073 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.498e-05/0.01088, allocations: 105.8 kB / 0.8416 GB, free: 10.94 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.212e-05/0.01091, allocations: 0 / 0.8416 GB, free: 10.94 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.034e-05/0.01093, allocations: 11.31 kB / 0.8416 GB, free: 10.93 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.579e-06/0.01093, allocations: 7.984 kB / 0.8416 GB, free: 10.92 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.397e-06/0.01093, allocations: 3.938 kB / 0.8416 GB, free: 10.92 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.465e-06/0.01094, allocations: 0 / 0.8416 GB, free: 10.92 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001166/0.01105, allocations: 65.91 kB / 0.8417 GB, free: 10.84 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.01105, allocations: 192 / 0.8417 GB, free: 10.84 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.116e-05/0.01111, allocations: 11.92 kB / 0.8417 GB, free: 10.82 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.344e-06/0.01111, allocations: 4 kB / 0.8417 GB, free: 10.82 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.831e-06/0.01111, allocations: 7.922 kB / 0.8417 GB, free: 10.81 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.304e-06/0.01112, allocations: 0 / 0.8417 GB, free: 10.81 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.01112, allocations: 0 / 0.8417 GB, free: 10.81 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.969e-05/0.01122, allocations: 139.5 kB / 0.8418 GB, free: 10.66 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 6.422e-06/0.01122, allocations: 4 kB / 0.8418 GB, free: 10.66 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.786e-06/0.01123, allocations: 0 / 0.8418 GB, free: 10.66 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.897e-05/0.01128, allocations: 4 kB / 0.8418 GB, free: 10.65 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.376e-05/0.01132, allocations: 7.984 kB / 0.8418 GB, free: 10.64 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.016e-06/0.01132, allocations: 0 / 0.8418 GB, free: 10.64 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 1.426e-05/0.01133, allocations: 16.78 kB / 0.8419 GB, free: 10.62 MB / 0.8073 GB Notification: Performance of sort global known variables: time 8e-08/0.01133, allocations: 0 / 0.8419 GB, free: 10.62 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0001763/0.01151, allocations: 4 kB / 0.8419 GB, free: 10.62 MB / 0.8073 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.792e-05/0.01159, allocations: 84.39 kB / 0.8419 GB, free: 10.53 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 6.058e-05/0.01165, allocations: 12.86 kB / 0.842 GB, free: 10.52 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.01165, allocations: 0 / 0.842 GB, free: 10.52 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 1.966e-05/0.01167, allocations: 12.84 kB / 0.842 GB, free: 10.5 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001504/0.01182, allocations: 8 kB / 0.842 GB, free: 10.49 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000214/0.01203, allocations: 112 kB / 0.8421 GB, free: 10.36 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.376e-05/0.01207, allocations: 55.36 kB / 0.8421 GB, free: 10.29 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 2.005e-05/0.01209, allocations: 4.125 kB / 0.8421 GB, free: 10.28 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.596e-05/0.01213, allocations: 55.36 kB / 0.8422 GB, free: 10.23 MB / 0.8073 GB Notification: Performance of SimCode: time 5.31e-07/0.01213, allocations: 3.938 kB / 0.8422 GB, free: 10.22 MB / 0.8073 GB Notification: Performance of Templates: time 0.005421/0.01756, allocations: 0.6485 MB / 0.8428 GB, free: 9.586 MB / 0.8073 GB " [Timeout remaining time 300] 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=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.363619633950293]