Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold.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.Continuous.Validation.GreaterThreshold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gre.u|gre.t|gre.y|greHys.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold") translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gre.u|gre.t|gre.y|greHys.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.01005/0.01005, allocations: 99.64 kB / 15.73 MB, free: 6.02 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.001508/0.001508, allocations: 190.8 kB / 16.67 MB, free: 5.961 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.474/1.474, allocations: 222.9 MB / 240.4 MB, free: 4.184 MB / 190.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.678/2.678, allocations: 390.2 MB / 0.6648 GB, free: 180 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001295/0.001295, allocations: 65.44 kB / 0.9509 GB, free: 5.418 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3825/0.3838, allocations: 140.4 MB / 1.088 GB, free: 1.426 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold): time 0.003548/0.3874, allocations: 1.96 MB / 1.09 GB, free: 15.45 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.002051/0.3895, allocations: 1.111 MB / 1.091 GB, free: 14.33 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001674/0.3896, allocations: 7.938 kB / 1.091 GB, free: 14.32 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0004604/0.3902, allocations: 111.5 kB / 1.091 GB, free: 14.21 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.000287/0.3905, allocations: 99.59 kB / 1.091 GB, free: 14.12 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004665/0.3909, allocations: 152.8 kB / 1.091 GB, free: 13.97 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0003394/0.3913, allocations: 227.4 kB / 1.092 GB, free: 13.75 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000206/0.3915, allocations: 53.64 kB / 1.092 GB, free: 13.69 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001844/0.3917, allocations: 95.66 kB / 1.092 GB, free: 13.6 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001693/0.3919, allocations: 107.5 kB / 1.092 GB, free: 13.49 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.617e-05/0.3919, allocations: 12 kB / 1.092 GB, free: 13.48 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001579/0.3921, allocations: 63.97 kB / 1.092 GB, free: 13.42 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001149/0.3922, allocations: 71.69 kB / 1.092 GB, free: 13.35 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001164/0.3923, allocations: 83.42 kB / 1.092 GB, free: 13.27 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0004297/0.3928, allocations: 291 kB / 1.092 GB, free: 12.98 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.442e-06/0.3928, allocations: 0 / 1.092 GB, free: 12.98 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.503e-06/0.3928, allocations: 0 / 1.092 GB, free: 12.98 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.324e-05/0.3928, allocations: 0 / 1.092 GB, free: 12.98 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.001085/0.3939, allocations: 0.541 MB / 1.093 GB, free: 12.39 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.103e-05/0.3939, allocations: 12.03 kB / 1.093 GB, free: 12.38 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.45e-05/0.394, allocations: 24.66 kB / 1.093 GB, free: 12.36 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004597/0.3945, allocations: 311.7 kB / 1.093 GB, free: 12.01 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.893e-05/0.3945, allocations: 4.375 kB / 1.093 GB, free: 12.01 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.225e-05/0.3946, allocations: 11.94 kB / 1.093 GB, free: 12 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002293/0.3948, allocations: 89.02 kB / 1.093 GB, free: 11.91 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.053e-05/0.3948, allocations: 3.938 kB / 1.093 GB, free: 11.9 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.796e-05/0.3948, allocations: 4 kB / 1.093 GB, free: 11.9 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.35e-06/0.3948, allocations: 4 kB / 1.093 GB, free: 11.89 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001404/0.395, allocations: 51.97 kB / 1.093 GB, free: 11.84 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008499/0.3958, allocations: 448.3 kB / 1.094 GB, free: 11.36 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002665/0.3961, allocations: 90.67 kB / 1.094 GB, free: 11.26 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.023e-05/0.3962, allocations: 36.84 kB / 1.094 GB, free: 11.22 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.71e-05/0.3962, allocations: 0 / 1.094 GB, free: 11.22 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002088/0.3965, allocations: 79.38 kB / 1.094 GB, free: 11.13 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=8): time 5.481e-06/0.3965, allocations: 0 / 1.094 GB, free: 11.13 MB / 0.8575 GB Notification: Performance of matching and sorting (n=8): time 0.0004133/0.3969, allocations: 157.2 kB / 1.094 GB, free: 10.97 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.725e-05/0.397, allocations: 55.34 kB / 1.094 GB, free: 10.9 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003853/0.3973, allocations: 371 kB / 1.094 GB, free: 10.53 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.148e-05/0.3974, allocations: 25.7 kB / 1.095 GB, free: 10.5 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001058/0.3975, allocations: 144.4 kB / 1.095 GB, free: 10.35 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.599e-05/0.3975, allocations: 23.7 kB / 1.095 GB, free: 10.33 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.103e-05/0.3976, allocations: 41.7 kB / 1.095 GB, free: 10.28 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001399/0.3977, allocations: 338.8 kB / 1.095 GB, free: 9.941 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001358/0.3979, allocations: 63.91 kB / 1.095 GB, free: 9.879 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001445/0.398, allocations: 83.23 kB / 1.095 GB, free: 9.793 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001878/0.3982, allocations: 107.4 kB / 1.095 GB, free: 9.684 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.3983, allocations: 0 / 1.095 GB, free: 9.684 MB / 0.8575 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0004143/0.3987, allocations: 201.3 kB / 1.095 GB, free: 9.48 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.927e-05/0.3987, allocations: 11.98 kB / 1.095 GB, free: 9.469 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.911e-06/0.3987, allocations: 0 / 1.095 GB, free: 9.469 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.973e-05/0.3987, allocations: 3.938 kB / 1.095 GB, free: 9.465 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001385/0.3989, allocations: 28.02 kB / 1.096 GB, free: 9.438 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.413e-06/0.3989, allocations: 0 / 1.096 GB, free: 9.438 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001262/0.399, allocations: 19.83 kB / 1.096 GB, free: 9.418 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.255e-05/0.3991, allocations: 8 kB / 1.096 GB, free: 9.41 MB / 0.8575 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 8 ($PRE.ram.tab.nextTimeEvent,$whenCondition1,ram.tab.nextTimeEventScaled,$PRE.ram.tab.nextTimeEventScaled,ram.tab.nextTimeEvent,greHys.greHys.y,$PRE.greHys.greHys.y,gre.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 19 * 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.0001518/0.3992, allocations: 156.6 kB / 1.096 GB, free: 9.25 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.791e-05/0.3993, allocations: 23.72 kB / 1.096 GB, free: 9.227 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.159e-05/0.3993, allocations: 29.67 kB / 1.096 GB, free: 9.199 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.596e-06/0.3993, allocations: 4 kB / 1.096 GB, free: 9.195 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.3994, allocations: 4 kB / 1.096 GB, free: 9.191 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/0.3994, allocations: 0 / 1.096 GB, free: 9.191 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003389/0.3997, allocations: 253.5 kB / 1.096 GB, free: 8.895 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.189e-05/0.3997, allocations: 3.984 kB / 1.096 GB, free: 8.891 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.501e-05/0.3998, allocations: 8 kB / 1.096 GB, free: 8.883 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.904e-06/0.3998, allocations: 4 kB / 1.096 GB, free: 8.879 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.744e-05/0.3998, allocations: 7.922 kB / 1.096 GB, free: 8.871 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.014e-06/0.3998, allocations: 0 / 1.096 GB, free: 8.871 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.3998, allocations: 0 / 1.096 GB, free: 8.871 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002743/0.4001, allocations: 152.8 kB / 1.096 GB, free: 8.703 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 8.848e-05/0.4002, allocations: 104.8 kB / 1.096 GB, free: 8.582 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.77e-05/0.4002, allocations: 7.938 kB / 1.096 GB, free: 8.574 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001025/0.4004, allocations: 7.984 kB / 1.096 GB, free: 8.566 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.232e-05/0.4004, allocations: 23.91 kB / 1.096 GB, free: 8.543 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.168e-05/0.4005, allocations: 4 kB / 1.096 GB, free: 8.539 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0002701/0.4007, allocations: 229.9 kB / 1.097 GB, free: 8.316 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.81e-07/0.4007, allocations: 0 / 1.097 GB, free: 8.316 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.000275/0.401, allocations: 39.98 kB / 1.097 GB, free: 8.277 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: 5 ($whenCondition1,gre.y,greHys.greHys.y,ram.tab.nextTimeEvent,ram.tab.nextTimeEventScaled) * Number of discrete states: 3 (ram.tab.nextTimeEventScaled,greHys.greHys.y,ram.tab.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001154/0.4022, allocations: 419.6 kB / 1.097 GB, free: 8.016 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002988/0.4025, allocations: 111.9 kB / 1.097 GB, free: 7.906 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.4025, allocations: 0 / 1.097 GB, free: 7.906 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001091/0.4026, allocations: 47.91 kB / 1.097 GB, free: 7.859 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003571/0.403, allocations: 53.53 kB / 1.097 GB, free: 7.809 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008437/0.4038, allocations: 379.8 kB / 1.098 GB, free: 7.414 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005191/0.4044, allocations: 0.7476 MB / 1.098 GB, free: 6.641 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 9.739e-05/0.4045, allocations: 29.95 kB / 1.098 GB, free: 6.613 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.353e-05/0.4046, allocations: 23.42 kB / 1.098 GB, free: 6.59 MB / 0.8575 GB Notification: Performance of SimCode: time 2.91e-07/0.4046, allocations: 0 / 1.098 GB, free: 6.59 MB / 0.8575 GB Notification: Performance of Templates: time 0.007508/0.4121, allocations: 3.146 MB / 1.101 GB, free: 3.465 MB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Validation_GreaterThreshold.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,gre.u,gre.t,gre.y,greHys.y Variables in the result:gre.greNoHys.t,gre.h,gre.have_hysteresis,gre.pre_y_start,gre.t,gre.u,gre.y,greHys.greHys.h,greHys.greHys.pre_y_start,greHys.greHys.t,greHys.greHys.y,greHys.h,greHys.have_hysteresis,greHys.pre_y_start,greHys.t,greHys.y,ram.extrapolation,ram.nT,ram.nout,ram.offset[1],ram.smoothness,ram.t0,ram.tab.columns[1],ram.tab.extrapolation,ram.tab.nout,ram.tab.offset[1],ram.tab.p_offset[1],ram.tab.shiftTime,ram.tab.smoothness,ram.tab.startTime,ram.tab.t_max,ram.tab.t_maxScaled,ram.tab.t_min,ram.tab.t_minScaled,ram.tab.tableOnFile,ram.tab.table[1,1],ram.tab.table[1,2],ram.tab.table[2,1],ram.tab.table[2,2],ram.tab.table[3,1],ram.tab.table[3,2],ram.tab.table[4,1],ram.tab.table[4,2],ram.tab.table[5,1],ram.tab.table[5,2],ram.tab.table[6,1],ram.tab.table[6,2],ram.tab.timeEvents,ram.tab.timeScale,ram.tab.verboseExtrapolation,ram.tab.verboseRead,ram.table[1,1],ram.table[1,2],ram.table[2,1],ram.table[2,2],ram.table[3,1],ram.table[3,2],ram.table[4,1],ram.table[4,2],ram.table[5,1],ram.table[5,2],ram.table[6,1],ram.table[6,2],ram.timeRange,ram.timeScale,rou.fac,rou.n,rou.y,time