Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.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_9_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_9_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.001224/0.001224, allocations: 104 kB / 16.35 MB, free: 5.824 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.001235/0.001236, allocations: 190.2 kB / 17.29 MB, free: 5.48 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.43/1.43, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.53/2.53, allocations: 390.3 MB / 0.6655 GB, free: 0.5469 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001326/0.001326, allocations: 62.56 kB / 0.814 GB, free: 32.63 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3292/0.3305, allocations: 140.4 MB / 0.9511 GB, free: 8.023 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger): time 0.002286/0.3329, allocations: 0.6282 MB / 0.9517 GB, free: 7.395 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001053/0.3339, allocations: 0.8333 MB / 0.9525 GB, free: 6.551 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.859e-05/0.334, allocations: 0 / 0.9525 GB, free: 6.551 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 3.102e-05/0.3341, allocations: 7.938 kB / 0.9526 GB, free: 6.543 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 5.685e-05/0.3341, allocations: 0 / 0.9526 GB, free: 6.543 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001452/0.3343, allocations: 15.92 kB / 0.9526 GB, free: 6.527 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 7.611e-05/0.3343, allocations: 23.98 kB / 0.9526 GB, free: 6.504 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001171/0.3345, allocations: 3.984 kB / 0.9526 GB, free: 6.5 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 7.195e-05/0.3345, allocations: 15.92 kB / 0.9526 GB, free: 6.484 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 6.964e-05/0.3346, allocations: 19.92 kB / 0.9526 GB, free: 6.465 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 2.056e-05/0.3347, allocations: 0 / 0.9526 GB, free: 6.465 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 1.192e-05/0.3347, allocations: 4 kB / 0.9526 GB, free: 6.461 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 1.903e-05/0.3347, allocations: 4 kB / 0.9526 GB, free: 6.457 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 2.997e-05/0.3347, allocations: 11.92 kB / 0.9526 GB, free: 6.445 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 9.204e-05/0.3348, allocations: 31.89 kB / 0.9527 GB, free: 6.414 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.738e-06/0.3348, allocations: 0 / 0.9527 GB, free: 6.414 MB / 0.7325 GB Notification: Performance of FrontEnd: time 2.024e-06/0.3348, allocations: 0 / 0.9527 GB, free: 6.414 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 5.671e-06/0.3348, allocations: 0 / 0.9527 GB, free: 6.414 MB / 0.7325 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.00059/0.3354, allocations: 335.5 kB / 0.953 GB, free: 6.035 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.372e-05/0.3355, allocations: 12.03 kB / 0.953 GB, free: 6.023 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.217e-05/0.3355, allocations: 0.9375 kB / 0.953 GB, free: 6.023 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001672/0.3357, allocations: 172.2 kB / 0.9532 GB, free: 5.816 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.639e-05/0.3357, allocations: 8.375 kB / 0.9532 GB, free: 5.809 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.294e-05/0.3358, allocations: 384 / 0.9532 GB, free: 5.809 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001886/0.336, allocations: 54.17 kB / 0.9532 GB, free: 5.75 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.345e-06/0.336, allocations: 192 / 0.9532 GB, free: 5.75 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.129e-05/0.336, allocations: 3.938 kB / 0.9532 GB, free: 5.746 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.5e-06/0.336, allocations: 3.984 kB / 0.9532 GB, free: 5.742 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001766/0.3362, allocations: 35.95 kB / 0.9533 GB, free: 5.707 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003762/0.3366, allocations: 253 kB / 0.9535 GB, free: 5.41 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001329/0.3367, allocations: 42.5 kB / 0.9536 GB, free: 5.359 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.973e-05/0.3368, allocations: 24.89 kB / 0.9536 GB, free: 5.332 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.926e-05/0.3368, allocations: 7.938 kB / 0.9536 GB, free: 5.324 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.411e-05/0.3369, allocations: 34.56 kB / 0.9536 GB, free: 5.281 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=2): time 1.142e-06/0.3369, allocations: 0 / 0.9536 GB, free: 5.281 MB / 0.7325 GB Notification: Performance of matching and sorting (n=2): time 0.0003609/0.3372, allocations: 81.64 kB / 0.9537 GB, free: 5.195 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.846e-05/0.3373, allocations: 55.34 kB / 0.9538 GB, free: 5.129 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.291e-05/0.3374, allocations: 105.8 kB / 0.9539 GB, free: 5.016 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.591e-05/0.3374, allocations: 29.64 kB / 0.9539 GB, free: 4.98 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 4.419e-05/0.3375, allocations: 84.27 kB / 0.954 GB, free: 4.895 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 1.798e-05/0.3375, allocations: 3.906 kB / 0.954 GB, free: 4.891 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.418e-05/0.3375, allocations: 17.72 kB / 0.954 GB, free: 4.867 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.000129/0.3377, allocations: 314.8 kB / 0.9543 GB, free: 4.551 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.313e-05/0.3377, allocations: 19.92 kB / 0.9543 GB, free: 4.531 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.841e-05/0.3378, allocations: 15.98 kB / 0.9543 GB, free: 4.516 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001465/0.338, allocations: 44.88 kB / 0.9544 GB, free: 4.469 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.338, allocations: 0 / 0.9544 GB, free: 4.469 MB / 0.7325 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001904/0.3382, allocations: 73.59 kB / 0.9544 GB, free: 4.391 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.716e-05/0.3382, allocations: 4 kB / 0.9544 GB, free: 4.387 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.109e-06/0.3382, allocations: 0 / 0.9544 GB, free: 4.387 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.548e-05/0.3382, allocations: 4 kB / 0.9544 GB, free: 4.383 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001078/0.3383, allocations: 12.02 kB / 0.9544 GB, free: 4.371 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.722e-06/0.3384, allocations: 0 / 0.9544 GB, free: 4.371 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.049e-05/0.3384, allocations: 4 kB / 0.9545 GB, free: 4.367 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.578e-06/0.3384, allocations: 3.984 kB / 0.9545 GB, free: 4.363 MB / 0.7325 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.326e-05/0.3385, allocations: 123.7 kB / 0.9546 GB, free: 4.234 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.436e-05/0.3386, allocations: 3.906 kB / 0.9546 GB, free: 4.23 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.161e-05/0.3386, allocations: 3.125 kB / 0.9546 GB, free: 4.227 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.306e-06/0.3386, allocations: 4 kB / 0.9546 GB, free: 4.223 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.243e-06/0.3386, allocations: 4 kB / 0.9546 GB, free: 4.219 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.587e-06/0.3386, allocations: 4 kB / 0.9546 GB, free: 4.215 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001798/0.3388, allocations: 161.6 kB / 0.9547 GB, free: 4.008 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.81e-07/0.3388, allocations: 0 / 0.9547 GB, free: 4.008 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.793e-05/0.3389, allocations: 11.98 kB / 0.9548 GB, free: 3.996 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.603e-06/0.3389, allocations: 0 / 0.9548 GB, free: 3.996 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.263e-06/0.3389, allocations: 0 / 0.9548 GB, free: 3.996 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.313e-06/0.3389, allocations: 0 / 0.9548 GB, free: 3.996 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.3389, allocations: 0 / 0.9548 GB, free: 3.996 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002566/0.3392, allocations: 167.5 kB / 0.9549 GB, free: 3.816 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 4.56e-05/0.3392, allocations: 81.11 kB / 0.955 GB, free: 3.719 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.483e-05/0.3392, allocations: 0 / 0.955 GB, free: 3.719 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.212e-05/0.3393, allocations: 7.984 kB / 0.955 GB, free: 3.711 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.177e-05/0.3394, allocations: 11.92 kB / 0.955 GB, free: 3.699 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.544e-06/0.3394, allocations: 4 kB / 0.955 GB, free: 3.695 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 4.374e-05/0.3395, allocations: 79.22 kB / 0.9551 GB, free: 3.617 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.61e-07/0.3395, allocations: 4.031 kB / 0.9551 GB, free: 3.613 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002118/0.3397, allocations: 8 kB / 0.9551 GB, free: 3.605 MB / 0.7325 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.000126/0.3398, allocations: 99.25 kB / 0.9552 GB, free: 3.5 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0002216/0.34, allocations: 39.89 kB / 0.9552 GB, free: 3.461 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.3401, allocations: 0 / 0.9552 GB, free: 3.461 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.000106/0.3402, allocations: 32.03 kB / 0.9553 GB, free: 3.43 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003196/0.3405, allocations: 7 kB / 0.9553 GB, free: 3.426 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003416/0.3408, allocations: 113.4 kB / 0.9554 GB, free: 3.289 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003068/0.3412, allocations: 0.6805 MB / 0.956 GB, free: 2.582 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 3.487e-05/0.3412, allocations: 4 kB / 0.9561 GB, free: 2.578 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.485e-05/0.3412, allocations: 11.5 kB / 0.9561 GB, free: 2.566 MB / 0.7325 GB Notification: Performance of SimCode: time 3.81e-07/0.3413, allocations: 4 kB / 0.9561 GB, free: 2.562 MB / 0.7325 GB Notification: Performance of Templates: time 0.002856/0.3441, allocations: 0.594 MB / 0.9566 GB, free: 1.973 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Conversions_Validation_RealToInteger.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches