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.001733/0.001738, allocations: 113.5 kB / 16.41 MB, free: 6.492 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.002059/0.002059, allocations: 183 kB / 17.34 MB, free: 5.762 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.357/1.357, allocations: 222.9 MB / 241 MB, free: 15.14 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.257/2.257, allocations: 390.3 MB / 0.6655 GB, free: 0.6484 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001462/0.001462, allocations: 59.91 kB / 0.9515 GB, free: 7.688 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8877/0.8892, allocations: 140.4 MB / 1.089 GB, free: 5.531 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger): time 0.001774/0.891, allocations: 0.6217 MB / 1.089 GB, free: 5.141 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0008175/0.8918, allocations: 0.8227 MB / 1.09 GB, free: 4.52 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.376e-05/0.8919, allocations: 4.781 kB / 1.09 GB, free: 4.516 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 2.706e-05/0.8919, allocations: 4.5 kB / 1.09 GB, free: 4.512 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 6.057e-05/0.892, allocations: 1.094 kB / 1.09 GB, free: 4.512 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001389/0.8921, allocations: 14.89 kB / 1.09 GB, free: 4.504 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 7.111e-05/0.8922, allocations: 26.66 kB / 1.09 GB, free: 4.492 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 9.093e-05/0.8923, allocations: 15.44 kB / 1.09 GB, free: 4.48 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 6.957e-05/0.8924, allocations: 14.81 kB / 1.09 GB, free: 4.473 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 5.449e-05/0.8924, allocations: 15.28 kB / 1.09 GB, free: 4.465 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.649e-05/0.8924, allocations: 2.188 kB / 1.09 GB, free: 4.465 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 9.127e-06/0.8924, allocations: 2.188 kB / 1.09 GB, free: 4.465 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.592e-05/0.8925, allocations: 6.641 kB / 1.09 GB, free: 4.461 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 2.898e-05/0.8925, allocations: 7.344 kB / 1.09 GB, free: 4.457 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 9.065e-05/0.8926, allocations: 31.2 kB / 1.09 GB, free: 4.441 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.8926, allocations: 0 / 1.09 GB, free: 4.441 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.244e-06/0.8926, allocations: 0.6094 kB / 1.09 GB, free: 4.441 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 9.989e-06/0.8926, allocations: 1.094 kB / 1.09 GB, free: 4.441 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.0004029/0.893, allocations: 333.1 kB / 1.09 GB, free: 4.086 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.191e-05/0.8931, allocations: 9.156 kB / 1.09 GB, free: 4.086 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.661e-05/0.8931, allocations: 6.641 kB / 1.09 GB, free: 4.082 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000113/0.8932, allocations: 167.4 kB / 1.091 GB, free: 3.887 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.114e-05/0.8933, allocations: 384 / 1.091 GB, free: 3.887 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.083e-05/0.8933, allocations: 2.531 kB / 1.091 GB, free: 3.887 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001753/0.8935, allocations: 59.58 kB / 1.091 GB, free: 3.844 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.834e-06/0.8935, allocations: 5.125 kB / 1.091 GB, free: 3.84 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.08e-05/0.8935, allocations: 3.938 kB / 1.091 GB, free: 3.836 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.448e-06/0.8935, allocations: 0.75 kB / 1.091 GB, free: 3.836 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001815/0.8937, allocations: 34.48 kB / 1.091 GB, free: 3.832 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003005/0.894, allocations: 249.3 kB / 1.091 GB, free: 3.559 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001305/0.8941, allocations: 47.14 kB / 1.091 GB, free: 3.523 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.991e-05/0.8942, allocations: 27.45 kB / 1.091 GB, free: 3.508 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.802e-05/0.8943, allocations: 1.75 kB / 1.091 GB, free: 3.508 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.139e-05/0.8943, allocations: 31.53 kB / 1.091 GB, free: 3.469 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=2): time 9.92e-07/0.8943, allocations: 0 / 1.091 GB, free: 3.469 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2): time 0.0003755/0.8947, allocations: 87.61 kB / 1.091 GB, free: 3.426 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.657e-05/0.8947, allocations: 53.12 kB / 1.091 GB, free: 3.363 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.561e-05/0.8948, allocations: 101.1 kB / 1.091 GB, free: 3.262 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.021e-05/0.8948, allocations: 25.7 kB / 1.091 GB, free: 3.23 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 3.018e-05/0.8949, allocations: 85.59 kB / 1.091 GB, free: 3.145 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.91e-05/0.8949, allocations: 1.594 kB / 1.091 GB, free: 3.145 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.413e-05/0.8949, allocations: 18.14 kB / 1.091 GB, free: 3.125 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 5.72e-05/0.895, allocations: 312.9 kB / 1.092 GB, free: 2.812 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.201e-05/0.8951, allocations: 26.97 kB / 1.092 GB, free: 2.801 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.533e-05/0.8952, allocations: 18.83 kB / 1.092 GB, free: 2.797 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001676/0.8954, allocations: 38.72 kB / 1.092 GB, free: 2.785 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.8954, allocations: 1.062 kB / 1.092 GB, free: 2.785 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001976/0.8956, allocations: 77.02 kB / 1.092 GB, free: 2.738 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.418e-05/0.8956, allocations: 5.188 kB / 1.092 GB, free: 2.738 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.36e-06/0.8956, allocations: 5.844 kB / 1.092 GB, free: 2.734 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.301e-05/0.8956, allocations: 0 / 1.092 GB, free: 2.734 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001011/0.8957, allocations: 9.594 kB / 1.092 GB, free: 2.734 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.949e-06/0.8957, allocations: 0 / 1.092 GB, free: 2.734 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.305e-05/0.8958, allocations: 10.52 kB / 1.092 GB, free: 2.73 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.424e-06/0.8958, allocations: 5.562 kB / 1.092 GB, free: 2.727 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 5.979e-05/0.8959, allocations: 120.8 kB / 1.092 GB, free: 2.602 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.329e-05/0.8959, allocations: 1.188 kB / 1.092 GB, free: 2.602 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.837e-05/0.8959, allocations: 5.219 kB / 1.092 GB, free: 2.598 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.493e-06/0.8959, allocations: 0 / 1.092 GB, free: 2.598 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.558e-06/0.8959, allocations: 4.562 kB / 1.092 GB, free: 2.594 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.996e-06/0.8959, allocations: 1.25 kB / 1.092 GB, free: 2.594 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001163/0.8961, allocations: 160 kB / 1.092 GB, free: 2.398 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.964e-06/0.8961, allocations: 0.7969 kB / 1.092 GB, free: 2.398 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.937e-05/0.8961, allocations: 9.578 kB / 1.092 GB, free: 2.398 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.845e-06/0.8962, allocations: 4.703 kB / 1.092 GB, free: 2.395 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.809e-06/0.8962, allocations: 1.156 kB / 1.092 GB, free: 2.395 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.825e-06/0.8962, allocations: 0.5625 kB / 1.092 GB, free: 2.395 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.482e-06/0.8962, allocations: 0.9062 kB / 1.092 GB, free: 2.395 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002259/0.8964, allocations: 165.1 kB / 1.092 GB, free: 2.254 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 1.941e-05/0.8964, allocations: 77.91 kB / 1.092 GB, free: 2.16 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.318e-05/0.8965, allocations: 6.078 kB / 1.092 GB, free: 2.156 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.817e-05/0.8965, allocations: 10.34 kB / 1.092 GB, free: 2.152 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.23e-05/0.8966, allocations: 8.219 kB / 1.092 GB, free: 2.148 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.3e-06/0.8966, allocations: 2.047 kB / 1.092 GB, free: 2.148 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 2.785e-05/0.8966, allocations: 80.12 kB / 1.093 GB, free: 2.074 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8966, allocations: 0 / 1.093 GB, free: 2.074 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002106/0.8969, allocations: 7.938 kB / 1.093 GB, free: 2.07 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.332e-05/0.897, allocations: 101.5 kB / 1.093 GB, free: 1.977 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002429/0.8972, allocations: 37.97 kB / 1.093 GB, free: 1.973 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.8972, allocations: 0 / 1.093 GB, free: 1.973 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 9.648e-05/0.8973, allocations: 21.53 kB / 1.093 GB, free: 1.969 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002732/0.8976, allocations: 7.109 kB / 1.093 GB, free: 1.965 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002753/0.8979, allocations: 145.4 kB / 1.093 GB, free: 1.816 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.2e-05/0.898, allocations: 0.6757 MB / 1.094 GB, free: 1.121 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.324e-05/0.898, allocations: 18.06 kB / 1.094 GB, free: 1.105 MB / 0.8575 GB Notification: Performance of SimCode: time 2.1e-07/0.898, allocations: 3.938 kB / 1.094 GB, free: 1.102 MB / 0.8575 GB Notification: Performance of Templates: time 0.001969/0.9, allocations: 0.595 MB / 1.094 GB, free: 1.074 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/jenkins1/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