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.001719/0.001719, allocations: 108 kB / 15.6 MB, free: 132 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.002276/0.002276, allocations: 193.9 kB / 16.53 MB, free: 6.391 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.663/1.663, allocations: 222.9 MB / 240.2 MB, free: 4.387 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.743/2.743, allocations: 390.2 MB / 0.6647 GB, free: 424 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001307/0.001307, allocations: 67.91 kB / 0.8125 GB, free: 14.42 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9474/0.9487, allocations: 140.4 MB / 0.9496 GB, free: 9.129 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold): time 0.004737/0.9535, allocations: 1.949 MB / 0.9515 GB, free: 7.582 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002447/0.956, allocations: 1.11 MB / 0.9526 GB, free: 6.715 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002108/0.9562, allocations: 6.812 kB / 0.9526 GB, free: 6.711 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0006306/0.9569, allocations: 104.3 kB / 0.9527 GB, free: 6.648 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0003677/0.9573, allocations: 100.2 kB / 0.9528 GB, free: 6.578 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004627/0.9577, allocations: 164 kB / 0.9529 GB, free: 6.461 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0003721/0.9581, allocations: 216.2 kB / 0.9532 GB, free: 6.336 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002217/0.9583, allocations: 52.58 kB / 0.9532 GB, free: 6.305 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001563/0.9585, allocations: 97.53 kB / 0.9533 GB, free: 6.246 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001672/0.9587, allocations: 99.12 kB / 0.9534 GB, free: 6.188 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 4.324e-05/0.9587, allocations: 12.19 kB / 0.9534 GB, free: 6.188 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001782/0.9589, allocations: 69.64 kB / 0.9535 GB, free: 6.16 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 9.588e-05/0.959, allocations: 54.89 kB / 0.9535 GB, free: 6.125 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001053/0.9591, allocations: 93.12 kB / 0.9536 GB, free: 6.051 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0003799/0.9595, allocations: 287.6 kB / 0.9539 GB, free: 5.848 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.9595, allocations: 0 / 0.9539 GB, free: 5.848 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.494e-06/0.9595, allocations: 0 / 0.9539 GB, free: 5.848 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.297e-05/0.9596, allocations: 1.188 kB / 0.9539 GB, free: 5.848 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.0009288/0.9605, allocations: 0.5481 MB / 0.9544 GB, free: 5.324 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.878e-05/0.9605, allocations: 9.281 kB / 0.9544 GB, free: 5.324 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.157e-05/0.9606, allocations: 27.16 kB / 0.9545 GB, free: 5.309 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004088/0.961, allocations: 307.6 kB / 0.9548 GB, free: 5.02 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.257e-05/0.9611, allocations: 3.688 kB / 0.9548 GB, free: 5.02 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.506e-05/0.9611, allocations: 13.12 kB / 0.9548 GB, free: 5.012 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002077/0.9613, allocations: 97.5 kB / 0.9549 GB, free: 4.938 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.348e-06/0.9613, allocations: 0 / 0.9549 GB, free: 4.938 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.502e-05/0.9614, allocations: 5.125 kB / 0.9549 GB, free: 4.934 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.212e-06/0.9614, allocations: 1.531 kB / 0.9549 GB, free: 4.934 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000142/0.9615, allocations: 48.97 kB / 0.9549 GB, free: 4.91 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006924/0.9622, allocations: 448.4 kB / 0.9553 GB, free: 4.504 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002281/0.9625, allocations: 81.95 kB / 0.9554 GB, free: 4.453 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.801e-05/0.9625, allocations: 39.02 kB / 0.9555 GB, free: 4.426 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 3.059e-05/0.9626, allocations: 1.5 kB / 0.9555 GB, free: 4.426 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001916/0.9628, allocations: 91.84 kB / 0.9555 GB, free: 4.344 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=8): time 3.386e-06/0.9628, allocations: 0 / 0.9555 GB, free: 4.344 MB / 0.7169 GB Notification: Performance of matching and sorting (n=8): time 0.0004504/0.9633, allocations: 152.2 kB / 0.9557 GB, free: 4.25 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.72e-05/0.9633, allocations: 53.75 kB / 0.9557 GB, free: 4.188 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004037/0.9637, allocations: 375.1 kB / 0.9561 GB, free: 3.957 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.994e-05/0.9638, allocations: 27.23 kB / 0.9561 GB, free: 3.926 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001068/0.9639, allocations: 141 kB / 0.9563 GB, free: 3.797 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.406e-05/0.9639, allocations: 27.56 kB / 0.9563 GB, free: 3.773 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.047e-05/0.964, allocations: 42.02 kB / 0.9563 GB, free: 3.742 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 0.0001206/0.9641, allocations: 338 kB / 0.9566 GB, free: 3.41 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001212/0.9642, allocations: 64.98 kB / 0.9567 GB, free: 3.379 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001639/0.9644, allocations: 80.22 kB / 0.9568 GB, free: 3.332 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000228/0.9646, allocations: 106 kB / 0.9569 GB, free: 3.273 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.9647, allocations: 0 / 0.9569 GB, free: 3.273 MB / 0.7169 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0004087/0.9651, allocations: 205.2 kB / 0.9571 GB, free: 3.164 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.281e-05/0.9651, allocations: 4.719 kB / 0.9571 GB, free: 3.164 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.776e-06/0.9651, allocations: 1.156 kB / 0.9571 GB, free: 3.164 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.483e-05/0.9651, allocations: 5.062 kB / 0.9571 GB, free: 3.16 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001531/0.9653, allocations: 31.02 kB / 0.9571 GB, free: 3.148 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.006e-05/0.9653, allocations: 5.5 kB / 0.9571 GB, free: 3.145 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000128/0.9655, allocations: 11.67 kB / 0.9571 GB, free: 3.141 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.263e-05/0.9655, allocations: 8.469 kB / 0.9571 GB, free: 3.137 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.0001817/0.9657, allocations: 153.8 kB / 0.9573 GB, free: 3 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.429e-05/0.9657, allocations: 25.5 kB / 0.9573 GB, free: 2.984 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.921e-05/0.9658, allocations: 31.36 kB / 0.9573 GB, free: 2.961 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.238e-06/0.9658, allocations: 1.281 kB / 0.9573 GB, free: 2.961 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.907e-06/0.9659, allocations: 4 kB / 0.9574 GB, free: 2.957 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.356e-06/0.9659, allocations: 1.438 kB / 0.9574 GB, free: 2.957 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002636/0.9661, allocations: 257.8 kB / 0.9576 GB, free: 2.695 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.106e-06/0.9661, allocations: 1.844 kB / 0.9576 GB, free: 2.695 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.583e-05/0.9662, allocations: 7.734 kB / 0.9576 GB, free: 2.691 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.316e-06/0.9662, allocations: 1.969 kB / 0.9576 GB, free: 2.691 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.4e-05/0.9662, allocations: 3.938 kB / 0.9576 GB, free: 2.688 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.597e-06/0.9662, allocations: 2.125 kB / 0.9576 GB, free: 2.688 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.9662, allocations: 0 / 0.9576 GB, free: 2.688 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002737/0.9665, allocations: 155.7 kB / 0.9578 GB, free: 2.566 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 6.302e-05/0.9666, allocations: 97.81 kB / 0.9579 GB, free: 2.461 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.983e-05/0.9666, allocations: 6.781 kB / 0.9579 GB, free: 2.457 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001014/0.9667, allocations: 17.48 kB / 0.9579 GB, free: 2.445 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.938e-05/0.9668, allocations: 13.73 kB / 0.9579 GB, free: 2.438 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.959e-06/0.9668, allocations: 2.625 kB / 0.9579 GB, free: 2.438 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0002492/0.9671, allocations: 233.9 kB / 0.9581 GB, free: 2.293 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.9671, allocations: 0 / 0.9581 GB, free: 2.293 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002731/0.9674, allocations: 42.22 kB / 0.9582 GB, free: 2.281 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.001206/0.9686, allocations: 421.5 kB / 0.9586 GB, free: 2.082 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003397/0.9689, allocations: 124.6 kB / 0.9587 GB, free: 2.027 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.969, allocations: 0 / 0.9587 GB, free: 2.027 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.000114/0.9691, allocations: 41.92 kB / 0.9587 GB, free: 2.008 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000388/0.9695, allocations: 49.91 kB / 0.9588 GB, free: 1.984 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007966/0.9703, allocations: 381.4 kB / 0.9591 GB, free: 1.73 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003101/0.9706, allocations: 0.7529 MB / 0.9599 GB, free: 0.9961 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.0001065/0.9707, allocations: 33.27 kB / 0.9599 GB, free: 0.9805 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.985e-05/0.9708, allocations: 19.72 kB / 0.9599 GB, free: 0.9727 MB / 0.7169 GB Notification: Performance of SimCode: time 2.224e-06/0.9708, allocations: 0 / 0.9599 GB, free: 0.9727 MB / 0.7169 GB Notification: Performance of Templates: time 0.008214/0.979, allocations: 3.074 MB / 0.9629 GB, free: 15.45 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