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.001587/0.001587, allocations: 108 kB / 15.6 MB, free: 132 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.001709/0.001709, allocations: 195.5 kB / 16.53 MB, free: 6.391 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.545/1.545, allocations: 222.9 MB / 240.2 MB, free: 4.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.977/2.977, allocations: 472.6 MB / 0.7451 GB, free: 4.633 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001207/0.001207, allocations: 64.45 kB / 0.9121 GB, free: 33.35 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4257/0.4269, allocations: 159.9 MB / 1.068 GB, free: 10.36 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger): time 0.002118/0.4291, allocations: 0.6107 MB / 1.069 GB, free: 9.75 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0009606/0.4301, allocations: 0.8295 MB / 1.07 GB, free: 8.91 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.024e-05/0.4301, allocations: 0 / 1.07 GB, free: 8.91 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 3.198e-05/0.4302, allocations: 0 / 1.07 GB, free: 8.91 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 6.861e-05/0.4303, allocations: 7.938 kB / 1.07 GB, free: 8.902 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001511/0.4304, allocations: 19.97 kB / 1.07 GB, free: 8.883 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 6.966e-05/0.4305, allocations: 23.92 kB / 1.07 GB, free: 8.859 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001109/0.4306, allocations: 8 kB / 1.07 GB, free: 8.852 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 6.809e-05/0.4307, allocations: 11.92 kB / 1.07 GB, free: 8.84 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 5.847e-05/0.4308, allocations: 11.98 kB / 1.07 GB, free: 8.828 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.93e-05/0.4308, allocations: 4 kB / 1.07 GB, free: 8.824 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 1.015e-05/0.4308, allocations: 0 / 1.07 GB, free: 8.824 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.027e-05/0.4308, allocations: 11.92 kB / 1.07 GB, free: 8.812 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 2.987e-05/0.4309, allocations: 8 kB / 1.07 GB, free: 8.805 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 8.182e-05/0.4309, allocations: 23.89 kB / 1.07 GB, free: 8.781 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.431, allocations: 4 kB / 1.07 GB, free: 8.777 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.814e-06/0.431, allocations: 0 / 1.07 GB, free: 8.777 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 9.017e-06/0.431, allocations: 0 / 1.07 GB, free: 8.777 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.0005585/0.4315, allocations: 339.8 kB / 1.07 GB, free: 8.395 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.794e-05/0.4316, allocations: 8.031 kB / 1.07 GB, free: 8.387 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.461e-05/0.4316, allocations: 8.875 kB / 1.07 GB, free: 8.379 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001199/0.4318, allocations: 164.3 kB / 1.07 GB, free: 8.18 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.387e-05/0.4318, allocations: 384 / 1.07 GB, free: 8.18 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.957e-06/0.4318, allocations: 384 / 1.07 GB, free: 8.18 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001851/0.432, allocations: 62.2 kB / 1.07 GB, free: 8.113 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.364e-06/0.432, allocations: 4.188 kB / 1.07 GB, free: 8.109 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.377e-05/0.432, allocations: 7.875 kB / 1.07 GB, free: 8.102 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.36e-06/0.432, allocations: 0 / 1.07 GB, free: 8.102 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001781/0.4322, allocations: 39.95 kB / 1.07 GB, free: 8.062 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004148/0.4326, allocations: 252.8 kB / 1.071 GB, free: 7.766 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001485/0.4328, allocations: 42.53 kB / 1.071 GB, free: 7.715 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.605e-05/0.4329, allocations: 24.91 kB / 1.071 GB, free: 7.688 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.036e-05/0.4329, allocations: 0 / 1.071 GB, free: 7.688 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.133e-05/0.433, allocations: 34.55 kB / 1.071 GB, free: 7.645 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=2): time 1.362e-06/0.433, allocations: 4 kB / 1.071 GB, free: 7.641 MB / 0.8262 GB Notification: Performance of matching and sorting (n=2): time 0.0003776/0.4334, allocations: 93.48 kB / 1.071 GB, free: 7.543 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.432e-05/0.4334, allocations: 51.41 kB / 1.071 GB, free: 7.48 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.349e-05/0.4335, allocations: 97.86 kB / 1.071 GB, free: 7.375 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.504e-05/0.4335, allocations: 25.7 kB / 1.071 GB, free: 7.344 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 4.272e-05/0.4336, allocations: 84.12 kB / 1.071 GB, free: 7.258 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.944e-05/0.4336, allocations: 12.11 kB / 1.071 GB, free: 7.246 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.025e-05/0.4337, allocations: 13.72 kB / 1.071 GB, free: 7.227 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001207/0.4338, allocations: 314.8 kB / 1.071 GB, free: 6.91 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.013e-05/0.4339, allocations: 19.97 kB / 1.071 GB, free: 6.891 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.76e-05/0.434, allocations: 19.98 kB / 1.071 GB, free: 6.871 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001625/0.4341, allocations: 48.88 kB / 1.071 GB, free: 6.82 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.4341, allocations: 0 / 1.071 GB, free: 6.82 MB / 0.8262 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.000201/0.4343, allocations: 77.44 kB / 1.072 GB, free: 6.738 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.546e-05/0.4344, allocations: 4 kB / 1.072 GB, free: 6.734 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.95e-06/0.4344, allocations: 0 / 1.072 GB, free: 6.734 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.189e-05/0.4344, allocations: 0 / 1.072 GB, free: 6.734 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001005/0.4345, allocations: 11.98 kB / 1.072 GB, free: 6.723 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.642e-06/0.4345, allocations: 3.984 kB / 1.072 GB, free: 6.719 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.125e-05/0.4346, allocations: 8.031 kB / 1.072 GB, free: 6.711 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.159e-06/0.4346, allocations: 0 / 1.072 GB, free: 6.711 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 8.363e-05/0.4347, allocations: 113.8 kB / 1.072 GB, free: 6.59 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.625e-05/0.4347, allocations: 7.984 kB / 1.072 GB, free: 6.582 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.972e-05/0.4347, allocations: 3.125 kB / 1.072 GB, free: 6.578 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.573e-06/0.4347, allocations: 0 / 1.072 GB, free: 6.578 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.097e-06/0.4347, allocations: 0 / 1.072 GB, free: 6.578 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.275e-06/0.4347, allocations: 0 / 1.072 GB, free: 6.578 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001601/0.4349, allocations: 157.6 kB / 1.072 GB, free: 6.375 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.4349, allocations: 8 kB / 1.072 GB, free: 6.367 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.847e-05/0.435, allocations: 11.98 kB / 1.072 GB, free: 6.355 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.418e-06/0.435, allocations: 0 / 1.072 GB, free: 6.355 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.765e-06/0.435, allocations: 3.938 kB / 1.072 GB, free: 6.352 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.129e-06/0.435, allocations: 7.984 kB / 1.072 GB, free: 6.344 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.435, allocations: 0 / 1.072 GB, free: 6.344 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002608/0.4353, allocations: 175.3 kB / 1.072 GB, free: 6.156 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.447e-05/0.4354, allocations: 81.02 kB / 1.072 GB, free: 6.059 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.405e-05/0.4354, allocations: 0 / 1.072 GB, free: 6.059 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.279e-05/0.4355, allocations: 7.984 kB / 1.072 GB, free: 6.051 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.31e-05/0.4355, allocations: 4 kB / 1.072 GB, free: 6.047 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.186e-06/0.4355, allocations: 0 / 1.072 GB, free: 6.047 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.967e-05/0.4356, allocations: 91.44 kB / 1.072 GB, free: 5.957 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1e-07/0.4356, allocations: 0 / 1.072 GB, free: 5.957 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002129/0.4358, allocations: 4 kB / 1.072 GB, free: 5.953 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.0001202/0.4359, allocations: 99.81 kB / 1.072 GB, free: 5.844 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003564/0.4363, allocations: 43.89 kB / 1.072 GB, free: 5.801 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/0.4363, allocations: 4 kB / 1.072 GB, free: 5.797 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 8.805e-05/0.4364, allocations: 15.98 kB / 1.072 GB, free: 5.781 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002822/0.4367, allocations: 16.05 kB / 1.072 GB, free: 5.766 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003116/0.437, allocations: 113.4 kB / 1.072 GB, free: 5.629 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002675/0.4373, allocations: 0.6729 MB / 1.073 GB, free: 4.93 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.183e-05/0.4373, allocations: 4 kB / 1.073 GB, free: 4.926 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.349e-05/0.4374, allocations: 15.42 kB / 1.073 GB, free: 4.91 MB / 0.8262 GB Notification: Performance of SimCode: time 6.51e-07/0.4374, allocations: 4 kB / 1.073 GB, free: 4.906 MB / 0.8262 GB Notification: Performance of Templates: time 0.002737/0.4401, allocations: 0.5952 MB / 1.074 GB, free: 4.316 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