Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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_10_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_10_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.001724/0.001724, allocations: 108.7 kB / 16.41 MB, free: 6.469 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.002048/0.002048, allocations: 189.4 kB / 17.35 MB, free: 5.711 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.488/1.488, allocations: 222.9 MB / 241.1 MB, free: 15.06 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.695/2.695, allocations: 437 MB / 0.7112 GB, free: 4.305 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001612/0.001612, allocations: 71.88 kB / 1.019 GB, free: 9.395 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9827/0.9843, allocations: 151.6 MB / 1.167 GB, free: 3.852 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger): time 0.002458/0.9868, allocations: 0.6284 MB / 1.168 GB, free: 3.227 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001538/0.9884, allocations: 0.8336 MB / 1.169 GB, free: 2.383 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.831e-05/0.9885, allocations: 0 / 1.169 GB, free: 2.383 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 4.521e-05/0.9885, allocations: 0 / 1.169 GB, free: 2.383 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 9.381e-05/0.9887, allocations: 3.938 kB / 1.169 GB, free: 2.379 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002005/0.9889, allocations: 11.98 kB / 1.169 GB, free: 2.367 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0001265/0.989, allocations: 35.91 kB / 1.169 GB, free: 2.332 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001477/0.9892, allocations: 8 kB / 1.169 GB, free: 2.324 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 9.894e-05/0.9893, allocations: 15.92 kB / 1.169 GB, free: 2.309 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 7.478e-05/0.9894, allocations: 11.98 kB / 1.169 GB, free: 2.297 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 1.888e-05/0.9894, allocations: 0 / 1.169 GB, free: 2.297 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 1.426e-05/0.9894, allocations: 4 kB / 1.169 GB, free: 2.293 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 2.287e-05/0.9894, allocations: 3.984 kB / 1.169 GB, free: 2.289 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 5.086e-05/0.9895, allocations: 11.94 kB / 1.169 GB, free: 2.277 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0001363/0.9896, allocations: 23.89 kB / 1.169 GB, free: 2.254 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 7.565e-06/0.9896, allocations: 0 / 1.169 GB, free: 2.254 MB / 0.8887 GB Notification: Performance of FrontEnd: time 3.767e-06/0.9897, allocations: 4 kB / 1.169 GB, free: 2.25 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 7.314e-06/0.9897, allocations: 0 / 1.169 GB, free: 2.25 MB / 0.8887 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.0007011/0.9904, allocations: 336 kB / 1.169 GB, free: 1.875 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 6.094e-05/0.9904, allocations: 12.03 kB / 1.169 GB, free: 1.863 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.882e-05/0.9905, allocations: 0.9375 kB / 1.169 GB, free: 1.863 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001707/0.9907, allocations: 172.3 kB / 1.169 GB, free: 1.656 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.996e-05/0.9907, allocations: 4.375 kB / 1.169 GB, free: 1.652 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.457e-05/0.9907, allocations: 4.375 kB / 1.169 GB, free: 1.648 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002386/0.991, allocations: 58.22 kB / 1.169 GB, free: 1.586 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.498e-06/0.991, allocations: 192 / 1.169 GB, free: 1.586 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.671e-05/0.991, allocations: 3.938 kB / 1.169 GB, free: 1.582 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.032e-06/0.991, allocations: 0 / 1.169 GB, free: 1.582 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001946/0.9912, allocations: 35.95 kB / 1.169 GB, free: 1.547 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004864/0.9917, allocations: 240.9 kB / 1.17 GB, free: 1.262 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001687/0.9919, allocations: 54.47 kB / 1.17 GB, free: 1.199 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001012/0.992, allocations: 24.84 kB / 1.17 GB, free: 1.172 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 3.417e-05/0.9921, allocations: 4 kB / 1.17 GB, free: 1.168 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.519e-05/0.9921, allocations: 34.55 kB / 1.17 GB, free: 1.125 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=2): time 3.437e-06/0.9921, allocations: 0 / 1.17 GB, free: 1.125 MB / 0.8887 GB Notification: Performance of matching and sorting (n=2): time 0.0005617/0.9927, allocations: 89.58 kB / 1.17 GB, free: 1.031 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.805e-05/0.9927, allocations: 55.34 kB / 1.17 GB, free: 0.9648 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000119/0.9929, allocations: 101.8 kB / 1.17 GB, free: 0.8555 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 3.133e-05/0.9929, allocations: 33.69 kB / 1.17 GB, free: 0.8164 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 5.874e-05/0.993, allocations: 88.08 kB / 1.17 GB, free: 0.7266 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 2.709e-05/0.993, allocations: 7.938 kB / 1.17 GB, free: 0.7188 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.493e-05/0.9931, allocations: 17.84 kB / 1.17 GB, free: 0.6953 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001555/0.9932, allocations: 314.8 kB / 1.17 GB, free: 388 kB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.916e-05/0.9933, allocations: 15.97 kB / 1.17 GB, free: 372 kB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.592e-05/0.9934, allocations: 19.98 kB / 1.17 GB, free: 352 kB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001824/0.9936, allocations: 40.81 kB / 1.171 GB, free: 308 kB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.726e-06/0.9936, allocations: 4.062 kB / 1.171 GB, free: 304 kB / 0.8887 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0003143/0.994, allocations: 73.53 kB / 1.171 GB, free: 224 kB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 2.176e-05/0.994, allocations: 4 kB / 1.171 GB, free: 220 kB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.556e-06/0.994, allocations: 0 / 1.171 GB, free: 220 kB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.469e-05/0.994, allocations: 4 kB / 1.171 GB, free: 216 kB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001377/0.9942, allocations: 7.984 kB / 1.171 GB, free: 208 kB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.15e-05/0.9942, allocations: 0 / 1.171 GB, free: 208 kB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.201e-05/0.9943, allocations: 11.95 kB / 1.171 GB, free: 196 kB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.674e-06/0.9943, allocations: 4.031 kB / 1.171 GB, free: 192 kB / 0.8887 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.000101/0.9944, allocations: 113.8 kB / 1.171 GB, free: 68 kB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.908e-05/0.9944, allocations: 3.938 kB / 1.171 GB, free: 64 kB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.965e-05/0.9945, allocations: 7.125 kB / 1.171 GB, free: 52 kB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.607e-06/0.9945, allocations: 0 / 1.171 GB, free: 52 kB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.9945, allocations: 4 kB / 1.171 GB, free: 48 kB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000106/0.9946, allocations: 77.11 kB / 1.171 GB, free: 15.95 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.364e-05/0.9946, allocations: 0 / 1.171 GB, free: 15.95 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.758e-05/0.9947, allocations: 11.98 kB / 1.171 GB, free: 15.94 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.56e-05/0.9948, allocations: 4 kB / 1.171 GB, free: 15.94 MB / 0.9044 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0002958/0.9951, allocations: 156.8 kB / 1.171 GB, free: 15.78 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0003379/0.9954, allocations: 242.8 kB / 1.171 GB, free: 15.52 MB / 0.9044 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001102/0.9955, allocations: 23.97 kB / 1.171 GB, free: 15.5 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 3.936e-05/0.9956, allocations: 75.28 kB / 1.171 GB, free: 15.43 MB / 0.9044 GB Notification: Performance of Backend: time 7.61e-07/0.9956, allocations: 0 / 1.171 GB, free: 15.43 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0004277/0.996, allocations: 100.6 kB / 1.171 GB, free: 15.32 MB / 0.9044 GB Notification: Performance of SimCode: time 0.0006184/0.9967, allocations: 0.5532 MB / 1.172 GB, free: 14.72 MB / 0.9044 GB Notification: Performance of Templates: time 0.003235/0.9999, allocations: 0.685 MB / 1.173 GB, free: 14.04 MB / 0.9044 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Conversions_Validation_RealToInteger.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches