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.00124/0.00124, allocations: 99.62 kB / 15.05 MB, free: 1.105 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.001376/0.001376, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.343/1.343, allocations: 223.2 MB / 239.9 MB, free: 5.355 MB / 190.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.343/2.343, allocations: 390.3 MB / 0.6653 GB, free: 2.945 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0005361/0.000536, allocations: 12 kB / 0.8146 GB, free: 14.22 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6725/0.6731, allocations: 142.3 MB / 0.9535 GB, free: 8.098 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold): time 0.001996/0.6751, allocations: 1.61 MB / 0.9551 GB, free: 6.828 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001424/0.6766, allocations: 1.017 MB / 0.9561 GB, free: 6.043 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001078/0.6767, allocations: 2.375 kB / 0.9561 GB, free: 6.043 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0003476/0.677, allocations: 90.38 kB / 0.9562 GB, free: 5.996 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0002357/0.6773, allocations: 99.61 kB / 0.9563 GB, free: 5.926 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003353/0.6776, allocations: 117.8 kB / 0.9564 GB, free: 5.852 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002319/0.6779, allocations: 134.7 kB / 0.9565 GB, free: 5.762 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000132/0.678, allocations: 40.36 kB / 0.9566 GB, free: 5.738 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001247/0.6782, allocations: 86.83 kB / 0.9566 GB, free: 5.684 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001171/0.6783, allocations: 76.05 kB / 0.9567 GB, free: 5.641 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.874e-05/0.6783, allocations: 5.219 kB / 0.9567 GB, free: 5.641 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001117/0.6784, allocations: 45.84 kB / 0.9568 GB, free: 5.621 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 6.029e-05/0.6785, allocations: 51.22 kB / 0.9568 GB, free: 5.59 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.277e-05/0.6785, allocations: 54.55 kB / 0.9569 GB, free: 5.539 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002147/0.6788, allocations: 225.2 kB / 0.9571 GB, free: 5.383 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.585e-06/0.6788, allocations: 0 / 0.9571 GB, free: 5.383 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.493e-06/0.6788, allocations: 1.219 kB / 0.9571 GB, free: 5.383 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.955e-06/0.6788, allocations: 0 / 0.9571 GB, free: 5.383 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.0006989/0.6795, allocations: 0.5164 MB / 0.9576 GB, free: 4.887 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.155e-05/0.6795, allocations: 8.938 kB / 0.9576 GB, free: 4.887 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.257e-05/0.6796, allocations: 30.58 kB / 0.9576 GB, free: 4.867 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003338/0.6799, allocations: 293.6 kB / 0.9579 GB, free: 4.594 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.032e-05/0.68, allocations: 3.688 kB / 0.9579 GB, free: 4.594 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.935e-05/0.68, allocations: 8.438 kB / 0.9579 GB, free: 4.59 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00018/0.6802, allocations: 89.66 kB / 0.958 GB, free: 4.523 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.035e-06/0.6802, allocations: 0 / 0.958 GB, free: 4.523 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.458e-05/0.6802, allocations: 5.312 kB / 0.958 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.851e-06/0.6802, allocations: 5.359 kB / 0.958 GB, free: 4.516 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001244/0.6804, allocations: 56.22 kB / 0.9581 GB, free: 4.484 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006361/0.681, allocations: 450.4 kB / 0.9585 GB, free: 4.082 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002066/0.6812, allocations: 92.34 kB / 0.9586 GB, free: 4.02 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.277e-05/0.6813, allocations: 5.156 kB / 0.9586 GB, free: 4.016 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001557/0.6814, allocations: 87.31 kB / 0.9587 GB, free: 3.938 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=8): time 1.563e-06/0.6814, allocations: 0 / 0.9587 GB, free: 3.938 MB / 0.7169 GB Notification: Performance of matching and sorting (n=8): time 0.0003497/0.6818, allocations: 149.1 kB / 0.9588 GB, free: 3.848 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.307e-05/0.6818, allocations: 60.97 kB / 0.9589 GB, free: 3.777 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003478/0.6822, allocations: 365.2 kB / 0.9592 GB, free: 3.555 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.575e-05/0.6822, allocations: 31.08 kB / 0.9593 GB, free: 3.52 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 6.93e-05/0.6823, allocations: 140.7 kB / 0.9594 GB, free: 3.391 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.098e-05/0.6823, allocations: 20.02 kB / 0.9594 GB, free: 3.375 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.041e-05/0.6823, allocations: 4 kB / 0.9594 GB, free: 3.371 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.481e-05/0.6824, allocations: 335.1 kB / 0.9597 GB, free: 3.043 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001067/0.6825, allocations: 60.97 kB / 0.9598 GB, free: 3.016 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001103/0.6826, allocations: 84.66 kB / 0.9599 GB, free: 2.965 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001072/0.6827, allocations: 64.89 kB / 0.9599 GB, free: 2.934 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.6827, allocations: 1.375 kB / 0.9599 GB, free: 2.934 MB / 0.7169 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002979/0.683, allocations: 200 kB / 0.9601 GB, free: 2.828 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.495e-05/0.6831, allocations: 6.438 kB / 0.9601 GB, free: 2.828 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.12e-06/0.6831, allocations: 1.344 kB / 0.9601 GB, free: 2.828 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.493e-05/0.6831, allocations: 1.344 kB / 0.9601 GB, free: 2.828 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001344/0.6832, allocations: 30.8 kB / 0.9602 GB, free: 2.816 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.043e-06/0.6832, allocations: 1.344 kB / 0.9602 GB, free: 2.816 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001264/0.6834, allocations: 22.77 kB / 0.9602 GB, free: 2.805 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.439e-05/0.6834, allocations: 5.062 kB / 0.9602 GB, free: 2.805 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 ($whenCondition1,$PRE.ram.tab.nextTimeEvent,gre.y,$PRE.greHys.greHys.y,greHys.greHys.y,ram.tab.nextTimeEvent,$PRE.ram.tab.nextTimeEventScaled,ram.tab.nextTimeEventScaled) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001159/0.6835, allocations: 157.7 kB / 0.9603 GB, free: 2.664 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.639e-05/0.6836, allocations: 25.03 kB / 0.9604 GB, free: 2.648 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.305e-05/0.6836, allocations: 27.55 kB / 0.9604 GB, free: 2.629 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.585e-06/0.6836, allocations: 4.875 kB / 0.9604 GB, free: 2.625 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.126e-06/0.6836, allocations: 0 / 0.9604 GB, free: 2.625 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.825e-06/0.6836, allocations: 0.75 kB / 0.9604 GB, free: 2.625 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001637/0.6838, allocations: 258.8 kB / 0.9606 GB, free: 2.363 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.6838, allocations: 1 kB / 0.9606 GB, free: 2.363 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.713e-05/0.6839, allocations: 12.83 kB / 0.9607 GB, free: 2.355 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/0.6839, allocations: 0 / 0.9607 GB, free: 2.355 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.04e-05/0.6839, allocations: 2.156 kB / 0.9607 GB, free: 2.355 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.363e-06/0.6839, allocations: 0 / 0.9607 GB, free: 2.355 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.375e-06/0.6839, allocations: 1.062 kB / 0.9607 GB, free: 2.355 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002294/0.6841, allocations: 159.8 kB / 0.9608 GB, free: 2.23 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 5.84e-05/0.6842, allocations: 105.7 kB / 0.9609 GB, free: 2.117 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.232e-05/0.6843, allocations: 1.875 kB / 0.9609 GB, free: 2.117 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001123/0.6844, allocations: 17.11 kB / 0.9609 GB, free: 2.109 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.287e-05/0.6844, allocations: 14.02 kB / 0.9609 GB, free: 2.102 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.433e-05/0.6845, allocations: 7.203 kB / 0.9609 GB, free: 2.098 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0002224/0.6847, allocations: 232.4 kB / 0.9612 GB, free: 1.953 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6847, allocations: 0 / 0.9612 GB, free: 1.953 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002705/0.685, allocations: 42.08 kB / 0.9612 GB, free: 1.941 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009803/0.686, allocations: 418.6 kB / 0.9616 GB, free: 1.742 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002697/0.6862, allocations: 118.4 kB / 0.9617 GB, free: 1.691 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.726e-06/0.6863, allocations: 3.938 kB / 0.9617 GB, free: 1.688 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 9.79e-05/0.6864, allocations: 37.98 kB / 0.9618 GB, free: 1.672 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002898/0.6867, allocations: 54.77 kB / 0.9618 GB, free: 1.641 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005868/0.6873, allocations: 424.9 kB / 0.9622 GB, free: 1.344 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000178/0.6875, allocations: 0.7534 MB / 0.963 GB, free: 0.6094 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 9.591e-05/0.6876, allocations: 33.55 kB / 0.963 GB, free: 0.5977 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.501e-05/0.6876, allocations: 27.45 kB / 0.963 GB, free: 0.582 MB / 0.7169 GB Notification: Performance of SimCode: time 2.4e-07/0.6876, allocations: 4 kB / 0.963 GB, free: 0.5781 MB / 0.7169 GB Notification: Performance of Templates: time 0.006048/0.6937, allocations: 2.771 MB / 0.9657 GB, free: 15.2 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","../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