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/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.473/2.473, allocations: 390.3 MB / 405.3 MB, free: 13.46 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001211/0.001211, allocations: 177.1 kB / 498.1 MB, free: 5.719 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.585/1.585, allocations: 223.2 MB / 0.7949 GB, free: 17.86 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001006/0.001006, allocations: 100.2 kB / 0.9346 GB, free: 6.156 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.000371/0.0003709, allocations: 13.34 kB / 1.084 GB, free: 221.2 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3227/0.3231, allocations: 142.3 MB / 1.223 GB, free: 114.2 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2031/0.5262, allocations: 148.8 MB / 1.368 GB, free: 13.14 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002473/0.5265, allocations: 71.95 kB / 1.368 GB, free: 13.07 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.002011/0.5285, allocations: 0.7122 MB / 1.369 GB, free: 12.36 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.445e-06/0.5285, allocations: 0 / 1.369 GB, free: 12.36 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 1.001e-05/0.5286, allocations: 4 kB / 1.369 GB, free: 12.36 MB / 0.8698 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.0003993/0.529, allocations: 350 kB / 1.369 GB, free: 11.97 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.475e-05/0.529, allocations: 8.031 kB / 1.369 GB, free: 11.96 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.475e-05/0.5291, allocations: 3.938 kB / 1.369 GB, free: 11.96 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001637/0.5292, allocations: 167 kB / 1.37 GB, free: 11.75 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.527e-05/0.5293, allocations: 3.984 kB / 1.37 GB, free: 11.75 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.622e-05/0.5293, allocations: 3.984 kB / 1.37 GB, free: 11.75 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001969/0.5295, allocations: 61.61 kB / 1.37 GB, free: 11.68 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.297e-06/0.5295, allocations: 4 kB / 1.37 GB, free: 11.68 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.13e-05/0.5295, allocations: 0 / 1.37 GB, free: 11.68 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.148e-05/0.5296, allocations: 0 / 1.37 GB, free: 11.68 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001764/0.5297, allocations: 51.89 kB / 1.37 GB, free: 11.62 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003913/0.5301, allocations: 256.9 kB / 1.37 GB, free: 11.32 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001364/0.5303, allocations: 42.5 kB / 1.37 GB, free: 11.27 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 1.727e-05/0.5303, allocations: 0 / 1.37 GB, free: 11.27 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.151e-05/0.5303, allocations: 34.62 kB / 1.37 GB, free: 11.23 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=2): time 8.42e-07/0.5303, allocations: 4 kB / 1.37 GB, free: 11.23 MB / 0.8698 GB Notification: Performance of matching and sorting (n=2): time 0.0003859/0.5307, allocations: 97.62 kB / 1.37 GB, free: 11.12 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4e-05/0.5308, allocations: 63.53 kB / 1.37 GB, free: 11.05 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.102e-05/0.5309, allocations: 89 kB / 1.37 GB, free: 10.96 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 1.339e-05/0.5309, allocations: 25.7 kB / 1.37 GB, free: 10.93 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 5.723e-05/0.5309, allocations: 88.05 kB / 1.37 GB, free: 10.84 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 1.698e-05/0.531, allocations: 3.938 kB / 1.37 GB, free: 10.83 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.768e-06/0.531, allocations: 0 / 1.37 GB, free: 10.83 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001155/0.5311, allocations: 322.8 kB / 1.371 GB, free: 10.51 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.075e-05/0.5312, allocations: 27.92 kB / 1.371 GB, free: 10.48 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.491e-05/0.5313, allocations: 19.98 kB / 1.371 GB, free: 10.46 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.546e-05/0.5314, allocations: 27.97 kB / 1.371 GB, free: 10.43 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.5314, allocations: 0 / 1.371 GB, free: 10.43 MB / 0.8698 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001985/0.5316, allocations: 81.62 kB / 1.371 GB, free: 10.35 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.808e-05/0.5316, allocations: 4 kB / 1.371 GB, free: 10.34 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.935e-06/0.5316, allocations: 4 kB / 1.371 GB, free: 10.34 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.75e-05/0.5316, allocations: 0 / 1.371 GB, free: 10.34 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001043/0.5318, allocations: 16.02 kB / 1.371 GB, free: 10.32 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.37e-06/0.5318, allocations: 0 / 1.371 GB, free: 10.32 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.571e-05/0.5318, allocations: 8 kB / 1.371 GB, free: 10.32 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.621e-06/0.5318, allocations: 4 kB / 1.371 GB, free: 10.31 MB / 0.8698 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 7.972e-05/0.5319, allocations: 113.8 kB / 1.371 GB, free: 10.19 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.175e-05/0.532, allocations: 0 / 1.371 GB, free: 10.19 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.316e-05/0.532, allocations: 7.125 kB / 1.371 GB, free: 10.18 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.503e-06/0.532, allocations: 3.938 kB / 1.371 GB, free: 10.18 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/0.532, allocations: 4 kB / 1.371 GB, free: 10.18 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.428e-06/0.532, allocations: 0 / 1.371 GB, free: 10.18 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001638/0.5322, allocations: 169.5 kB / 1.371 GB, free: 9.961 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.21e-07/0.5322, allocations: 0 / 1.371 GB, free: 9.961 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.037e-05/0.5323, allocations: 11.94 kB / 1.371 GB, free: 9.949 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.853e-06/0.5323, allocations: 4 kB / 1.371 GB, free: 9.945 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.004e-05/0.5323, allocations: 3.984 kB / 1.371 GB, free: 9.941 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.183e-06/0.5323, allocations: 0 / 1.371 GB, free: 9.941 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.5323, allocations: 0 / 1.371 GB, free: 9.941 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002562/0.5326, allocations: 179.5 kB / 1.371 GB, free: 9.75 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 3.691e-05/0.5326, allocations: 77.11 kB / 1.371 GB, free: 9.656 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.562e-05/0.5326, allocations: 4 kB / 1.371 GB, free: 9.652 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.384e-05/0.5327, allocations: 16.02 kB / 1.371 GB, free: 9.637 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.935e-05/0.5328, allocations: 0 / 1.371 GB, free: 9.637 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.813e-06/0.5328, allocations: 4.172 kB / 1.371 GB, free: 9.633 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 4.994e-05/0.5329, allocations: 87.27 kB / 1.371 GB, free: 9.547 MB / 0.8698 GB Notification: Performance of sort global known variables: time 1.31e-07/0.5329, allocations: 3.938 kB / 1.371 GB, free: 9.543 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0002058/0.5331, allocations: 8 kB / 1.371 GB, free: 9.535 MB / 0.8698 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.0001808/0.5333, allocations: 103 kB / 1.372 GB, free: 9.426 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.0002302/0.5335, allocations: 51.95 kB / 1.372 GB, free: 9.375 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.5335, allocations: 4 kB / 1.372 GB, free: 9.371 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 9.832e-05/0.5336, allocations: 32.03 kB / 1.372 GB, free: 9.34 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002073/0.5338, allocations: 7.953 kB / 1.372 GB, free: 9.332 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003146/0.5342, allocations: 114.9 kB / 1.372 GB, free: 9.188 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002358/0.5344, allocations: 0.6809 MB / 1.372 GB, free: 8.48 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 3.559e-05/0.5345, allocations: 11.91 kB / 1.372 GB, free: 8.469 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.738e-05/0.5345, allocations: 15.44 kB / 1.372 GB, free: 8.453 MB / 0.8698 GB Notification: Performance of SimCode: time 2.2e-07/0.5345, allocations: 0 / 1.372 GB, free: 8.453 MB / 0.8698 GB Notification: Performance of Templates: time 0.002352/0.5369, allocations: 493.4 kB / 1.373 GB, free: 7.973 MB / 0.8698 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","../files/Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches