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.001039/0.001039, allocations: 91.61 kB / 15.06 MB, free: 1.098 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.001389/0.001389, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.44/1.44, allocations: 223.3 MB / 240 MB, free: 5.426 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.71/2.71, allocations: 390.9 MB / 0.666 GB, free: 2.508 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003762/0.0003762, allocations: 12 kB / 0.8154 GB, free: 13.66 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8697/0.8701, allocations: 142.4 MB / 0.9544 GB, free: 7.742 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger): time 0.0009095/0.871, allocations: 348 kB / 0.9548 GB, free: 7.48 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0009294/0.872, allocations: 0.8169 MB / 0.9556 GB, free: 6.812 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.562e-05/0.872, allocations: 1.281 kB / 0.9556 GB, free: 6.812 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.804e-05/0.8721, allocations: 0 / 0.9556 GB, free: 6.812 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.5e-05/0.8721, allocations: 7.922 kB / 0.9556 GB, free: 6.805 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001655/0.8723, allocations: 12.06 kB / 0.9556 GB, free: 6.797 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 7.797e-05/0.8724, allocations: 24.3 kB / 0.9556 GB, free: 6.781 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001154/0.8725, allocations: 6.297 kB / 0.9556 GB, free: 6.777 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 7.538e-05/0.8726, allocations: 8.453 kB / 0.9556 GB, free: 6.773 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.914e-05/0.8727, allocations: 15.92 kB / 0.9556 GB, free: 6.762 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.835e-05/0.8727, allocations: 1.094 kB / 0.9556 GB, free: 6.762 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.096e-05/0.8727, allocations: 1.094 kB / 0.9556 GB, free: 6.762 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.229e-05/0.8727, allocations: 1.344 kB / 0.9556 GB, free: 6.762 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.22e-05/0.8728, allocations: 34.95 kB / 0.9557 GB, free: 6.723 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 6.278e-05/0.8728, allocations: 18.67 kB / 0.9557 GB, free: 6.707 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 7.364e-06/0.8729, allocations: 0.9062 kB / 0.9557 GB, free: 6.707 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.114e-06/0.8729, allocations: 0 / 0.9557 GB, free: 6.707 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.052e-06/0.8729, allocations: 0 / 0.9557 GB, free: 6.707 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.0004457/0.8733, allocations: 341.9 kB / 0.956 GB, free: 6.344 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.809e-05/0.8734, allocations: 8.969 kB / 0.956 GB, free: 6.344 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.617e-05/0.8734, allocations: 6.516 kB / 0.956 GB, free: 6.34 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.769e-05/0.8735, allocations: 175 kB / 0.9562 GB, free: 6.129 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.383e-05/0.8736, allocations: 1.406 kB / 0.9562 GB, free: 6.129 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.719e-05/0.8736, allocations: 1.094 kB / 0.9562 GB, free: 6.129 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001992/0.8738, allocations: 54.73 kB / 0.9563 GB, free: 6.086 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.034e-05/0.8738, allocations: 0 / 0.9563 GB, free: 6.086 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.269e-05/0.8738, allocations: 0.9375 kB / 0.9563 GB, free: 6.086 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.53e-06/0.8739, allocations: 0 / 0.9563 GB, free: 6.086 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000187/0.874, allocations: 54.47 kB / 0.9563 GB, free: 6.062 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003494/0.8744, allocations: 249.5 kB / 0.9565 GB, free: 5.777 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001373/0.8745, allocations: 48.41 kB / 0.9566 GB, free: 5.738 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.861e-05/0.8746, allocations: 32.67 kB / 0.9566 GB, free: 5.719 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.841e-05/0.8747, allocations: 0 / 0.9566 GB, free: 5.719 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.038e-05/0.8747, allocations: 31.75 kB / 0.9567 GB, free: 5.68 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 8.62e-07/0.8747, allocations: 4 kB / 0.9567 GB, free: 5.676 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.0003719/0.8751, allocations: 104.7 kB / 0.9568 GB, free: 5.613 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.055e-05/0.8751, allocations: 60.53 kB / 0.9568 GB, free: 5.543 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.15e-05/0.8752, allocations: 106.3 kB / 0.9569 GB, free: 5.434 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.121e-05/0.8752, allocations: 26.8 kB / 0.9569 GB, free: 5.402 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.209e-05/0.8752, allocations: 81.17 kB / 0.957 GB, free: 5.32 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.228e-05/0.8753, allocations: 9.469 kB / 0.957 GB, free: 5.312 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.208e-06/0.8753, allocations: 0 / 0.957 GB, free: 5.312 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.5e-05/0.8754, allocations: 314.8 kB / 0.9573 GB, free: 4.996 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.33e-05/0.8754, allocations: 26.34 kB / 0.9574 GB, free: 4.984 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.403e-05/0.8755, allocations: 23.45 kB / 0.9574 GB, free: 4.977 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.44e-05/0.8756, allocations: 18.92 kB / 0.9574 GB, free: 4.973 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.345e-06/0.8756, allocations: 0 / 0.9574 GB, free: 4.973 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002087/0.8758, allocations: 83.59 kB / 0.9575 GB, free: 4.918 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.13e-05/0.8759, allocations: 5.125 kB / 0.9575 GB, free: 4.918 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.783e-06/0.8759, allocations: 0 / 0.9575 GB, free: 4.918 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.982e-05/0.8759, allocations: 4.953 kB / 0.9575 GB, free: 4.914 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001092/0.876, allocations: 20.2 kB / 0.9575 GB, free: 4.902 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.402e-06/0.876, allocations: 1.188 kB / 0.9575 GB, free: 4.902 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.123e-05/0.8761, allocations: 10.27 kB / 0.9575 GB, free: 4.898 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.15e-06/0.8761, allocations: 0 / 0.9575 GB, free: 4.898 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.187e-05/0.8762, allocations: 117.5 kB / 0.9576 GB, free: 4.777 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.304e-05/0.8762, allocations: 1 kB / 0.9576 GB, free: 4.777 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.326e-05/0.8762, allocations: 8.453 kB / 0.9576 GB, free: 4.77 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.383e-06/0.8762, allocations: 0 / 0.9576 GB, free: 4.77 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.085e-06/0.8762, allocations: 9.203 kB / 0.9576 GB, free: 4.762 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.8763, allocations: 0 / 0.9576 GB, free: 4.762 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001199/0.8764, allocations: 153.7 kB / 0.9578 GB, free: 4.566 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.21e-07/0.8764, allocations: 1.156 kB / 0.9578 GB, free: 4.566 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.334e-05/0.8765, allocations: 12.45 kB / 0.9578 GB, free: 4.562 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.693e-06/0.8765, allocations: 0 / 0.9578 GB, free: 4.562 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.316e-06/0.8765, allocations: 1.219 kB / 0.9578 GB, free: 4.562 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.363e-06/0.8765, allocations: 0 / 0.9578 GB, free: 4.562 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.8765, allocations: 1.219 kB / 0.9578 GB, free: 4.562 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002272/0.8767, allocations: 185.1 kB / 0.958 GB, free: 4.398 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.278e-05/0.8768, allocations: 82.39 kB / 0.9581 GB, free: 4.301 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.999e-05/0.8768, allocations: 5.281 kB / 0.9581 GB, free: 4.297 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.032e-05/0.8769, allocations: 13.98 kB / 0.9581 GB, free: 4.289 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.085e-05/0.8769, allocations: 10.39 kB / 0.9581 GB, free: 4.281 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.438e-06/0.8769, allocations: 5.125 kB / 0.9581 GB, free: 4.277 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.327e-05/0.877, allocations: 81.7 kB / 0.9582 GB, free: 4.199 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.877, allocations: 1.188 kB / 0.9582 GB, free: 4.199 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002106/0.8772, allocations: 7.766 kB / 0.9582 GB, free: 4.195 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001201/0.8773, allocations: 107.1 kB / 0.9583 GB, free: 4.098 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002148/0.8775, allocations: 49.52 kB / 0.9583 GB, free: 4.082 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.8776, allocations: 0 / 0.9583 GB, free: 4.082 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 9.337e-05/0.8777, allocations: 33.11 kB / 0.9584 GB, free: 4.066 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002752/0.8779, allocations: 2.594 kB / 0.9584 GB, free: 4.066 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002889/0.8782, allocations: 104.5 kB / 0.9585 GB, free: 3.949 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001171/0.8784, allocations: 0.6776 MB / 0.9591 GB, free: 3.25 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.45e-05/0.8784, allocations: 5.906 kB / 0.9591 GB, free: 3.246 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.775e-05/0.8784, allocations: 9.281 kB / 0.9591 GB, free: 3.238 MB / 0.7169 GB Notification: Performance of SimCode: time 2.2e-07/0.8784, allocations: 0 / 0.9591 GB, free: 3.238 MB / 0.7169 GB Notification: Performance of Templates: time 0.002584/0.881, allocations: 499.3 kB / 0.9596 GB, free: 2.988 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