Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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_latest_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_latest_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.001687/0.001688, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.002145/0.002145, allocations: 193.2 kB / 16.14 MB, free: 6.645 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.533/1.533, allocations: 222.9 MB / 239.8 MB, free: 4.582 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.033/3.033, allocations: 472.6 MB / 0.7447 GB, free: 4.957 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002297/0.002298, allocations: 69.78 kB / 0.9114 GB, free: 33.62 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4541/0.4565, allocations: 159.9 MB / 1.068 GB, free: 10.84 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger): time 0.002512/0.459, allocations: 0.6879 MB / 1.068 GB, free: 10.15 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001113/0.4602, allocations: 0.8274 MB / 1.069 GB, free: 9.312 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.207e-05/0.4602, allocations: 0 / 1.069 GB, free: 9.312 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 3.827e-05/0.4603, allocations: 3.938 kB / 1.069 GB, free: 9.309 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 7.088e-05/0.4604, allocations: 4 kB / 1.069 GB, free: 9.305 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001627/0.4605, allocations: 19.97 kB / 1.069 GB, free: 9.285 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 6.832e-05/0.4606, allocations: 19.94 kB / 1.069 GB, free: 9.266 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001114/0.4607, allocations: 7.984 kB / 1.069 GB, free: 9.258 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 7.191e-05/0.4608, allocations: 7.938 kB / 1.069 GB, free: 9.25 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 6.315e-05/0.4609, allocations: 11.98 kB / 1.069 GB, free: 9.238 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.188e-05/0.4609, allocations: 4 kB / 1.069 GB, free: 9.234 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 1.098e-05/0.4609, allocations: 3.938 kB / 1.069 GB, free: 9.23 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 1.723e-05/0.4609, allocations: 0 / 1.069 GB, free: 9.23 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 3.913e-05/0.461, allocations: 19.91 kB / 1.069 GB, free: 9.211 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 7.875e-05/0.4611, allocations: 19.97 kB / 1.069 GB, free: 9.191 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.4611, allocations: 0 / 1.069 GB, free: 9.191 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.283e-06/0.4611, allocations: 0 / 1.069 GB, free: 9.191 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.599e-06/0.4611, allocations: 0 / 1.069 GB, free: 9.191 MB / 0.8262 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.0005076/0.4616, allocations: 341.3 kB / 1.069 GB, free: 8.809 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.404e-05/0.4617, allocations: 8.031 kB / 1.07 GB, free: 8.801 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.525e-05/0.4617, allocations: 0.9375 kB / 1.07 GB, free: 8.801 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000161/0.4619, allocations: 176.2 kB / 1.07 GB, free: 8.59 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.062e-05/0.4619, allocations: 8.312 kB / 1.07 GB, free: 8.582 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.445e-05/0.4619, allocations: 384 / 1.07 GB, free: 8.582 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001958/0.4621, allocations: 50.23 kB / 1.07 GB, free: 8.527 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.566e-06/0.4621, allocations: 192 / 1.07 GB, free: 8.527 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.841e-05/0.4622, allocations: 11.94 kB / 1.07 GB, free: 8.516 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.31e-06/0.4622, allocations: 3.938 kB / 1.07 GB, free: 8.512 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001906/0.4624, allocations: 35.95 kB / 1.07 GB, free: 8.477 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004023/0.4628, allocations: 249 kB / 1.07 GB, free: 8.184 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001533/0.4629, allocations: 42.44 kB / 1.07 GB, free: 8.133 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001006/0.4631, allocations: 28.89 kB / 1.07 GB, free: 8.102 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.902e-05/0.4631, allocations: 0 / 1.07 GB, free: 8.102 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.821e-05/0.4631, allocations: 34.56 kB / 1.07 GB, free: 8.059 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=2): time 9.72e-07/0.4631, allocations: 0 / 1.07 GB, free: 8.059 MB / 0.8262 GB Notification: Performance of matching and sorting (n=2): time 0.0004279/0.4636, allocations: 93.48 kB / 1.07 GB, free: 7.961 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.972e-05/0.4636, allocations: 51.41 kB / 1.07 GB, free: 7.898 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.812e-05/0.4637, allocations: 101.8 kB / 1.07 GB, free: 7.789 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.378e-05/0.4637, allocations: 25.7 kB / 1.07 GB, free: 7.758 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 5.2e-05/0.4638, allocations: 84.27 kB / 1.07 GB, free: 7.672 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.39e-05/0.4638, allocations: 8 kB / 1.07 GB, free: 7.664 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.913e-05/0.4639, allocations: 9.719 kB / 1.07 GB, free: 7.648 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001361/0.464, allocations: 314.8 kB / 1.071 GB, free: 7.332 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.01e-05/0.4641, allocations: 19.98 kB / 1.071 GB, free: 7.312 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.04e-05/0.4642, allocations: 15.98 kB / 1.071 GB, free: 7.297 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001779/0.4644, allocations: 44.88 kB / 1.071 GB, free: 7.25 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.4644, allocations: 0 / 1.071 GB, free: 7.25 MB / 0.8262 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002174/0.4646, allocations: 77.44 kB / 1.071 GB, free: 7.168 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.758e-05/0.4646, allocations: 8 kB / 1.071 GB, free: 7.16 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.68e-06/0.4646, allocations: 0 / 1.071 GB, free: 7.16 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.341e-05/0.4647, allocations: 0 / 1.071 GB, free: 7.16 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001172/0.4648, allocations: 11.98 kB / 1.071 GB, free: 7.148 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.654e-06/0.4648, allocations: 4.031 kB / 1.071 GB, free: 7.145 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.892e-05/0.4649, allocations: 11.98 kB / 1.071 GB, free: 7.133 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.165e-06/0.4649, allocations: 4 kB / 1.071 GB, free: 7.129 MB / 0.8262 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.653e-05/0.465, allocations: 111.3 kB / 1.071 GB, free: 7.012 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.723e-05/0.465, allocations: 4 kB / 1.071 GB, free: 7.008 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.223e-05/0.465, allocations: 3.125 kB / 1.071 GB, free: 7.004 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.914e-06/0.465, allocations: 0 / 1.071 GB, free: 7.004 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.85e-06/0.4651, allocations: 0 / 1.071 GB, free: 7.004 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.976e-06/0.4651, allocations: 4 kB / 1.071 GB, free: 7 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000179/0.4652, allocations: 169.6 kB / 1.071 GB, free: 6.785 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.926e-06/0.4653, allocations: 0 / 1.071 GB, free: 6.785 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.511e-05/0.4653, allocations: 15.92 kB / 1.071 GB, free: 6.77 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.736e-06/0.4653, allocations: 4.125 kB / 1.071 GB, free: 6.766 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.504e-06/0.4654, allocations: 0 / 1.071 GB, free: 6.766 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.4654, allocations: 0 / 1.071 GB, free: 6.766 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.556e-06/0.4654, allocations: 4 kB / 1.071 GB, free: 6.762 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002691/0.4656, allocations: 175.4 kB / 1.071 GB, free: 6.574 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.005e-05/0.4657, allocations: 81.02 kB / 1.072 GB, free: 6.477 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.523e-05/0.4657, allocations: 0 / 1.072 GB, free: 6.477 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001082/0.4658, allocations: 7.984 kB / 1.072 GB, free: 6.469 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.731e-05/0.4659, allocations: 7.984 kB / 1.072 GB, free: 6.461 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.358e-06/0.4659, allocations: 0 / 1.072 GB, free: 6.461 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.204e-05/0.466, allocations: 83.28 kB / 1.072 GB, free: 6.379 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.71e-07/0.466, allocations: 4.031 kB / 1.072 GB, free: 6.375 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.000225/0.4662, allocations: 4 kB / 1.072 GB, free: 6.371 MB / 0.8262 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.0001325/0.4663, allocations: 99.23 kB / 1.072 GB, free: 6.262 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002255/0.4666, allocations: 35.97 kB / 1.072 GB, free: 6.227 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.4666, allocations: 3.938 kB / 1.072 GB, free: 6.223 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 9.828e-05/0.4667, allocations: 28.03 kB / 1.072 GB, free: 6.195 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003098/0.467, allocations: 7.938 kB / 1.072 GB, free: 6.188 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003411/0.4673, allocations: 107.2 kB / 1.072 GB, free: 6.055 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002481/0.4676, allocations: 0.677 MB / 1.073 GB, free: 5.352 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.434e-05/0.4676, allocations: 3.938 kB / 1.073 GB, free: 5.348 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.562e-05/0.4677, allocations: 15.5 kB / 1.073 GB, free: 5.332 MB / 0.8262 GB Notification: Performance of SimCode: time 3e-07/0.4677, allocations: 0 / 1.073 GB, free: 5.332 MB / 0.8262 GB Notification: Performance of Templates: time 0.002848/0.4705, allocations: 0.5041 MB / 1.073 GB, free: 4.832 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Conversions_Validation_RealToInteger.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches