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.009478/0.009478, allocations: 103.7 kB / 15.73 MB, free: 6.047 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.001723/0.001723, allocations: 196.8 kB / 16.68 MB, free: 5.961 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.557/1.557, allocations: 222.9 MB / 240.4 MB, free: 4.188 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 3.185/3.185, allocations: 461.8 MB / 0.7347 GB, free: 14.62 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001225/0.001224, allocations: 67.91 kB / 1.054 GB, free: 7.141 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4437/0.4449, allocations: 157.4 MB / 1.208 GB, free: 9.637 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger): time 0.002127/0.4471, allocations: 0.6153 MB / 1.208 GB, free: 9.02 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001221/0.4484, allocations: 0.8195 MB / 1.209 GB, free: 8.188 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.825e-05/0.4484, allocations: 0 / 1.209 GB, free: 8.188 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 3.735e-05/0.4485, allocations: 3.938 kB / 1.209 GB, free: 8.184 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 8.463e-05/0.4486, allocations: 0 / 1.209 GB, free: 8.184 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002248/0.4488, allocations: 19.92 kB / 1.209 GB, free: 8.164 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001085/0.4489, allocations: 23.98 kB / 1.209 GB, free: 8.141 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000137/0.4491, allocations: 11.98 kB / 1.209 GB, free: 8.129 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 8.021e-05/0.4492, allocations: 15.92 kB / 1.209 GB, free: 8.113 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 5.927e-05/0.4492, allocations: 8 kB / 1.209 GB, free: 8.105 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.897e-05/0.4492, allocations: 3.938 kB / 1.209 GB, free: 8.102 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 1.675e-05/0.4493, allocations: 4 kB / 1.209 GB, free: 8.098 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.281e-05/0.4493, allocations: 7.922 kB / 1.209 GB, free: 8.09 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 3.694e-05/0.4493, allocations: 11.94 kB / 1.209 GB, free: 8.078 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.000103/0.4494, allocations: 31.88 kB / 1.209 GB, free: 8.047 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 6.332e-06/0.4495, allocations: 0 / 1.209 GB, free: 8.047 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.904e-06/0.4495, allocations: 0 / 1.209 GB, free: 8.047 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 7.935e-06/0.4495, allocations: 4 kB / 1.209 GB, free: 8.043 MB / 0.9669 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.0006752/0.4502, allocations: 339.4 kB / 1.21 GB, free: 7.66 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 5.899e-05/0.4502, allocations: 8.031 kB / 1.21 GB, free: 7.652 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.856e-05/0.4503, allocations: 4.938 kB / 1.21 GB, free: 7.648 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001784/0.4505, allocations: 164.4 kB / 1.21 GB, free: 7.449 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.708e-05/0.4505, allocations: 384 / 1.21 GB, free: 7.449 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.855e-05/0.4505, allocations: 384 / 1.21 GB, free: 7.449 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002249/0.4508, allocations: 54.22 kB / 1.21 GB, free: 7.391 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.636e-05/0.4508, allocations: 12.17 kB / 1.21 GB, free: 7.379 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.645e-05/0.4508, allocations: 3.938 kB / 1.21 GB, free: 7.375 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.604e-06/0.4508, allocations: 4 kB / 1.21 GB, free: 7.371 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001932/0.451, allocations: 35.91 kB / 1.21 GB, free: 7.336 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005042/0.4515, allocations: 252.9 kB / 1.21 GB, free: 7.039 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001566/0.4517, allocations: 46.48 kB / 1.21 GB, free: 6.984 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001081/0.4518, allocations: 24.84 kB / 1.21 GB, free: 6.957 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.196e-05/0.4518, allocations: 4 kB / 1.21 GB, free: 6.953 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.262e-05/0.4519, allocations: 30.56 kB / 1.21 GB, free: 6.914 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=2): time 9.71e-07/0.4519, allocations: 3.938 kB / 1.21 GB, free: 6.91 MB / 0.9669 GB Notification: Performance of matching and sorting (n=2): time 0.0004308/0.4523, allocations: 89.62 kB / 1.21 GB, free: 6.816 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.963e-05/0.4524, allocations: 55.41 kB / 1.21 GB, free: 6.75 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.653e-05/0.4525, allocations: 93.86 kB / 1.21 GB, free: 6.648 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.036e-05/0.4525, allocations: 29.7 kB / 1.21 GB, free: 6.613 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 5.29e-05/0.4526, allocations: 84.12 kB / 1.211 GB, free: 6.527 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.354e-05/0.4526, allocations: 3.906 kB / 1.211 GB, free: 6.523 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.431e-05/0.4526, allocations: 13.72 kB / 1.211 GB, free: 6.504 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001403/0.4528, allocations: 319 kB / 1.211 GB, free: 6.184 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.244e-05/0.4529, allocations: 19.97 kB / 1.211 GB, free: 6.164 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.786e-05/0.453, allocations: 15.98 kB / 1.211 GB, free: 6.148 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001635/0.4531, allocations: 40.77 kB / 1.211 GB, free: 6.105 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.4532, allocations: 0 / 1.211 GB, free: 6.105 MB / 0.9669 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002107/0.4534, allocations: 77.66 kB / 1.211 GB, free: 6.023 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 2.323e-05/0.4534, allocations: 8 kB / 1.211 GB, free: 6.016 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.325e-06/0.4534, allocations: 3.984 kB / 1.211 GB, free: 6.012 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.185e-05/0.4534, allocations: 0 / 1.211 GB, free: 6.012 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001194/0.4536, allocations: 4 kB / 1.211 GB, free: 6.008 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.713e-06/0.4536, allocations: 4 kB / 1.211 GB, free: 6.004 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.75e-05/0.4537, allocations: 7.984 kB / 1.211 GB, free: 5.996 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.003e-06/0.4537, allocations: 0 / 1.211 GB, free: 5.996 MB / 0.9669 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 9.437e-05/0.4538, allocations: 117.8 kB / 1.211 GB, free: 5.871 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.574e-05/0.4538, allocations: 4 kB / 1.211 GB, free: 5.867 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.567e-05/0.4538, allocations: 11.11 kB / 1.211 GB, free: 5.859 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.703e-06/0.4538, allocations: 0 / 1.211 GB, free: 5.859 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.265e-06/0.4539, allocations: 0 / 1.211 GB, free: 5.859 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.346e-06/0.4539, allocations: 3.938 kB / 1.211 GB, free: 5.855 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001804/0.4541, allocations: 157.6 kB / 1.211 GB, free: 5.652 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.283e-06/0.4541, allocations: 0 / 1.211 GB, free: 5.652 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.782e-05/0.4541, allocations: 11.98 kB / 1.211 GB, free: 5.641 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.854e-06/0.4541, allocations: 4 kB / 1.211 GB, free: 5.637 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.959e-06/0.4542, allocations: 0 / 1.211 GB, free: 5.637 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.576e-06/0.4542, allocations: 0 / 1.211 GB, free: 5.637 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.32e-07/0.4542, allocations: 3.938 kB / 1.211 GB, free: 5.633 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002863/0.4545, allocations: 171.4 kB / 1.211 GB, free: 5.449 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 5.998e-05/0.4545, allocations: 81.02 kB / 1.212 GB, free: 5.352 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.518e-05/0.4546, allocations: 4.031 kB / 1.212 GB, free: 5.348 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.749e-05/0.4547, allocations: 11.98 kB / 1.212 GB, free: 5.336 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.021e-05/0.4547, allocations: 8 kB / 1.212 GB, free: 5.328 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.667e-06/0.4547, allocations: 0 / 1.212 GB, free: 5.328 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 6.118e-05/0.4548, allocations: 83.27 kB / 1.212 GB, free: 5.246 MB / 0.9669 GB Notification: Performance of sort global known variables: time 8e-08/0.4548, allocations: 0 / 1.212 GB, free: 5.246 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002186/0.455, allocations: 4 kB / 1.212 GB, free: 5.242 MB / 0.9669 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.0001797/0.4552, allocations: 107.5 kB / 1.212 GB, free: 5.125 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0002599/0.4555, allocations: 39.95 kB / 1.212 GB, free: 5.086 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.993e-06/0.4555, allocations: 0 / 1.212 GB, free: 5.086 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.000109/0.4556, allocations: 19.98 kB / 1.212 GB, free: 5.066 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003711/0.456, allocations: 7.938 kB / 1.212 GB, free: 5.059 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004328/0.4564, allocations: 117.5 kB / 1.212 GB, free: 4.914 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003751/0.4568, allocations: 0.6729 MB / 1.213 GB, free: 4.215 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 3.863e-05/0.4569, allocations: 7.938 kB / 1.213 GB, free: 4.207 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.17e-05/0.4569, allocations: 15.42 kB / 1.213 GB, free: 4.191 MB / 0.9669 GB Notification: Performance of SimCode: time 2.2e-07/0.4569, allocations: 0 / 1.213 GB, free: 4.191 MB / 0.9669 GB Notification: Performance of Templates: time 0.003502/0.4604, allocations: 0.6185 MB / 1.213 GB, free: 3.578 MB / 0.9669 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