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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.001538/0.001539, allocations: 108.9 kB / 16.37 MB, free: 6.473 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.001515/0.001515, allocations: 190.6 kB / 17.31 MB, free: 5.828 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.396/1.396, allocations: 222.9 MB / 241 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.285/2.285, allocations: 390.3 MB / 0.6655 GB, free: 0.6055 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001539/0.001539, allocations: 67.62 kB / 0.814 GB, free: 32.77 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3257/0.3272, allocations: 140.4 MB / 0.9511 GB, free: 8.027 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold): time 0.003522/0.3308, allocations: 1.958 MB / 0.9531 GB, free: 6.055 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001824/0.3327, allocations: 1.111 MB / 0.9541 GB, free: 4.934 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001314/0.3328, allocations: 7.938 kB / 0.9542 GB, free: 4.926 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0004026/0.3332, allocations: 107.5 kB / 0.9543 GB, free: 4.82 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0002591/0.3335, allocations: 103.6 kB / 0.9544 GB, free: 4.719 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003933/0.3339, allocations: 147.5 kB / 0.9545 GB, free: 4.574 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0003182/0.3342, allocations: 219.5 kB / 0.9547 GB, free: 4.359 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000173/0.3344, allocations: 53.64 kB / 0.9548 GB, free: 4.305 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001374/0.3346, allocations: 99.55 kB / 0.9549 GB, free: 4.207 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001394/0.3347, allocations: 99.59 kB / 0.9549 GB, free: 4.109 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 2.831e-05/0.3348, allocations: 12 kB / 0.955 GB, free: 4.098 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001272/0.3349, allocations: 63.95 kB / 0.955 GB, free: 4.035 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 7.259e-05/0.335, allocations: 59.72 kB / 0.9551 GB, free: 3.977 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 9.238e-05/0.3351, allocations: 91.39 kB / 0.9552 GB, free: 3.887 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0003163/0.3354, allocations: 283.1 kB / 0.9554 GB, free: 3.609 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.3354, allocations: 0 / 0.9554 GB, free: 3.609 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.362e-06/0.3354, allocations: 4 kB / 0.9554 GB, free: 3.605 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 5.42e-06/0.3354, allocations: 0 / 0.9554 GB, free: 3.605 MB / 0.7325 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.00084/0.3363, allocations: 0.5487 MB / 0.956 GB, free: 3.008 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.551e-05/0.3363, allocations: 12.03 kB / 0.956 GB, free: 2.996 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.427e-05/0.3364, allocations: 24.66 kB / 0.956 GB, free: 2.973 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003957/0.3368, allocations: 311.7 kB / 0.9563 GB, free: 2.629 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.698e-05/0.3368, allocations: 8.375 kB / 0.9563 GB, free: 2.621 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.293e-05/0.3368, allocations: 11.92 kB / 0.9563 GB, free: 2.609 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001911/0.337, allocations: 89.59 kB / 0.9564 GB, free: 2.516 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.057e-06/0.337, allocations: 0 / 0.9564 GB, free: 2.516 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.34e-05/0.3371, allocations: 3.984 kB / 0.9564 GB, free: 2.512 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.028e-05/0.3371, allocations: 8 kB / 0.9564 GB, free: 2.504 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001236/0.3372, allocations: 43.98 kB / 0.9565 GB, free: 2.461 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000666/0.3379, allocations: 448.4 kB / 0.9569 GB, free: 1.973 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002272/0.3381, allocations: 86.67 kB / 0.957 GB, free: 1.879 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.489e-05/0.3382, allocations: 32.84 kB / 0.957 GB, free: 1.844 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.58e-05/0.3382, allocations: 3.938 kB / 0.957 GB, free: 1.84 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001694/0.3384, allocations: 95.2 kB / 0.9571 GB, free: 1.734 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=8): time 1.783e-06/0.3384, allocations: 0 / 0.9571 GB, free: 1.734 MB / 0.7325 GB Notification: Performance of matching and sorting (n=8): time 0.0004363/0.3389, allocations: 145.4 kB / 0.9572 GB, free: 1.586 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.414e-05/0.339, allocations: 59.39 kB / 0.9573 GB, free: 1.516 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004663/0.3394, allocations: 366.9 kB / 0.9576 GB, free: 1.145 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 3.38e-05/0.3395, allocations: 29.7 kB / 0.9577 GB, free: 1.109 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001449/0.3396, allocations: 148.4 kB / 0.9578 GB, free: 0.9609 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 3.222e-05/0.3397, allocations: 19.72 kB / 0.9578 GB, free: 0.9414 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.424e-05/0.3398, allocations: 45.69 kB / 0.9579 GB, free: 0.8906 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001731/0.3399, allocations: 334.8 kB / 0.9582 GB, free: 0.5547 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001332/0.3401, allocations: 63.88 kB / 0.9583 GB, free: 0.4922 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001395/0.3402, allocations: 86.7 kB / 0.9583 GB, free: 412 kB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001886/0.3404, allocations: 111.5 kB / 0.9584 GB, free: 296 kB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.3404, allocations: 0 / 0.9584 GB, free: 296 kB / 0.7325 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003455/0.3408, allocations: 205.2 kB / 0.9586 GB, free: 84 kB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.506e-05/0.3408, allocations: 4 kB / 0.9586 GB, free: 80 kB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.268e-06/0.3408, allocations: 0 / 0.9586 GB, free: 80 kB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.807e-05/0.3408, allocations: 7.938 kB / 0.9587 GB, free: 72 kB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001314/0.341, allocations: 19.98 kB / 0.9587 GB, free: 52 kB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.237e-06/0.341, allocations: 4 kB / 0.9587 GB, free: 48 kB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001317/0.3411, allocations: 23.83 kB / 0.9587 GB, free: 24 kB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.478e-05/0.3412, allocations: 12.02 kB / 0.9587 GB, free: 12 kB / 0.7325 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.0001911/0.3414, allocations: 157 kB / 0.9589 GB, free: 15.85 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.514e-05/0.3414, allocations: 19.72 kB / 0.9589 GB, free: 15.83 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.542e-05/0.3415, allocations: 37.66 kB / 0.9589 GB, free: 15.79 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.3415, allocations: 0 / 0.9589 GB, free: 15.79 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.3415, allocations: 0 / 0.9589 GB, free: 15.79 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.328e-06/0.3415, allocations: 0 / 0.9589 GB, free: 15.79 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002577/0.3418, allocations: 249.5 kB / 0.9592 GB, free: 15.5 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.276e-06/0.3418, allocations: 4 kB / 0.9592 GB, free: 15.5 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.678e-05/0.3418, allocations: 8 kB / 0.9592 GB, free: 15.49 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.753e-06/0.3418, allocations: 0 / 0.9592 GB, free: 15.49 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.45e-05/0.3419, allocations: 3.938 kB / 0.9592 GB, free: 15.48 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.3419, allocations: 0 / 0.9592 GB, free: 15.48 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.287e-06/0.3419, allocations: 4 kB / 0.9592 GB, free: 15.48 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002586/0.3421, allocations: 148.8 kB / 0.9593 GB, free: 15.32 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 8.373e-05/0.3422, allocations: 104.8 kB / 0.9594 GB, free: 15.2 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.519e-05/0.3423, allocations: 7.938 kB / 0.9594 GB, free: 15.19 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.802e-05/0.3424, allocations: 15.98 kB / 0.9594 GB, free: 15.17 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.432e-05/0.3425, allocations: 11.98 kB / 0.9594 GB, free: 15.16 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.281e-05/0.3425, allocations: 7.984 kB / 0.9595 GB, free: 15.15 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0002332/0.3427, allocations: 233.9 kB / 0.9597 GB, free: 14.93 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3427, allocations: 0 / 0.9597 GB, free: 14.93 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0002596/0.343, allocations: 43.94 kB / 0.9597 GB, free: 14.88 MB / 0.7481 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.001133/0.3441, allocations: 422 kB / 0.9601 GB, free: 14.62 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0002706/0.3444, allocations: 111.9 kB / 0.9602 GB, free: 14.52 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.3444, allocations: 4 kB / 0.9602 GB, free: 14.51 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 9.593e-05/0.3445, allocations: 35.92 kB / 0.9603 GB, free: 14.48 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003202/0.3449, allocations: 54.69 kB / 0.9603 GB, free: 14.42 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005964/0.3455, allocations: 387.9 kB / 0.9607 GB, free: 14.02 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002941/0.3458, allocations: 0.759 MB / 0.9614 GB, free: 13.23 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 9.028e-05/0.3459, allocations: 34.08 kB / 0.9615 GB, free: 13.2 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.465e-05/0.3459, allocations: 31.42 kB / 0.9615 GB, free: 13.17 MB / 0.7481 GB Notification: Performance of SimCode: time 2.2e-07/0.3459, allocations: 0 / 0.9615 GB, free: 13.17 MB / 0.7481 GB Notification: Performance of Templates: time 0.006372/0.3523, allocations: 3.058 MB / 0.9645 GB, free: 10.14 MB / 0.7481 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 -s gbode -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/jenkins1/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