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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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=5000,variableFilter="time|reaToInt.u|reaToInt.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008168/0.0008174, allocations: 98.19 kB / 15.36 MB, free: 0.7344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.005786/0.005786, allocations: 168.6 kB / 16.26 MB, free: 6.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.534/1.534, allocations: 223.3 MB / 240.3 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.917/2.917, allocations: 462.6 MB / 0.7364 GB, free: 276 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0003857/0.000386, allocations: 8.719 kB / 0.9028 GB, free: 36.71 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.413/0.4134, allocations: 159.6 MB / 1.059 GB, free: 5.461 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger): time 0.0009997/0.4144, allocations: 355.3 kB / 1.059 GB, free: 5.117 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.00131/0.4157, allocations: 0.8156 MB / 1.06 GB, free: 4.289 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.534e-05/0.4158, allocations: 0 / 1.06 GB, free: 4.289 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.767e-05/0.4158, allocations: 4 kB / 1.06 GB, free: 4.285 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 9.272e-05/0.4159, allocations: 7.922 kB / 1.06 GB, free: 4.277 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001794/0.4161, allocations: 19.92 kB / 1.06 GB, free: 4.258 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 7.826e-05/0.4162, allocations: 23.98 kB / 1.06 GB, free: 4.234 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001188/0.4164, allocations: 4 kB / 1.06 GB, free: 4.23 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 8.336e-05/0.4164, allocations: 11.94 kB / 1.06 GB, free: 4.219 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 7.423e-05/0.4165, allocations: 7.984 kB / 1.06 GB, free: 4.211 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.5e-05/0.4166, allocations: 0 / 1.06 GB, free: 4.211 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 1.794e-05/0.4166, allocations: 4 kB / 1.06 GB, free: 4.207 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.457e-05/0.4166, allocations: 11.92 kB / 1.06 GB, free: 4.195 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 5.404e-05/0.4167, allocations: 37.56 kB / 1.06 GB, free: 4.152 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 9.666e-05/0.4168, allocations: 19.95 kB / 1.06 GB, free: 4.133 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 7.393e-06/0.4168, allocations: 4 kB / 1.06 GB, free: 4.129 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.795e-06/0.4168, allocations: 4 kB / 1.06 GB, free: 4.125 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.733e-06/0.4168, allocations: 0 / 1.06 GB, free: 4.125 MB / 0.8106 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.0005872/0.4174, allocations: 339.8 kB / 1.06 GB, free: 3.742 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 5.629e-05/0.4175, allocations: 8.031 kB / 1.06 GB, free: 3.734 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.577e-05/0.4175, allocations: 0.9375 kB / 1.06 GB, free: 3.734 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001586/0.4177, allocations: 172.2 kB / 1.06 GB, free: 3.527 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.269e-05/0.4177, allocations: 384 / 1.06 GB, free: 3.527 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.269e-05/0.4178, allocations: 4.375 kB / 1.06 GB, free: 3.523 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002182/0.418, allocations: 58.23 kB / 1.061 GB, free: 3.461 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.478e-05/0.418, allocations: 192 / 1.061 GB, free: 3.461 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.074e-05/0.418, allocations: 3.938 kB / 1.061 GB, free: 3.457 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.031e-05/0.4181, allocations: 0 / 1.061 GB, free: 3.457 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002103/0.4183, allocations: 55.83 kB / 1.061 GB, free: 3.402 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004756/0.4188, allocations: 257 kB / 1.061 GB, free: 3.102 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001641/0.4189, allocations: 50.48 kB / 1.061 GB, free: 3.043 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001035/0.419, allocations: 28.91 kB / 1.061 GB, free: 3.012 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.742e-05/0.4191, allocations: 0 / 1.061 GB, free: 3.012 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.669e-05/0.4191, allocations: 30.56 kB / 1.061 GB, free: 2.973 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=2): time 1.493e-06/0.4191, allocations: 0 / 1.061 GB, free: 2.973 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2): time 0.000455/0.4196, allocations: 109.6 kB / 1.061 GB, free: 2.859 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.557e-05/0.4196, allocations: 51.41 kB / 1.061 GB, free: 2.797 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.905e-05/0.4197, allocations: 106 kB / 1.061 GB, free: 2.684 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.5e-05/0.4198, allocations: 29.7 kB / 1.061 GB, free: 2.648 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.375e-05/0.4198, allocations: 80.14 kB / 1.061 GB, free: 2.566 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.482e-05/0.4198, allocations: 3.906 kB / 1.061 GB, free: 2.562 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.741e-05/0.4199, allocations: 13.72 kB / 1.061 GB, free: 2.543 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001425/0.42, allocations: 318.8 kB / 1.062 GB, free: 2.223 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.335e-05/0.4201, allocations: 15.98 kB / 1.062 GB, free: 2.207 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.977e-05/0.4202, allocations: 27.98 kB / 1.062 GB, free: 2.18 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001845/0.4204, allocations: 56.75 kB / 1.062 GB, free: 2.121 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/0.4204, allocations: 8 kB / 1.062 GB, free: 2.113 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002537/0.4207, allocations: 81.59 kB / 1.062 GB, free: 2.027 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.289e-05/0.4207, allocations: 5.094 kB / 1.062 GB, free: 2.023 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.883e-06/0.4208, allocations: 0 / 1.062 GB, free: 2.023 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.538e-05/0.4208, allocations: 4 kB / 1.062 GB, free: 2.02 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000121/0.4209, allocations: 16.02 kB / 1.062 GB, free: 2.004 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.024e-05/0.4209, allocations: 4 kB / 1.062 GB, free: 2 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.957e-05/0.421, allocations: 7.984 kB / 1.062 GB, free: 1.992 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.02e-05/0.421, allocations: 4 kB / 1.062 GB, free: 1.988 MB / 0.8106 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.0001048/0.4211, allocations: 109.8 kB / 1.062 GB, free: 1.871 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.133e-05/0.4212, allocations: 3.906 kB / 1.062 GB, free: 1.867 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.999e-05/0.4212, allocations: 15.12 kB / 1.062 GB, free: 1.855 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.405e-06/0.4212, allocations: 0 / 1.062 GB, free: 1.855 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.091e-06/0.4212, allocations: 0 / 1.062 GB, free: 1.855 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.499e-06/0.4212, allocations: 0 / 1.062 GB, free: 1.855 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001743/0.4214, allocations: 161.6 kB / 1.062 GB, free: 1.648 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.532e-06/0.4214, allocations: 0 / 1.062 GB, free: 1.648 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.613e-05/0.4215, allocations: 15.92 kB / 1.062 GB, free: 1.633 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.268e-06/0.4215, allocations: 7.938 kB / 1.062 GB, free: 1.625 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.237e-06/0.4215, allocations: 0 / 1.062 GB, free: 1.625 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.552e-06/0.4215, allocations: 0 / 1.062 GB, free: 1.625 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.4215, allocations: 4 kB / 1.062 GB, free: 1.621 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002911/0.4218, allocations: 175.5 kB / 1.062 GB, free: 1.434 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.005e-05/0.4219, allocations: 81.14 kB / 1.062 GB, free: 1.336 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.777e-05/0.4219, allocations: 3.984 kB / 1.062 GB, free: 1.332 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.198e-05/0.422, allocations: 8 kB / 1.062 GB, free: 1.324 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.826e-05/0.4221, allocations: 7.984 kB / 1.062 GB, free: 1.316 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.298e-06/0.4221, allocations: 0 / 1.062 GB, free: 1.316 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.941e-05/0.4221, allocations: 79.28 kB / 1.062 GB, free: 1.238 MB / 0.8106 GB Notification: Performance of sort global known variables: time 2e-07/0.4221, allocations: 0 / 1.062 GB, free: 1.238 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002159/0.4224, allocations: 4 kB / 1.062 GB, free: 1.234 MB / 0.8106 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.0001585/0.4225, allocations: 103.2 kB / 1.063 GB, free: 1.121 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002568/0.4228, allocations: 51.91 kB / 1.063 GB, free: 1.07 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.4228, allocations: 4 kB / 1.063 GB, free: 1.066 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001039/0.4229, allocations: 28.03 kB / 1.063 GB, free: 1.039 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003011/0.4232, allocations: 11.94 kB / 1.063 GB, free: 1.027 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004375/0.4237, allocations: 104.7 kB / 1.063 GB, free: 0.8984 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002974/0.424, allocations: 0.677 MB / 1.063 GB, free: 200 kB / 0.8106 GB Notification: Performance of simCode: alias equations: time 4.692e-05/0.424, allocations: 7.969 kB / 1.063 GB, free: 192 kB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.849e-05/0.4241, allocations: 11.44 kB / 1.063 GB, free: 180 kB / 0.8106 GB Notification: Performance of SimCode: time 8.61e-07/0.4241, allocations: 3.938 kB / 1.063 GB, free: 176 kB / 0.8106 GB Notification: Performance of Templates: time 0.003312/0.4274, allocations: 0.5004 MB / 1.064 GB, free: 15.67 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.makefile (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=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.pipe 2>&1) 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches