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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.001475/0.001476, allocations: 111.9 kB / 15.61 MB, free: 128 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.001538/0.001538, allocations: 192.7 kB / 16.53 MB, free: 6.668 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.477/1.477, allocations: 222.9 MB / 240.2 MB, free: 4.363 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.565/2.565, allocations: 390.2 MB / 0.6646 GB, free: 244 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001502/0.001502, allocations: 71.88 kB / 0.8125 GB, free: 14.25 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.877/0.8785, allocations: 140.4 MB / 0.9496 GB, free: 9.211 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger): time 0.002424/0.881, allocations: 0.6152 MB / 0.9502 GB, free: 8.738 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001059/0.8821, allocations: 0.8188 MB / 0.951 GB, free: 8.07 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.247e-05/0.8822, allocations: 1.25 kB / 0.951 GB, free: 8.07 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.948e-05/0.8822, allocations: 7.922 kB / 0.951 GB, free: 8.062 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.46e-05/0.8823, allocations: 3.984 kB / 0.951 GB, free: 8.059 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001645/0.8825, allocations: 15.69 kB / 0.951 GB, free: 8.047 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 8.364e-05/0.8826, allocations: 26.92 kB / 0.951 GB, free: 8.031 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001462/0.8827, allocations: 11.33 kB / 0.9511 GB, free: 8.023 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.031e-05/0.8828, allocations: 7.719 kB / 0.9511 GB, free: 8.02 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.985e-05/0.8829, allocations: 20.66 kB / 0.9511 GB, free: 8.004 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.327e-05/0.8829, allocations: 1.375 kB / 0.9511 GB, free: 8.004 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.368e-05/0.8829, allocations: 2.688 kB / 0.9511 GB, free: 8.004 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.894e-05/0.883, allocations: 5.344 kB / 0.9511 GB, free: 8 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.426e-05/0.883, allocations: 10.55 kB / 0.9511 GB, free: 7.992 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 8.614e-05/0.8831, allocations: 27.97 kB / 0.9511 GB, free: 7.969 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.45e-06/0.8831, allocations: 0 / 0.9511 GB, free: 7.969 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.285e-06/0.8831, allocations: 1.281 kB / 0.9511 GB, free: 7.969 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.913e-06/0.8831, allocations: 0 / 0.9511 GB, free: 7.969 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.0004604/0.8836, allocations: 334.8 kB / 0.9514 GB, free: 7.605 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.01e-05/0.8836, allocations: 9.531 kB / 0.9515 GB, free: 7.605 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.515e-05/0.8837, allocations: 2.344 kB / 0.9515 GB, free: 7.605 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.981e-05/0.8838, allocations: 169.6 kB / 0.9516 GB, free: 7.402 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.592e-05/0.8838, allocations: 5.75 kB / 0.9516 GB, free: 7.398 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.348e-05/0.8838, allocations: 4.375 kB / 0.9516 GB, free: 7.395 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001907/0.884, allocations: 59.23 kB / 0.9517 GB, free: 7.344 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.154e-05/0.884, allocations: 4.172 kB / 0.9517 GB, free: 7.34 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.173e-05/0.8841, allocations: 3.938 kB / 0.9517 GB, free: 7.336 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.07e-05/0.8841, allocations: 0.9375 kB / 0.9517 GB, free: 7.336 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001802/0.8843, allocations: 35.27 kB / 0.9517 GB, free: 7.32 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003332/0.8846, allocations: 258.4 kB / 0.952 GB, free: 7.027 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001339/0.8847, allocations: 41.22 kB / 0.952 GB, free: 6.992 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.35e-05/0.8848, allocations: 29.92 kB / 0.952 GB, free: 6.969 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.001e-05/0.8849, allocations: 1.344 kB / 0.952 GB, free: 6.969 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.946e-05/0.8849, allocations: 30.56 kB / 0.9521 GB, free: 6.93 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 1.052e-06/0.8849, allocations: 5.594 kB / 0.9521 GB, free: 6.926 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.0003918/0.8853, allocations: 80.98 kB / 0.9522 GB, free: 6.871 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.692e-05/0.8853, allocations: 52.62 kB / 0.9522 GB, free: 6.809 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.971e-05/0.8854, allocations: 102.5 kB / 0.9523 GB, free: 6.703 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.223e-05/0.8854, allocations: 26.92 kB / 0.9523 GB, free: 6.672 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.948e-05/0.8855, allocations: 81.36 kB / 0.9524 GB, free: 6.59 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.065e-05/0.8855, allocations: 11.84 kB / 0.9524 GB, free: 6.578 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.391e-05/0.8855, allocations: 17.62 kB / 0.9524 GB, free: 6.559 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.793e-05/0.8856, allocations: 314.8 kB / 0.9527 GB, free: 6.242 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.753e-05/0.8857, allocations: 22.67 kB / 0.9528 GB, free: 6.23 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.441e-05/0.8858, allocations: 17.61 kB / 0.9528 GB, free: 6.223 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001565/0.8859, allocations: 48.25 kB / 0.9528 GB, free: 6.191 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.482e-06/0.8859, allocations: 0 / 0.9528 GB, free: 6.191 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001954/0.8861, allocations: 70.66 kB / 0.9529 GB, free: 6.141 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.687e-05/0.8862, allocations: 4.375 kB / 0.9529 GB, free: 6.141 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.881e-06/0.8862, allocations: 0 / 0.9529 GB, free: 6.141 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.996e-05/0.8862, allocations: 1.438 kB / 0.9529 GB, free: 6.141 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001135/0.8863, allocations: 9.578 kB / 0.9529 GB, free: 6.137 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.626e-06/0.8863, allocations: 5.594 kB / 0.9529 GB, free: 6.133 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.59e-05/0.8864, allocations: 6.828 kB / 0.9529 GB, free: 6.129 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.067e-06/0.8864, allocations: 9.375 kB / 0.9529 GB, free: 6.121 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 9.089e-05/0.8865, allocations: 115.3 kB / 0.953 GB, free: 6 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.561e-05/0.8865, allocations: 1.344 kB / 0.953 GB, free: 6 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.177e-05/0.8866, allocations: 3.125 kB / 0.953 GB, free: 5.996 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.933e-06/0.8866, allocations: 1.438 kB / 0.953 GB, free: 5.996 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.065e-06/0.8866, allocations: 0 / 0.953 GB, free: 5.996 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-06/0.8866, allocations: 4 kB / 0.953 GB, free: 5.992 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001846/0.8868, allocations: 162.8 kB / 0.9532 GB, free: 5.789 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.8868, allocations: 0 / 0.9532 GB, free: 5.789 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.75e-05/0.8869, allocations: 10.3 kB / 0.9532 GB, free: 5.785 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.008e-06/0.8869, allocations: 5.312 kB / 0.9532 GB, free: 5.781 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.106e-05/0.8869, allocations: 0 / 0.9532 GB, free: 5.781 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.17e-06/0.8869, allocations: 1.375 kB / 0.9532 GB, free: 5.781 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.814e-06/0.887, allocations: 0 / 0.9532 GB, free: 5.781 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002927/0.8873, allocations: 171.4 kB / 0.9534 GB, free: 5.621 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 4.515e-05/0.8873, allocations: 78.2 kB / 0.9534 GB, free: 5.527 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.051e-05/0.8873, allocations: 0.9375 kB / 0.9534 GB, free: 5.527 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.721e-05/0.8874, allocations: 12.05 kB / 0.9535 GB, free: 5.52 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.722e-05/0.8875, allocations: 10.02 kB / 0.9535 GB, free: 5.512 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.149e-06/0.8875, allocations: 1.156 kB / 0.9535 GB, free: 5.512 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.904e-05/0.8876, allocations: 78.72 kB / 0.9535 GB, free: 5.438 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.8876, allocations: 4.031 kB / 0.9536 GB, free: 5.434 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002309/0.8878, allocations: 7.844 kB / 0.9536 GB, free: 5.43 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 0.0001976/0.888, allocations: 97.22 kB / 0.9537 GB, free: 5.344 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002979/0.8883, allocations: 37.67 kB / 0.9537 GB, free: 5.328 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/0.8883, allocations: 1.125 kB / 0.9537 GB, free: 5.328 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.00011/0.8885, allocations: 32.19 kB / 0.9537 GB, free: 5.309 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004306/0.8889, allocations: 8 kB / 0.9537 GB, free: 5.305 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004868/0.8894, allocations: 114.4 kB / 0.9538 GB, free: 5.188 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002709/0.8897, allocations: 0.6811 MB / 0.9545 GB, free: 4.484 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 4.26e-05/0.8897, allocations: 2.156 kB / 0.9545 GB, free: 4.484 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.272e-05/0.8898, allocations: 13.72 kB / 0.9545 GB, free: 4.473 MB / 0.7169 GB Notification: Performance of SimCode: time 2.1e-07/0.8898, allocations: 0 / 0.9545 GB, free: 4.473 MB / 0.7169 GB Notification: Performance of Templates: time 0.003778/0.8936, allocations: 0.5932 MB / 0.9551 GB, free: 4.168 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/jenkins/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