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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.001581/0.001581, allocations: 106.5 kB / 16.35 MB, free: 5.824 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.001747/0.001747, allocations: 189.4 kB / 17.29 MB, free: 5.48 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.489/1.489, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.628/2.628, allocations: 442.6 MB / 0.7165 GB, free: 14.62 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001551/0.001552, allocations: 65.27 kB / 0.8773 GB, free: 10.91 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3919/0.3934, allocations: 153 MB / 1.027 GB, free: 2 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger): time 0.002854/0.3963, allocations: 0.6246 MB / 1.027 GB, free: 1.379 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001542/0.3979, allocations: 0.8297 MB / 1.028 GB, free: 0.5391 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.546e-05/0.398, allocations: 0 / 1.028 GB, free: 0.5391 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 3.715e-05/0.3981, allocations: 0 / 1.028 GB, free: 0.5391 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 7.816e-05/0.3981, allocations: 3.938 kB / 1.028 GB, free: 0.5352 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001825/0.3983, allocations: 11.98 kB / 1.028 GB, free: 0.5234 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 9.906e-05/0.3984, allocations: 27.92 kB / 1.028 GB, free: 0.4961 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001374/0.3986, allocations: 7.984 kB / 1.028 GB, free: 500 kB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 8.216e-05/0.3987, allocations: 11.94 kB / 1.028 GB, free: 488 kB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 6.977e-05/0.3988, allocations: 19.92 kB / 1.028 GB, free: 468 kB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 2.372e-05/0.3988, allocations: 0 / 1.028 GB, free: 468 kB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 1.535e-05/0.3988, allocations: 4 kB / 1.028 GB, free: 464 kB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 2.118e-05/0.3989, allocations: 0 / 1.028 GB, free: 464 kB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 4.779e-05/0.3989, allocations: 23.91 kB / 1.028 GB, free: 440 kB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0001111/0.399, allocations: 23.91 kB / 1.028 GB, free: 416 kB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 5.71e-06/0.399, allocations: 0 / 1.028 GB, free: 416 kB / 0.795 GB Notification: Performance of FrontEnd: time 1.904e-06/0.3991, allocations: 0 / 1.028 GB, free: 416 kB / 0.795 GB Notification: Performance of Transformations before backend: time 1.232e-05/0.3991, allocations: 0 / 1.028 GB, free: 416 kB / 0.795 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.0006242/0.3997, allocations: 327.6 kB / 1.029 GB, free: 36 kB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 4.641e-05/0.3998, allocations: 12.03 kB / 1.029 GB, free: 24 kB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.722e-05/0.3998, allocations: 12.83 kB / 1.029 GB, free: 12 kB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001847/0.4, allocations: 168.3 kB / 1.029 GB, free: 15.81 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.857e-05/0.4001, allocations: 8.312 kB / 1.029 GB, free: 15.8 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.215e-05/0.4001, allocations: 384 / 1.029 GB, free: 15.8 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000237/0.4003, allocations: 50.23 kB / 1.029 GB, free: 15.75 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.578e-06/0.4004, allocations: 192 / 1.029 GB, free: 15.75 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.461e-05/0.4004, allocations: 3.938 kB / 1.029 GB, free: 15.74 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.09e-06/0.4004, allocations: 4 kB / 1.029 GB, free: 15.74 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002678/0.4007, allocations: 39.89 kB / 1.029 GB, free: 15.7 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000484/0.4012, allocations: 253 kB / 1.029 GB, free: 15.4 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002074/0.4014, allocations: 42.48 kB / 1.029 GB, free: 15.35 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000148/0.4015, allocations: 24.91 kB / 1.029 GB, free: 15.32 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.418e-05/0.4016, allocations: 7.938 kB / 1.029 GB, free: 15.32 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.739e-05/0.4016, allocations: 34.56 kB / 1.029 GB, free: 15.27 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=2): time 1.814e-06/0.4016, allocations: 0 / 1.029 GB, free: 15.27 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2): time 0.0005588/0.4022, allocations: 85.58 kB / 1.029 GB, free: 15.18 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.83e-05/0.4023, allocations: 55.53 kB / 1.029 GB, free: 15.12 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001131/0.4024, allocations: 105.8 kB / 1.029 GB, free: 15 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.347e-05/0.4024, allocations: 25.7 kB / 1.029 GB, free: 14.97 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.823e-05/0.4025, allocations: 84.05 kB / 1.03 GB, free: 14.89 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.172e-05/0.4025, allocations: 0 / 1.03 GB, free: 14.89 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.851e-05/0.4026, allocations: 17.7 kB / 1.03 GB, free: 14.86 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001753/0.4028, allocations: 314.8 kB / 1.03 GB, free: 14.55 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000137/0.403, allocations: 19.98 kB / 1.03 GB, free: 14.53 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001264/0.4031, allocations: 19.97 kB / 1.03 GB, free: 14.51 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002512/0.4034, allocations: 40.77 kB / 1.03 GB, free: 14.46 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.4034, allocations: 0 / 1.03 GB, free: 14.46 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0003301/0.4037, allocations: 73.59 kB / 1.03 GB, free: 14.39 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.403e-05/0.4038, allocations: 12.09 kB / 1.03 GB, free: 14.38 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.692e-06/0.4038, allocations: 0 / 1.03 GB, free: 14.38 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.961e-05/0.4038, allocations: 0 / 1.03 GB, free: 14.38 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001462/0.404, allocations: 7.984 kB / 1.03 GB, free: 14.37 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.795e-06/0.404, allocations: 0 / 1.03 GB, free: 14.37 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.873e-05/0.4041, allocations: 11.89 kB / 1.03 GB, free: 14.36 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.698e-05/0.4041, allocations: 4 kB / 1.03 GB, free: 14.35 MB / 0.8106 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 0.0001368/0.4043, allocations: 113.7 kB / 1.03 GB, free: 14.23 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.316e-05/0.4043, allocations: 4 kB / 1.03 GB, free: 14.23 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.393e-05/0.4044, allocations: 11.12 kB / 1.03 GB, free: 14.21 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.885e-06/0.4044, allocations: 3.938 kB / 1.03 GB, free: 14.21 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.963e-06/0.4044, allocations: 0 / 1.03 GB, free: 14.21 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.769e-06/0.4044, allocations: 0 / 1.03 GB, free: 14.21 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002724/0.4047, allocations: 165.6 kB / 1.03 GB, free: 14 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.4047, allocations: 0 / 1.03 GB, free: 14 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.852e-05/0.4048, allocations: 15.92 kB / 1.03 GB, free: 13.98 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.525e-06/0.4048, allocations: 0 / 1.03 GB, free: 13.98 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.069e-05/0.4049, allocations: 0 / 1.03 GB, free: 13.98 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.525e-06/0.4049, allocations: 4 kB / 1.03 GB, free: 13.98 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.4049, allocations: 0 / 1.03 GB, free: 13.98 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003626/0.4052, allocations: 163.6 kB / 1.031 GB, free: 13.8 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 5.775e-05/0.4053, allocations: 85.09 kB / 1.031 GB, free: 13.7 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.262e-05/0.4053, allocations: 3.984 kB / 1.031 GB, free: 13.7 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001312/0.4055, allocations: 4 kB / 1.031 GB, free: 13.69 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.66e-05/0.4056, allocations: 12.02 kB / 1.031 GB, free: 13.68 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.61e-06/0.4056, allocations: 4 kB / 1.031 GB, free: 13.68 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 5.026e-05/0.4057, allocations: 83.22 kB / 1.031 GB, free: 13.59 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.5e-07/0.4057, allocations: 0 / 1.031 GB, free: 13.59 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0004184/0.4061, allocations: 4 kB / 1.031 GB, free: 13.59 MB / 0.8106 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.0001811/0.4063, allocations: 106.2 kB / 1.031 GB, free: 13.48 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.000326/0.4066, allocations: 39.91 kB / 1.031 GB, free: 13.44 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.955e-06/0.4066, allocations: 0 / 1.031 GB, free: 13.44 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001363/0.4068, allocations: 27.97 kB / 1.031 GB, free: 13.41 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005013/0.4073, allocations: 3.938 kB / 1.031 GB, free: 13.41 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004602/0.4078, allocations: 113.5 kB / 1.031 GB, free: 13.27 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003541/0.4081, allocations: 0.6768 MB / 1.032 GB, free: 12.57 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 4.177e-05/0.4082, allocations: 8.125 kB / 1.032 GB, free: 12.56 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.21e-05/0.4082, allocations: 11.44 kB / 1.032 GB, free: 12.55 MB / 0.8106 GB Notification: Performance of SimCode: time 2.9e-07/0.4082, allocations: 0 / 1.032 GB, free: 12.55 MB / 0.8106 GB Notification: Performance of Templates: time 0.003971/0.4122, allocations: 0.599 MB / 1.032 GB, free: 11.95 MB / 0.8106 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 -s cvode -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/jenkins1/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