Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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_10_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_10_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.0009718/0.0009717, allocations: 98.88 kB / 16.02 MB, free: 76 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.001241/0.001241, allocations: 185.4 kB / 16.92 MB, free: 6.707 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.466/1.466, allocations: 223.3 MB / 241 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.696/2.696, allocations: 437.8 MB / 0.7128 GB, free: 7.043 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0004135/0.0004135, allocations: 12 kB / 0.8735 GB, free: 3.332 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7978/0.7983, allocations: 153.8 MB / 1.024 GB, free: 15.9 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger): time 0.0008698/0.7992, allocations: 353.1 kB / 1.024 GB, free: 15.56 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001104/0.8003, allocations: 0.8195 MB / 1.025 GB, free: 14.73 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.257e-05/0.8004, allocations: 0 / 1.025 GB, free: 14.73 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 1.634e-05/0.8004, allocations: 0 / 1.025 GB, free: 14.73 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 6.887e-05/0.8005, allocations: 7.984 kB / 1.025 GB, free: 14.72 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001643/0.8006, allocations: 15.94 kB / 1.025 GB, free: 14.7 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 6.756e-05/0.8007, allocations: 27.97 kB / 1.025 GB, free: 14.68 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 9.798e-05/0.8008, allocations: 0 / 1.025 GB, free: 14.68 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 7.804e-05/0.8009, allocations: 11.92 kB / 1.025 GB, free: 14.66 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 5.623e-05/0.801, allocations: 15.92 kB / 1.025 GB, free: 14.65 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.781e-05/0.801, allocations: 7.938 kB / 1.025 GB, free: 14.64 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 1.036e-05/0.801, allocations: 0 / 1.025 GB, free: 14.64 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 1.975e-05/0.8011, allocations: 3.938 kB / 1.025 GB, free: 14.64 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 5.623e-05/0.8011, allocations: 41.69 kB / 1.025 GB, free: 14.59 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.000108/0.8012, allocations: 15.95 kB / 1.025 GB, free: 14.57 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.98e-06/0.8012, allocations: 0 / 1.025 GB, free: 14.57 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.914e-06/0.8012, allocations: 0 / 1.025 GB, free: 14.57 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.55e-06/0.8013, allocations: 0 / 1.025 GB, free: 14.57 MB / 0.7794 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.0004563/0.8017, allocations: 347.3 kB / 1.025 GB, free: 14.19 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.209e-05/0.8018, allocations: 8.031 kB / 1.025 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.444e-05/0.8018, allocations: 4.938 kB / 1.025 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001672/0.802, allocations: 168.3 kB / 1.025 GB, free: 13.97 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.582e-05/0.802, allocations: 384 / 1.025 GB, free: 13.97 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.209e-05/0.802, allocations: 4.375 kB / 1.025 GB, free: 13.97 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001924/0.8022, allocations: 54.23 kB / 1.026 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.447e-06/0.8022, allocations: 4.172 kB / 1.026 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.282e-05/0.8023, allocations: 3.938 kB / 1.026 GB, free: 13.9 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.062e-06/0.8023, allocations: 3.984 kB / 1.026 GB, free: 13.9 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001967/0.8025, allocations: 55.91 kB / 1.026 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003587/0.8029, allocations: 245 kB / 1.026 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001467/0.803, allocations: 50.48 kB / 1.026 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000103/0.8031, allocations: 28.91 kB / 1.026 GB, free: 13.46 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.648e-05/0.8032, allocations: 0 / 1.026 GB, free: 13.46 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.436e-05/0.8032, allocations: 34.56 kB / 1.026 GB, free: 13.42 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=2): time 8.61e-07/0.8032, allocations: 4 kB / 1.026 GB, free: 13.42 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2): time 0.000487/0.8037, allocations: 101.6 kB / 1.026 GB, free: 13.31 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.497e-05/0.8037, allocations: 59.52 kB / 1.026 GB, free: 13.24 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001361/0.8039, allocations: 97.86 kB / 1.026 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.323e-05/0.8039, allocations: 25.7 kB / 1.026 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 3.797e-05/0.8039, allocations: 80.14 kB / 1.026 GB, free: 13.02 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.242e-05/0.804, allocations: 15.84 kB / 1.026 GB, free: 13.01 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.664e-05/0.804, allocations: 13.7 kB / 1.026 GB, free: 12.99 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001486/0.8042, allocations: 310.8 kB / 1.027 GB, free: 12.68 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.982e-05/0.8043, allocations: 27.98 kB / 1.027 GB, free: 12.65 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.364e-05/0.8043, allocations: 15.98 kB / 1.027 GB, free: 12.63 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001841/0.8045, allocations: 64.81 kB / 1.027 GB, free: 12.57 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.554e-06/0.8046, allocations: 0 / 1.027 GB, free: 12.57 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002223/0.8048, allocations: 77.59 kB / 1.027 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.852e-05/0.8048, allocations: 9.875 kB / 1.027 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.508e-06/0.8048, allocations: 4.031 kB / 1.027 GB, free: 12.47 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.181e-05/0.8048, allocations: 0 / 1.027 GB, free: 12.47 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001032/0.8049, allocations: 11.98 kB / 1.027 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.089e-06/0.805, allocations: 3.938 kB / 1.027 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.389e-05/0.805, allocations: 11.98 kB / 1.027 GB, free: 12.45 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.993e-06/0.805, allocations: 7.938 kB / 1.027 GB, free: 12.44 MB / 0.7794 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 7.793e-05/0.8051, allocations: 118.3 kB / 1.027 GB, free: 12.31 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.557e-05/0.8052, allocations: 4 kB / 1.027 GB, free: 12.31 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.94e-05/0.8052, allocations: 3.125 kB / 1.027 GB, free: 12.3 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-06/0.8052, allocations: 0 / 1.027 GB, free: 12.3 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.038e-06/0.8052, allocations: 0 / 1.027 GB, free: 12.3 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.063e-06/0.8052, allocations: 0 / 1.027 GB, free: 12.3 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001505/0.8054, allocations: 161.6 kB / 1.027 GB, free: 12.1 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-06/0.8054, allocations: 7.938 kB / 1.027 GB, free: 12.09 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.266e-05/0.8054, allocations: 11.98 kB / 1.027 GB, free: 12.08 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.415e-06/0.8055, allocations: 4 kB / 1.027 GB, free: 12.07 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.113e-06/0.8055, allocations: 0 / 1.027 GB, free: 12.07 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.392e-06/0.8055, allocations: 0 / 1.027 GB, free: 12.07 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.8055, allocations: 0 / 1.027 GB, free: 12.07 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002677/0.8057, allocations: 183.4 kB / 1.027 GB, free: 11.88 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.567e-05/0.8058, allocations: 77.11 kB / 1.027 GB, free: 11.79 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.352e-05/0.8058, allocations: 3.984 kB / 1.027 GB, free: 11.78 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.497e-05/0.8059, allocations: 12 kB / 1.027 GB, free: 11.77 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.52e-05/0.806, allocations: 3.984 kB / 1.027 GB, free: 11.77 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.496e-06/0.806, allocations: 4 kB / 1.027 GB, free: 11.76 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 4.883e-05/0.806, allocations: 79.28 kB / 1.027 GB, free: 11.68 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.21e-07/0.806, allocations: 32 / 1.027 GB, free: 11.68 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002138/0.8062, allocations: 12 kB / 1.028 GB, free: 11.67 MB / 0.7794 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.0001265/0.8064, allocations: 103.5 kB / 1.028 GB, free: 11.56 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002346/0.8066, allocations: 47.97 kB / 1.028 GB, free: 11.52 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.8066, allocations: 0 / 1.028 GB, free: 11.52 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001036/0.8067, allocations: 27.97 kB / 1.028 GB, free: 11.49 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002713/0.807, allocations: 7.938 kB / 1.028 GB, free: 11.48 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003166/0.8073, allocations: 134.3 kB / 1.028 GB, free: 11.31 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003898/0.8077, allocations: 0.6811 MB / 1.028 GB, free: 10.61 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.13e-05/0.8078, allocations: 7.438 kB / 1.028 GB, free: 10.6 MB / 0.7794 GB Notification: Performance of SimCode: time 4.4e-07/0.8078, allocations: 4 kB / 1.028 GB, free: 10.59 MB / 0.7794 GB Notification: Performance of Templates: time 0.001935/0.8097, allocations: 0.5893 MB / 1.029 GB, free: 10.01 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Conversions_Validation_RealToInteger.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches