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.001473/0.001473, allocations: 100.1 kB / 15.88 MB, free: 8 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001785/0.001785, allocations: 198.2 kB / 16.79 MB, free: 6.828 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.469/1.469, allocations: 222.9 MB / 240.5 MB, free: 4.547 MB / 190.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.368/2.368, allocations: 390.2 MB / 0.6649 GB, free: 0.6836 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001397/0.001397, allocations: 59.91 kB / 0.8125 GB, free: 14.91 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6003/0.6017, allocations: 140.4 MB / 0.9496 GB, free: 9.129 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger): time 0.001796/0.6036, allocations: 0.68 MB / 0.9502 GB, free: 8.609 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0007243/0.6043, allocations: 0.822 MB / 0.9511 GB, free: 7.938 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.326e-05/0.6044, allocations: 1.375 kB / 0.9511 GB, free: 7.938 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.414e-05/0.6044, allocations: 3.938 kB / 0.9511 GB, free: 7.934 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.033e-05/0.6045, allocations: 0 / 0.9511 GB, free: 7.934 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001248/0.6046, allocations: 20.09 kB / 0.9511 GB, free: 7.918 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 5.866e-05/0.6047, allocations: 22.92 kB / 0.9511 GB, free: 7.906 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.5e-05/0.6048, allocations: 6.75 kB / 0.9511 GB, free: 7.902 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 5.632e-05/0.6048, allocations: 8.109 kB / 0.9511 GB, free: 7.898 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.714e-05/0.6049, allocations: 12.06 kB / 0.9511 GB, free: 7.891 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.417e-05/0.6049, allocations: 5.375 kB / 0.9511 GB, free: 7.887 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.132e-05/0.6049, allocations: 1.375 kB / 0.9511 GB, free: 7.887 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.856e-05/0.6049, allocations: 5.359 kB / 0.9511 GB, free: 7.883 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.749e-05/0.605, allocations: 13.3 kB / 0.9511 GB, free: 7.871 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 6.013e-05/0.605, allocations: 20.09 kB / 0.9512 GB, free: 7.855 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.605, allocations: 0 / 0.9512 GB, free: 7.855 MB / 0.7169 GB Notification: Performance of FrontEnd: time 8.32e-07/0.6051, allocations: 1.375 kB / 0.9512 GB, free: 7.855 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.208e-06/0.6051, allocations: 0 / 0.9512 GB, free: 7.855 MB / 0.7169 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.0003865/0.6054, allocations: 335.2 kB / 0.9515 GB, free: 7.492 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.337e-05/0.6055, allocations: 12.25 kB / 0.9515 GB, free: 7.488 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.025e-05/0.6055, allocations: 6.297 kB / 0.9515 GB, free: 7.484 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.693e-05/0.6056, allocations: 165.7 kB / 0.9517 GB, free: 7.285 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.038e-05/0.6056, allocations: 9.625 kB / 0.9517 GB, free: 7.277 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.498e-06/0.6056, allocations: 1.75 kB / 0.9517 GB, free: 7.277 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001709/0.6058, allocations: 50.61 kB / 0.9517 GB, free: 7.234 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.973e-06/0.6058, allocations: 192 / 0.9517 GB, free: 7.234 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.061e-05/0.6058, allocations: 7.922 kB / 0.9517 GB, free: 7.227 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.117e-06/0.6059, allocations: 1.375 kB / 0.9517 GB, free: 7.227 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000176/0.606, allocations: 39.2 kB / 0.9518 GB, free: 7.207 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002699/0.6063, allocations: 254.5 kB / 0.952 GB, free: 6.918 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001304/0.6065, allocations: 48.17 kB / 0.9521 GB, free: 6.875 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.913e-05/0.6066, allocations: 26.47 kB / 0.9521 GB, free: 6.855 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.656e-05/0.6066, allocations: 1.375 kB / 0.9521 GB, free: 6.855 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.37e-05/0.6066, allocations: 30.56 kB / 0.9521 GB, free: 6.816 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 1.182e-06/0.6066, allocations: 1.375 kB / 0.9521 GB, free: 6.816 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.0003545/0.607, allocations: 81.27 kB / 0.9522 GB, free: 6.762 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.066e-05/0.607, allocations: 60.84 kB / 0.9523 GB, free: 6.691 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.475e-05/0.607, allocations: 103.3 kB / 0.9523 GB, free: 6.586 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 8.166e-06/0.6071, allocations: 25.7 kB / 0.9524 GB, free: 6.555 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.339e-05/0.6071, allocations: 81.52 kB / 0.9525 GB, free: 6.473 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.575e-05/0.6071, allocations: 7.844 kB / 0.9525 GB, free: 6.465 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.908e-05/0.6071, allocations: 20.45 kB / 0.9525 GB, free: 6.441 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.227e-05/0.6072, allocations: 312.2 kB / 0.9528 GB, free: 6.129 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.721e-05/0.6073, allocations: 17.61 kB / 0.9528 GB, free: 6.121 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.668e-05/0.6074, allocations: 21.59 kB / 0.9528 GB, free: 6.109 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001551/0.6075, allocations: 38.02 kB / 0.9528 GB, free: 6.09 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.6075, allocations: 0 / 0.9528 GB, free: 6.09 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001924/0.6077, allocations: 76.81 kB / 0.9529 GB, free: 6.031 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.223e-05/0.6078, allocations: 10.06 kB / 0.9529 GB, free: 6.027 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.709e-06/0.6078, allocations: 0 / 0.9529 GB, free: 6.027 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.104e-05/0.6078, allocations: 0 / 0.9529 GB, free: 6.027 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001025/0.6079, allocations: 10.95 kB / 0.9529 GB, free: 6.023 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.791e-06/0.6079, allocations: 0 / 0.9529 GB, free: 6.023 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.643e-05/0.608, allocations: 12.11 kB / 0.953 GB, free: 6.016 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.312e-06/0.608, allocations: 1.031 kB / 0.953 GB, free: 6.016 MB / 0.7169 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 5.624e-05/0.608, allocations: 115 kB / 0.9531 GB, free: 5.895 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.415e-05/0.6081, allocations: 5.156 kB / 0.9531 GB, free: 5.891 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.873e-05/0.6081, allocations: 4.125 kB / 0.9531 GB, free: 5.887 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.205e-06/0.6081, allocations: 1.25 kB / 0.9531 GB, free: 5.887 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.6081, allocations: 0 / 0.9531 GB, free: 5.887 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.204e-06/0.6081, allocations: 0 / 0.9531 GB, free: 5.887 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001072/0.6082, allocations: 162.3 kB / 0.9532 GB, free: 5.684 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/0.6082, allocations: 1.438 kB / 0.9532 GB, free: 5.684 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.888e-05/0.6083, allocations: 9.547 kB / 0.9532 GB, free: 5.68 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.985e-06/0.6083, allocations: 5.375 kB / 0.9532 GB, free: 5.676 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.014e-06/0.6083, allocations: 3.938 kB / 0.9532 GB, free: 5.672 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/0.6083, allocations: 4 kB / 0.9533 GB, free: 5.668 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.6083, allocations: 1.406 kB / 0.9533 GB, free: 5.668 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002176/0.6086, allocations: 172 kB / 0.9534 GB, free: 5.508 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.573e-05/0.6086, allocations: 77.11 kB / 0.9535 GB, free: 5.414 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.366e-05/0.6086, allocations: 5.266 kB / 0.9535 GB, free: 5.41 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.244e-05/0.6087, allocations: 3.781 kB / 0.9535 GB, free: 5.41 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.375e-05/0.6087, allocations: 14.58 kB / 0.9535 GB, free: 5.398 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.388e-06/0.6088, allocations: 1.281 kB / 0.9535 GB, free: 5.398 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.089e-05/0.6088, allocations: 77.5 kB / 0.9536 GB, free: 5.324 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.5e-07/0.6088, allocations: 1.281 kB / 0.9536 GB, free: 5.324 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002149/0.609, allocations: 3.125 kB / 0.9536 GB, free: 5.324 MB / 0.7169 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 8.298e-05/0.6091, allocations: 106.1 kB / 0.9537 GB, free: 5.23 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002185/0.6093, allocations: 39.03 kB / 0.9537 GB, free: 5.215 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.774e-06/0.6093, allocations: 0 / 0.9537 GB, free: 5.215 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 9.094e-05/0.6094, allocations: 28.91 kB / 0.9538 GB, free: 5.199 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002794/0.6097, allocations: 7.172 kB / 0.9538 GB, free: 5.195 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002856/0.61, allocations: 129.1 kB / 0.9539 GB, free: 5.051 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.912e-05/0.6101, allocations: 0.6825 MB / 0.9546 GB, free: 4.348 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.172e-05/0.6101, allocations: 8.812 kB / 0.9546 GB, free: 4.34 MB / 0.7169 GB Notification: Performance of SimCode: time 8.31e-07/0.6102, allocations: 0 / 0.9546 GB, free: 4.34 MB / 0.7169 GB Notification: Performance of Templates: time 0.001673/0.6118, allocations: 0.6025 MB / 0.9552 GB, free: 4.039 MB / 0.7169 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 -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