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.0009668/0.0009668, allocations: 80.94 kB / 19.94 MB, free: 4.543 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.001064/0.001064, allocations: 173 kB / 23.36 MB, free: 1.129 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 1.042/1.042, allocations: 177.1 MB / 203.8 MB, free: 5.488 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.464/2.464, allocations: 438.8 MB / 0.6827 GB, free: 13.62 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.262e-06/1.262e-06, allocations: 0 / 0.8386 GB, free: 14.24 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 9.348e-06/1.061e-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.001131/0.001142, allocations: 0.6821 MB / 0.8393 GB, free: 13.55 MB / 0.8073 GB Notification: Performance of NFInst.instExpressions: time 0.0007736/0.001915, allocations: 0.8587 MB / 0.8401 GB, free: 12.68 MB / 0.8073 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.259e-05/0.001938, allocations: 3.938 kB / 0.8401 GB, free: 12.68 MB / 0.8073 GB Notification: Performance of NFTyping.typeComponents: time 1.731e-05/0.001955, allocations: 0 / 0.8401 GB, free: 12.68 MB / 0.8073 GB Notification: Performance of NFTyping.typeBindings: time 4.048e-05/0.001996, allocations: 3.938 kB / 0.8401 GB, free: 12.67 MB / 0.8073 GB Notification: Performance of NFTyping.typeClassSections: time 9.779e-05/0.002093, allocations: 19.86 kB / 0.8401 GB, free: 12.65 MB / 0.8073 GB Notification: Performance of NFFlatten.flatten: time 5.665e-05/0.00215, allocations: 31.91 kB / 0.8402 GB, free: 12.62 MB / 0.8073 GB Notification: Performance of NFFlatten.resolveConnections: time 4.721e-05/0.002197, allocations: 8 kB / 0.8402 GB, free: 12.61 MB / 0.8073 GB Notification: Performance of NFEvalConstants.evaluate: time 5.341e-05/0.002251, allocations: 11.98 kB / 0.8402 GB, free: 12.6 MB / 0.8073 GB Notification: Performance of NFSimplifyModel.simplify: time 3.263e-05/0.002283, allocations: 11.98 kB / 0.8402 GB, free: 12.59 MB / 0.8073 GB Notification: Performance of NFPackage.collectConstants: time 1.259e-05/0.002296, allocations: 4 kB / 0.8402 GB, free: 12.59 MB / 0.8073 GB Notification: Performance of NFFlatten.collectFunctions: time 6.141e-06/0.002302, allocations: 0 / 0.8402 GB, free: 12.59 MB / 0.8073 GB Notification: Performance of NFScalarize.scalarize: time 1.11e-05/0.002313, allocations: 7.938 kB / 0.8402 GB, free: 12.58 MB / 0.8073 GB Notification: Performance of NFVerifyModel.verify: time 1.541e-05/0.002328, allocations: 15.97 kB / 0.8402 GB, free: 12.56 MB / 0.8073 GB Notification: Performance of NFConvertDAE.convert: time 5.08e-05/0.002379, allocations: 11.98 kB / 0.8402 GB, free: 12.55 MB / 0.8073 GB Notification: Performance of FrontEnd - DAE generated: time 1.393e-06/0.002381, allocations: 0 / 0.8402 GB, free: 12.55 MB / 0.8073 GB Notification: Performance of FrontEnd: time 6.72e-07/0.002381, allocations: 0 / 0.8402 GB, free: 12.55 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 2.535e-06/0.002384, allocations: 0 / 0.8402 GB, free: 12.55 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.0001836/0.002567, allocations: 233 kB / 0.8405 GB, free: 12.3 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 2.284e-05/0.00259, allocations: 12.03 kB / 0.8405 GB, free: 12.29 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.533e-05/0.002606, allocations: 4.922 kB / 0.8405 GB, free: 12.28 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.436e-05/0.00266, allocations: 113.7 kB / 0.8406 GB, free: 12.14 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.518e-06/0.002669, allocations: 4.375 kB / 0.8406 GB, free: 12.14 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.448e-06/0.002674, allocations: 384 / 0.8406 GB, free: 12.14 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.083e-05/0.002745, allocations: 58.94 kB / 0.8406 GB, free: 12.07 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.37e-06/0.00275, allocations: 4.188 kB / 0.8406 GB, free: 12.07 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.308e-06/0.002754, allocations: 384 / 0.8406 GB, free: 12.07 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.845e-06/0.002757, allocations: 384 / 0.8406 GB, free: 12.07 MB / 0.8073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.931e-05/0.002777, allocations: 11.88 kB / 0.8407 GB, free: 12.06 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001403/0.002917, allocations: 152.2 kB / 0.8408 GB, free: 11.89 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 3.253e-05/0.002949, allocations: 22.64 kB / 0.8408 GB, free: 11.86 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.37e-05/0.002963, allocations: 16.89 kB / 0.8408 GB, free: 11.84 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 6.753e-06/0.00297, allocations: 0 / 0.8408 GB, free: 11.84 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.652e-05/0.002986, allocations: 34.56 kB / 0.8409 GB, free: 11.8 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=2): time 5.41e-07/0.002987, allocations: 0 / 0.8409 GB, free: 11.8 MB / 0.8073 GB Notification: Performance of matching and sorting (n=2): time 7.312e-05/0.00306, allocations: 37.64 kB / 0.8409 GB, free: 11.76 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.831e-05/0.003088, allocations: 59.33 kB / 0.841 GB, free: 11.69 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.057e-05/0.003129, allocations: 102.7 kB / 0.8411 GB, free: 11.57 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 8.296e-06/0.003137, allocations: 29.7 kB / 0.8411 GB, free: 11.54 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 2.122e-05/0.003158, allocations: 80.14 kB / 0.8412 GB, free: 11.46 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 1.082e-05/0.003169, allocations: 3.953 kB / 0.8412 GB, free: 11.45 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.533e-05/0.003195, allocations: 29.81 kB / 0.8412 GB, free: 11.42 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 6.576e-05/0.00326, allocations: 314.8 kB / 0.8415 GB, free: 11.1 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.674e-06/0.003268, allocations: 4 kB / 0.8415 GB, free: 11.1 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.422e-06/0.003274, allocations: 0 / 0.8415 GB, free: 11.1 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001664/0.003441, allocations: 16.84 kB / 0.8415 GB, free: 11.08 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.142e-06/0.003442, allocations: 0 / 0.8415 GB, free: 11.08 MB / 0.8073 GB Notification: Performance of matching and sorting (n=2) (initialization): time 3.89e-05/0.003481, allocations: 37.64 kB / 0.8416 GB, free: 11.04 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 8.696e-06/0.00349, allocations: 4 kB / 0.8416 GB, free: 11.03 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.055e-06/0.003493, allocations: 3.984 kB / 0.8416 GB, free: 11.03 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.512e-06/0.003499, allocations: 4.094 kB / 0.8416 GB, free: 11.02 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.316e-05/0.003542, allocations: 11.94 kB / 0.8416 GB, free: 11.01 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.783e-06/0.003544, allocations: 0 / 0.8416 GB, free: 11.01 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.459e-05/0.003559, allocations: 0 / 0.8416 GB, free: 11.01 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.398e-06/0.003563, allocations: 7.984 kB / 0.8416 GB, free: 11 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 4.212e-05/0.003605, allocations: 105.8 kB / 0.8417 GB, free: 10.89 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.409e-05/0.003619, allocations: 0 / 0.8417 GB, free: 10.89 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.347e-05/0.003633, allocations: 11.31 kB / 0.8417 GB, free: 10.88 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.142e-06/0.003634, allocations: 192 / 0.8417 GB, free: 10.88 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.064e-06/0.003636, allocations: 3.938 kB / 0.8417 GB, free: 10.88 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.557e-06/0.00364, allocations: 7.984 kB / 0.8417 GB, free: 10.87 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.319e-05/0.003713, allocations: 69.88 kB / 0.8418 GB, free: 10.78 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.71e-07/0.003713, allocations: 0 / 0.8418 GB, free: 10.78 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.934e-05/0.003733, allocations: 8 kB / 0.8418 GB, free: 10.77 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.31e-07/0.003733, allocations: 3.938 kB / 0.8418 GB, free: 10.77 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.327e-06/0.003737, allocations: 0 / 0.8418 GB, free: 10.77 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.004e-06/0.003739, allocations: 3.984 kB / 0.8418 GB, free: 10.77 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.00374, allocations: 3.984 kB / 0.8418 GB, free: 10.76 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.25e-05/0.003823, allocations: 135.4 kB / 0.8419 GB, free: 10.61 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 7.314e-06/0.00383, allocations: 8.016 kB / 0.8419 GB, free: 10.61 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.935e-06/0.003838, allocations: 0 / 0.8419 GB, free: 10.61 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.311e-05/0.003901, allocations: 4 kB / 0.8419 GB, free: 10.6 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.47e-05/0.003936, allocations: 7.984 kB / 0.8419 GB, free: 10.59 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.556e-06/0.003939, allocations: 0 / 0.8419 GB, free: 10.59 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 1.249e-05/0.003952, allocations: 12.8 kB / 0.842 GB, free: 10.58 MB / 0.8073 GB Notification: Performance of sort global known variables: time 7e-08/0.003952, allocations: 0 / 0.842 GB, free: 10.58 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0001154/0.004067, allocations: 4 kB / 0.842 GB, free: 10.57 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 5.082e-05/0.004118, allocations: 76.42 kB / 0.842 GB, free: 10.49 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 4.904e-05/0.004167, allocations: 28.78 kB / 0.8421 GB, free: 10.46 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.004169, allocations: 0 / 0.8421 GB, free: 10.46 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 1.641e-05/0.004185, allocations: 8.859 kB / 0.8421 GB, free: 10.45 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001061/0.004291, allocations: 9.719 kB / 0.8421 GB, free: 10.44 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001641/0.004455, allocations: 112.7 kB / 0.8422 GB, free: 10.3 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.079e-05/0.004486, allocations: 55.36 kB / 0.8422 GB, free: 10.23 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 1.727e-05/0.004503, allocations: 4.125 kB / 0.8422 GB, free: 10.23 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.089e-05/0.004544, allocations: 55.36 kB / 0.8423 GB, free: 10.17 MB / 0.8073 GB Notification: Performance of SimCode: time 4.71e-07/0.004545, allocations: 0 / 0.8423 GB, free: 10.17 MB / 0.8073 GB Notification: Performance of Templates: time 0.002471/0.007016, allocations: 0.6489 MB / 0.8429 GB, free: 9.535 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 -s gbode -gbm=radauIIA3 -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.3864062880165875]