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.001701/0.001701, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001952/0.001952, allocations: 198.5 kB / 16.14 MB, free: 6.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.55/1.55, allocations: 222.9 MB / 239.8 MB, free: 4.625 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.67/2.67, allocations: 390.2 MB / 0.6642 GB, free: 0.582 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001226/0.001226, allocations: 63.89 kB / 0.8119 GB, free: 14.86 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7958/0.7971, allocations: 140.3 MB / 0.9489 GB, free: 9.129 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger): time 0.001972/0.7991, allocations: 0.6911 MB / 0.9496 GB, free: 8.598 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0007876/0.7999, allocations: 0.8187 MB / 0.9504 GB, free: 7.93 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.208e-05/0.7999, allocations: 1.219 kB / 0.9504 GB, free: 7.93 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.984e-05/0.8, allocations: 3.938 kB / 0.9504 GB, free: 7.926 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.277e-05/0.8, allocations: 0 / 0.9504 GB, free: 7.926 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000134/0.8002, allocations: 16.14 kB / 0.9504 GB, free: 7.914 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 6.594e-05/0.8003, allocations: 26.27 kB / 0.9504 GB, free: 7.898 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001088/0.8004, allocations: 2.656 kB / 0.9504 GB, free: 7.898 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 6.085e-05/0.8004, allocations: 16.52 kB / 0.9505 GB, free: 7.887 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.491e-05/0.8005, allocations: 11.98 kB / 0.9505 GB, free: 7.879 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.093e-05/0.8005, allocations: 1.312 kB / 0.9505 GB, free: 7.879 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.404e-05/0.8006, allocations: 1.438 kB / 0.9505 GB, free: 7.879 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.105e-05/0.8006, allocations: 9.172 kB / 0.9505 GB, free: 7.871 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.061e-05/0.8006, allocations: 6.75 kB / 0.9505 GB, free: 7.867 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 7.886e-05/0.8007, allocations: 28.02 kB / 0.9505 GB, free: 7.844 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.8007, allocations: 4 kB / 0.9505 GB, free: 7.84 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.513e-06/0.8007, allocations: 1.375 kB / 0.9505 GB, free: 7.84 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.128e-06/0.8007, allocations: 0 / 0.9505 GB, free: 7.84 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.0004217/0.8011, allocations: 339 kB / 0.9508 GB, free: 7.473 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.025e-05/0.8012, allocations: 12.19 kB / 0.9509 GB, free: 7.469 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.08e-05/0.8012, allocations: 2.312 kB / 0.9509 GB, free: 7.469 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.875e-05/0.8013, allocations: 165.7 kB / 0.951 GB, free: 7.27 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.401e-05/0.8014, allocations: 1.75 kB / 0.951 GB, free: 7.27 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.318e-05/0.8014, allocations: 5.75 kB / 0.951 GB, free: 7.266 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001742/0.8016, allocations: 50.61 kB / 0.9511 GB, free: 7.223 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.057e-06/0.8016, allocations: 192 / 0.9511 GB, free: 7.223 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.241e-05/0.8016, allocations: 7.922 kB / 0.9511 GB, free: 7.215 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.05e-06/0.8016, allocations: 1.375 kB / 0.9511 GB, free: 7.215 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001676/0.8018, allocations: 31.22 kB / 0.9511 GB, free: 7.203 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00031/0.8021, allocations: 258.5 kB / 0.9514 GB, free: 6.91 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001305/0.8022, allocations: 44.23 kB / 0.9514 GB, free: 6.871 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.915e-05/0.8023, allocations: 26.41 kB / 0.9514 GB, free: 6.852 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.566e-05/0.8023, allocations: 1.375 kB / 0.9514 GB, free: 6.852 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.657e-05/0.8024, allocations: 30.56 kB / 0.9515 GB, free: 6.812 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 1.202e-06/0.8024, allocations: 5.375 kB / 0.9515 GB, free: 6.809 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.0003565/0.8027, allocations: 85.2 kB / 0.9515 GB, free: 6.75 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.697e-05/0.8028, allocations: 56.77 kB / 0.9516 GB, free: 6.684 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.432e-05/0.8028, allocations: 99.36 kB / 0.9517 GB, free: 6.582 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 9.688e-06/0.8029, allocations: 25.7 kB / 0.9517 GB, free: 6.551 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.167e-05/0.8029, allocations: 81.52 kB / 0.9518 GB, free: 6.469 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.066e-05/0.8029, allocations: 11.97 kB / 0.9518 GB, free: 6.457 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.31e-05/0.803, allocations: 20.45 kB / 0.9518 GB, free: 6.434 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.279e-05/0.803, allocations: 312.2 kB / 0.9521 GB, free: 6.121 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.225e-05/0.8031, allocations: 17.61 kB / 0.9521 GB, free: 6.113 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.776e-05/0.8032, allocations: 17.59 kB / 0.9522 GB, free: 6.105 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001564/0.8034, allocations: 49.45 kB / 0.9522 GB, free: 6.074 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.8034, allocations: 4 kB / 0.9522 GB, free: 6.07 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001933/0.8036, allocations: 74.28 kB / 0.9523 GB, free: 6.016 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.789e-05/0.8036, allocations: 5.688 kB / 0.9523 GB, free: 6.016 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.671e-06/0.8036, allocations: 1.375 kB / 0.9523 GB, free: 6.016 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.817e-05/0.8036, allocations: 0 / 0.9523 GB, free: 6.016 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001055/0.8037, allocations: 10.86 kB / 0.9523 GB, free: 6.012 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.911e-06/0.8038, allocations: 4.031 kB / 0.9523 GB, free: 6.008 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.477e-05/0.8038, allocations: 8.109 kB / 0.9523 GB, free: 6.004 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.55e-06/0.8038, allocations: 0 / 0.9523 GB, free: 6.004 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.859e-05/0.8039, allocations: 116.5 kB / 0.9524 GB, free: 5.883 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.358e-05/0.8039, allocations: 1.562 kB / 0.9524 GB, free: 5.883 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.001e-05/0.8039, allocations: 7.109 kB / 0.9524 GB, free: 5.875 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.093e-06/0.8039, allocations: 1.375 kB / 0.9524 GB, free: 5.875 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.501e-06/0.804, allocations: 3.984 kB / 0.9524 GB, free: 5.871 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.384e-06/0.804, allocations: 4 kB / 0.9524 GB, free: 5.867 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001163/0.8041, allocations: 159.1 kB / 0.9526 GB, free: 5.668 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.8041, allocations: 0 / 0.9526 GB, free: 5.668 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.973e-05/0.8042, allocations: 9.484 kB / 0.9526 GB, free: 5.664 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.553e-06/0.8042, allocations: 1.375 kB / 0.9526 GB, free: 5.664 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.617e-06/0.8042, allocations: 0 / 0.9526 GB, free: 5.664 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.906e-06/0.8042, allocations: 1.375 kB / 0.9526 GB, free: 5.664 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.295e-06/0.8042, allocations: 3.938 kB / 0.9526 GB, free: 5.66 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002226/0.8044, allocations: 176 kB / 0.9528 GB, free: 5.496 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.73e-05/0.8045, allocations: 82.44 kB / 0.9528 GB, free: 5.398 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.242e-05/0.8045, allocations: 0 / 0.9528 GB, free: 5.398 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.952e-05/0.8046, allocations: 4.375 kB / 0.9528 GB, free: 5.398 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.866e-05/0.8046, allocations: 10.8 kB / 0.9529 GB, free: 5.391 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.636e-06/0.8046, allocations: 0 / 0.9529 GB, free: 5.391 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.106e-05/0.8047, allocations: 83.48 kB / 0.9529 GB, free: 5.312 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.6e-07/0.8047, allocations: 4.031 kB / 0.9529 GB, free: 5.309 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002109/0.8049, allocations: 4.562 kB / 0.9529 GB, free: 5.309 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.0001048/0.805, allocations: 98.94 kB / 0.953 GB, free: 5.219 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.000244/0.8052, allocations: 43.3 kB / 0.9531 GB, free: 5.199 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.8052, allocations: 0 / 0.9531 GB, free: 5.199 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001185/0.8054, allocations: 24.33 kB / 0.9531 GB, free: 5.188 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003475/0.8057, allocations: 7.844 kB / 0.9531 GB, free: 5.184 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003919/0.8061, allocations: 102.9 kB / 0.9532 GB, free: 5.07 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001638/0.8063, allocations: 0.6734 MB / 0.9539 GB, free: 4.375 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 4.061e-05/0.8063, allocations: 2.656 kB / 0.9539 GB, free: 4.375 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.831e-05/0.8064, allocations: 20.83 kB / 0.9539 GB, free: 4.355 MB / 0.7169 GB Notification: Performance of SimCode: time 2.61e-07/0.8064, allocations: 0 / 0.9539 GB, free: 4.355 MB / 0.7169 GB Notification: Performance of Templates: time 0.003377/0.8098, allocations: 0.5131 MB / 0.9544 GB, free: 4.09 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