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.001097/0.001097, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.00152/0.00152, allocations: 196.1 kB / 16.26 MB, free: 6.625 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.432/1.432, allocations: 222.9 MB / 239.9 MB, free: 4.52 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.541/2.541, allocations: 390.2 MB / 0.6643 GB, free: 0.5352 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001333/0.001333, allocations: 63.91 kB / 0.812 GB, free: 14.75 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7961/0.7974, allocations: 140.4 MB / 0.9491 GB, free: 9.059 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold): time 0.003506/0.801, allocations: 2.004 MB / 0.9511 GB, free: 7.477 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001756/0.8028, allocations: 1.092 MB / 0.9521 GB, free: 6.625 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001346/0.8029, allocations: 7.562 kB / 0.9521 GB, free: 6.621 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0004345/0.8034, allocations: 96.5 kB / 0.9522 GB, free: 6.57 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0002539/0.8037, allocations: 88.67 kB / 0.9523 GB, free: 6.512 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003592/0.804, allocations: 137.2 kB / 0.9525 GB, free: 6.422 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002864/0.8043, allocations: 220.2 kB / 0.9527 GB, free: 6.293 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001887/0.8045, allocations: 60.5 kB / 0.9527 GB, free: 6.254 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001483/0.8047, allocations: 92.94 kB / 0.9528 GB, free: 6.199 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001353/0.8048, allocations: 101.7 kB / 0.9529 GB, free: 6.141 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.231e-05/0.8049, allocations: 12.28 kB / 0.9529 GB, free: 6.141 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001509/0.805, allocations: 73.52 kB / 0.953 GB, free: 6.109 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 8.44e-05/0.8051, allocations: 56.3 kB / 0.953 GB, free: 6.074 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 8.943e-05/0.8052, allocations: 92.86 kB / 0.9531 GB, free: 6 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0003465/0.8056, allocations: 284.6 kB / 0.9534 GB, free: 5.801 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.641e-06/0.8056, allocations: 0 / 0.9534 GB, free: 5.801 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.425e-06/0.8056, allocations: 3.938 kB / 0.9534 GB, free: 5.797 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.191e-05/0.8056, allocations: 0 / 0.9534 GB, free: 5.797 MB / 0.7169 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.0008662/0.8065, allocations: 0.5507 MB / 0.9539 GB, free: 5.27 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.982e-05/0.8065, allocations: 8.844 kB / 0.954 GB, free: 5.27 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.93e-05/0.8066, allocations: 28.06 kB / 0.954 GB, free: 5.254 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003872/0.807, allocations: 304.1 kB / 0.9543 GB, free: 4.973 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.825e-05/0.807, allocations: 11 kB / 0.9543 GB, free: 4.965 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.371e-05/0.8071, allocations: 9.531 kB / 0.9543 GB, free: 4.961 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002358/0.8073, allocations: 96.39 kB / 0.9544 GB, free: 4.887 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.259e-05/0.8073, allocations: 0 / 0.9544 GB, free: 4.887 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.74e-05/0.8073, allocations: 0.8438 kB / 0.9544 GB, free: 4.887 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.383e-06/0.8073, allocations: 1.156 kB / 0.9544 GB, free: 4.887 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001574/0.8075, allocations: 48.97 kB / 0.9544 GB, free: 4.863 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000767/0.8083, allocations: 444.5 kB / 0.9549 GB, free: 4.461 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002444/0.8085, allocations: 89.19 kB / 0.9549 GB, free: 4.402 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.051e-05/0.8086, allocations: 36.27 kB / 0.955 GB, free: 4.379 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.765e-05/0.8087, allocations: 1.188 kB / 0.955 GB, free: 4.379 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001763/0.8089, allocations: 86.91 kB / 0.9551 GB, free: 4.301 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=8): time 1.402e-06/0.8089, allocations: 0 / 0.9551 GB, free: 4.301 MB / 0.7169 GB Notification: Performance of matching and sorting (n=8): time 0.0003988/0.8093, allocations: 157.2 kB / 0.9552 GB, free: 4.203 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.22e-05/0.8093, allocations: 52.66 kB / 0.9553 GB, free: 4.141 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003765/0.8097, allocations: 369.4 kB / 0.9556 GB, free: 3.914 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.726e-05/0.8097, allocations: 33.7 kB / 0.9556 GB, free: 3.875 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 9.188e-05/0.8098, allocations: 140.3 kB / 0.9558 GB, free: 3.746 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.086e-05/0.8099, allocations: 28.09 kB / 0.9558 GB, free: 3.723 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.661e-05/0.8099, allocations: 41.33 kB / 0.9558 GB, free: 3.691 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 7.615e-05/0.81, allocations: 333.9 kB / 0.9562 GB, free: 3.363 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001228/0.8101, allocations: 65.64 kB / 0.9562 GB, free: 3.332 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001571/0.8103, allocations: 87.09 kB / 0.9563 GB, free: 3.281 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002098/0.8105, allocations: 109.8 kB / 0.9564 GB, free: 3.219 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.8105, allocations: 0 / 0.9564 GB, free: 3.219 MB / 0.7169 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003886/0.8109, allocations: 205.7 kB / 0.9566 GB, free: 3.109 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.907e-05/0.811, allocations: 5.312 kB / 0.9566 GB, free: 3.109 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.663e-06/0.811, allocations: 0 / 0.9566 GB, free: 3.109 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.824e-05/0.811, allocations: 5.406 kB / 0.9566 GB, free: 3.105 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001579/0.8112, allocations: 23.64 kB / 0.9566 GB, free: 3.102 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.054e-05/0.8112, allocations: 1 kB / 0.9566 GB, free: 3.102 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001286/0.8113, allocations: 19.3 kB / 0.9567 GB, free: 3.09 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.967e-05/0.8113, allocations: 8.656 kB / 0.9567 GB, free: 3.086 MB / 0.7169 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.0001532/0.8115, allocations: 154.2 kB / 0.9568 GB, free: 2.949 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.073e-05/0.8116, allocations: 25.48 kB / 0.9568 GB, free: 2.934 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.319e-05/0.8116, allocations: 31.89 kB / 0.9569 GB, free: 2.91 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.076e-06/0.8116, allocations: 0 / 0.9569 GB, free: 2.91 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.474e-06/0.8117, allocations: 1.719 kB / 0.9569 GB, free: 2.91 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.542e-06/0.8117, allocations: 11.92 kB / 0.9569 GB, free: 2.898 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002367/0.8119, allocations: 253.9 kB / 0.9571 GB, free: 2.641 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.8119, allocations: 1.562 kB / 0.9571 GB, free: 2.641 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.996e-05/0.812, allocations: 4.594 kB / 0.9571 GB, free: 2.641 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.647e-06/0.812, allocations: 3.984 kB / 0.9571 GB, free: 2.637 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.78e-05/0.812, allocations: 5.688 kB / 0.9571 GB, free: 2.633 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.372e-06/0.812, allocations: 0 / 0.9571 GB, free: 2.633 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.812, allocations: 1.281 kB / 0.9571 GB, free: 2.633 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002956/0.8123, allocations: 152.5 kB / 0.9573 GB, free: 2.516 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 6.997e-05/0.8124, allocations: 101.9 kB / 0.9574 GB, free: 2.406 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.858e-05/0.8124, allocations: 5.531 kB / 0.9574 GB, free: 2.402 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001023/0.8126, allocations: 10.36 kB / 0.9574 GB, free: 2.398 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.362e-05/0.8126, allocations: 18.31 kB / 0.9574 GB, free: 2.387 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.405e-05/0.8127, allocations: 3.062 kB / 0.9574 GB, free: 2.387 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0002599/0.8129, allocations: 229.5 kB / 0.9576 GB, free: 2.25 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8129, allocations: 0 / 0.9576 GB, free: 2.25 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003035/0.8132, allocations: 42.55 kB / 0.9577 GB, free: 2.238 MB / 0.7169 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.001277/0.8145, allocations: 423.8 kB / 0.9581 GB, free: 2.031 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003419/0.8149, allocations: 123 kB / 0.9582 GB, free: 1.98 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.8149, allocations: 0 / 0.9582 GB, free: 1.98 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 9.994e-05/0.815, allocations: 37.92 kB / 0.9582 GB, free: 1.965 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003647/0.8154, allocations: 49.72 kB / 0.9583 GB, free: 1.941 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007051/0.8161, allocations: 438.1 kB / 0.9587 GB, free: 1.629 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000253/0.8164, allocations: 0.753 MB / 0.9594 GB, free: 0.8945 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.0001061/0.8165, allocations: 29 kB / 0.9595 GB, free: 0.8828 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.685e-05/0.8165, allocations: 31.92 kB / 0.9595 GB, free: 0.8633 MB / 0.7169 GB Notification: Performance of SimCode: time 2.3e-07/0.8166, allocations: 0 / 0.9595 GB, free: 0.8633 MB / 0.7169 GB Notification: Performance of Templates: time 0.007439/0.824, allocations: 2.966 MB / 0.9624 GB, free: 15.39 MB / 0.7325 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