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.01424/0.01424, allocations: 103.7 kB / 15.74 MB, free: 5.988 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.00224/0.00224, allocations: 190.1 kB / 16.67 MB, free: 5.914 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 / 240.4 MB, free: 15.07 MB / 206.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.298/2.298, allocations: 390.2 MB / 0.6648 GB, free: 0.6328 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001225/0.001225, allocations: 67.88 kB / 0.9508 GB, free: 7.645 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.093/1.095, allocations: 140.4 MB / 1.088 GB, free: 5.5 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger): time 0.002034/1.097, allocations: 0.6032 MB / 1.089 GB, free: 5.125 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001013/1.098, allocations: 0.8276 MB / 1.089 GB, free: 4.5 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.131e-05/1.098, allocations: 0.875 kB / 1.089 GB, free: 4.5 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.015e-05/1.098, allocations: 4.5 kB / 1.089 GB, free: 4.496 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 7.549e-05/1.098, allocations: 5.5 kB / 1.089 GB, free: 4.492 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001612/1.098, allocations: 10.23 kB / 1.089 GB, free: 4.488 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 8.628e-05/1.098, allocations: 30.19 kB / 1.089 GB, free: 4.473 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001179/1.098, allocations: 12.97 kB / 1.089 GB, free: 4.465 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 7.051e-05/1.098, allocations: 5.766 kB / 1.089 GB, free: 4.465 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 6.148e-05/1.098, allocations: 23.58 kB / 1.089 GB, free: 4.449 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.948e-05/1.099, allocations: 2.562 kB / 1.089 GB, free: 4.449 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 1.196e-05/1.099, allocations: 2.156 kB / 1.089 GB, free: 4.449 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.357e-05/1.099, allocations: 6.172 kB / 1.089 GB, free: 4.445 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 3.785e-05/1.099, allocations: 11.66 kB / 1.089 GB, free: 4.438 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001053/1.099, allocations: 27.89 kB / 1.089 GB, free: 4.426 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.541e-06/1.099, allocations: 0 / 1.089 GB, free: 4.426 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.284e-06/1.099, allocations: 0 / 1.089 GB, free: 4.426 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.148e-05/1.099, allocations: 0 / 1.089 GB, free: 4.426 MB / 0.8575 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.0004575/1.099, allocations: 333.7 kB / 1.09 GB, free: 4.07 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.184e-05/1.099, allocations: 9.812 kB / 1.09 GB, free: 4.07 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.736e-05/1.099, allocations: 6.672 kB / 1.09 GB, free: 4.066 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001066/1.099, allocations: 170.4 kB / 1.09 GB, free: 3.867 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.721e-05/1.099, allocations: 1.062 kB / 1.09 GB, free: 3.867 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.716e-05/1.099, allocations: 3.219 kB / 1.09 GB, free: 3.867 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002132/1.1, allocations: 55.28 kB / 1.09 GB, free: 3.828 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.27e-05/1.1, allocations: 192 / 1.09 GB, free: 3.828 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.476e-05/1.1, allocations: 7.938 kB / 1.09 GB, free: 3.82 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.953e-06/1.1, allocations: 9.297 kB / 1.09 GB, free: 3.812 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001846/1.1, allocations: 33.88 kB / 1.09 GB, free: 3.809 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003733/1.1, allocations: 245.8 kB / 1.09 GB, free: 3.539 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001485/1.1, allocations: 46.34 kB / 1.09 GB, free: 3.504 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001028/1.101, allocations: 28.89 kB / 1.09 GB, free: 3.488 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.171e-05/1.101, allocations: 1 kB / 1.09 GB, free: 3.488 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.422e-05/1.101, allocations: 36.52 kB / 1.09 GB, free: 3.445 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=2): time 1.383e-06/1.101, allocations: 0 / 1.09 GB, free: 3.445 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2): time 0.0003926/1.101, allocations: 83.05 kB / 1.09 GB, free: 3.406 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.43e-05/1.101, allocations: 56.88 kB / 1.091 GB, free: 3.34 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.679e-05/1.101, allocations: 101.1 kB / 1.091 GB, free: 3.238 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 7.935e-06/1.101, allocations: 29.64 kB / 1.091 GB, free: 3.203 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 3.599e-05/1.101, allocations: 86.27 kB / 1.091 GB, free: 3.117 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.457e-05/1.101, allocations: 5.844 kB / 1.091 GB, free: 3.113 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.661e-05/1.101, allocations: 12.61 kB / 1.091 GB, free: 3.098 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 6.147e-05/1.101, allocations: 313.2 kB / 1.091 GB, free: 2.785 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.216e-05/1.101, allocations: 18.67 kB / 1.091 GB, free: 2.781 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.49e-05/1.102, allocations: 23.45 kB / 1.091 GB, free: 2.773 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001599/1.102, allocations: 39.3 kB / 1.091 GB, free: 2.762 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.412e-06/1.102, allocations: 0 / 1.091 GB, free: 2.762 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.000208/1.102, allocations: 70.48 kB / 1.091 GB, free: 2.723 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.695e-05/1.102, allocations: 8.562 kB / 1.091 GB, free: 2.719 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.304e-06/1.102, allocations: 0.7969 kB / 1.091 GB, free: 2.719 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.633e-05/1.102, allocations: 5.125 kB / 1.091 GB, free: 2.715 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001096/1.102, allocations: 12.72 kB / 1.091 GB, free: 2.711 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.785e-06/1.102, allocations: 5.047 kB / 1.091 GB, free: 2.707 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.082e-05/1.102, allocations: 9.625 kB / 1.091 GB, free: 2.703 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.304e-06/1.102, allocations: 1.734 kB / 1.091 GB, free: 2.703 MB / 0.8575 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 6.533e-05/1.102, allocations: 116.1 kB / 1.091 GB, free: 2.582 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.388e-05/1.102, allocations: 5.688 kB / 1.091 GB, free: 2.578 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.245e-05/1.102, allocations: 4.734 kB / 1.091 GB, free: 2.574 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.464e-06/1.102, allocations: 0.75 kB / 1.091 GB, free: 2.574 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/1.102, allocations: 1.312 kB / 1.091 GB, free: 2.574 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.485e-06/1.102, allocations: 0 / 1.091 GB, free: 2.574 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001361/1.102, allocations: 164.9 kB / 1.092 GB, free: 2.375 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/1.102, allocations: 0 / 1.092 GB, free: 2.375 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.746e-05/1.103, allocations: 13.89 kB / 1.092 GB, free: 2.371 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.823e-06/1.103, allocations: 1.188 kB / 1.092 GB, free: 2.371 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.538e-06/1.103, allocations: 0.6094 kB / 1.092 GB, free: 2.371 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/1.103, allocations: 4.969 kB / 1.092 GB, free: 2.367 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/1.103, allocations: 0 / 1.092 GB, free: 2.367 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002259/1.103, allocations: 169.1 kB / 1.092 GB, free: 2.223 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.223e-05/1.103, allocations: 79.17 kB / 1.092 GB, free: 2.129 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.364e-05/1.103, allocations: 2.078 kB / 1.092 GB, free: 2.129 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.604e-05/1.103, allocations: 5.375 kB / 1.092 GB, free: 2.129 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.539e-05/1.103, allocations: 8.672 kB / 1.092 GB, free: 2.125 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.378e-06/1.103, allocations: 1 kB / 1.092 GB, free: 2.125 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 2.727e-05/1.103, allocations: 83.86 kB / 1.092 GB, free: 2.047 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.3e-07/1.103, allocations: 1.094 kB / 1.092 GB, free: 2.047 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002055/1.103, allocations: 3.125 kB / 1.092 GB, free: 2.047 MB / 0.8575 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 9.635e-05/1.103, allocations: 97.5 kB / 1.092 GB, free: 1.957 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002455/1.104, allocations: 45.91 kB / 1.092 GB, free: 1.945 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/1.104, allocations: 0 / 1.092 GB, free: 1.945 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 9.705e-05/1.104, allocations: 24.47 kB / 1.092 GB, free: 1.941 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002736/1.104, allocations: 12.06 kB / 1.092 GB, free: 1.934 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003141/1.104, allocations: 111.2 kB / 1.092 GB, free: 1.824 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001379/1.104, allocations: 0.6761 MB / 1.093 GB, free: 1.129 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 3.196e-05/1.105, allocations: 6.312 kB / 1.093 GB, free: 1.125 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.735e-05/1.105, allocations: 10.73 kB / 1.093 GB, free: 1.117 MB / 0.8575 GB Notification: Performance of SimCode: time 2.1e-07/1.105, allocations: 3.938 kB / 1.093 GB, free: 1.113 MB / 0.8575 GB Notification: Performance of Templates: time 0.003196/1.108, allocations: 0.5996 MB / 1.093 GB, free: 1.035 MB / 0.8575 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