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.001313/0.001313, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001817/0.001817, allocations: 197.1 kB / 16.14 MB, free: 6.711 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.54/1.54, allocations: 222.9 MB / 239.8 MB, free: 4.625 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.651/2.651, allocations: 390.2 MB / 0.6642 GB, free: 0.6094 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001369/0.001369, allocations: 72.14 kB / 0.8119 GB, free: 14.83 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8607/0.8621, allocations: 140.3 MB / 0.9489 GB, free: 9.238 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold): time 0.003451/0.8656, allocations: 2.006 MB / 0.9509 GB, free: 7.656 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0018/0.8675, allocations: 1.102 MB / 0.952 GB, free: 6.797 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001697/0.8677, allocations: 2.156 kB / 0.952 GB, free: 6.797 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0004581/0.8682, allocations: 101.1 kB / 0.9521 GB, free: 6.742 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0002318/0.8684, allocations: 98.36 kB / 0.9522 GB, free: 6.672 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000387/0.8688, allocations: 128.1 kB / 0.9523 GB, free: 6.59 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.000245/0.8691, allocations: 203.3 kB / 0.9525 GB, free: 6.477 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001875/0.8693, allocations: 51.55 kB / 0.9525 GB, free: 6.445 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001611/0.8694, allocations: 87.59 kB / 0.9526 GB, free: 6.395 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000151/0.8696, allocations: 99.59 kB / 0.9527 GB, free: 6.336 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.237e-05/0.8696, allocations: 5.75 kB / 0.9527 GB, free: 6.336 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001688/0.8698, allocations: 58.27 kB / 0.9528 GB, free: 6.312 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 8.87e-05/0.8699, allocations: 56.39 kB / 0.9528 GB, free: 6.277 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001053/0.87, allocations: 92.39 kB / 0.9529 GB, free: 6.203 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0003195/0.8703, allocations: 273.3 kB / 0.9532 GB, free: 6.012 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.11e-06/0.8703, allocations: 1.562 kB / 0.9532 GB, free: 6.012 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.143e-06/0.8704, allocations: 0 / 0.9532 GB, free: 6.012 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.771e-06/0.8704, allocations: 0 / 0.9532 GB, free: 6.012 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.0009452/0.8713, allocations: 0.5393 MB / 0.9537 GB, free: 5.496 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.365e-05/0.8714, allocations: 8.844 kB / 0.9537 GB, free: 5.496 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.187e-05/0.8714, allocations: 27.34 kB / 0.9537 GB, free: 5.48 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003434/0.8718, allocations: 315.5 kB / 0.954 GB, free: 5.188 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.061e-05/0.8718, allocations: 8.344 kB / 0.954 GB, free: 5.184 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.78e-05/0.8719, allocations: 8.188 kB / 0.9541 GB, free: 5.18 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002225/0.8721, allocations: 91.89 kB / 0.9541 GB, free: 5.109 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.548e-06/0.8721, allocations: 1.094 kB / 0.9541 GB, free: 5.109 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.703e-05/0.8721, allocations: 7.938 kB / 0.9541 GB, free: 5.102 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.364e-06/0.8722, allocations: 2.5 kB / 0.9541 GB, free: 5.102 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001459/0.8723, allocations: 44.78 kB / 0.9542 GB, free: 5.082 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008203/0.8731, allocations: 447.9 kB / 0.9546 GB, free: 4.676 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002432/0.8734, allocations: 85.27 kB / 0.9547 GB, free: 4.621 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.379e-05/0.8735, allocations: 48.17 kB / 0.9547 GB, free: 4.586 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.415e-05/0.8735, allocations: 1.156 kB / 0.9547 GB, free: 4.586 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001936/0.8737, allocations: 79.06 kB / 0.9548 GB, free: 4.516 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=8): time 1.483e-06/0.8737, allocations: 0 / 0.9548 GB, free: 4.516 MB / 0.7169 GB Notification: Performance of matching and sorting (n=8): time 0.0004663/0.8742, allocations: 153 kB / 0.955 GB, free: 4.422 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.162e-05/0.8742, allocations: 52.88 kB / 0.955 GB, free: 4.359 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000432/0.8747, allocations: 374.4 kB / 0.9554 GB, free: 4.129 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.677e-05/0.8747, allocations: 29.7 kB / 0.9554 GB, free: 4.094 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 7.654e-05/0.8748, allocations: 139.3 kB / 0.9555 GB, free: 3.965 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.867e-05/0.8748, allocations: 30.75 kB / 0.9556 GB, free: 3.941 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.92e-05/0.8749, allocations: 38.2 kB / 0.9556 GB, free: 3.91 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 7.979e-05/0.875, allocations: 338.3 kB / 0.9559 GB, free: 3.578 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001287/0.8751, allocations: 61.36 kB / 0.956 GB, free: 3.551 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001349/0.8753, allocations: 86.94 kB / 0.9561 GB, free: 3.5 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001993/0.8755, allocations: 105.7 kB / 0.9562 GB, free: 3.441 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.8755, allocations: 0 / 0.9562 GB, free: 3.441 MB / 0.7169 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003969/0.8759, allocations: 201.1 kB / 0.9564 GB, free: 3.336 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.54e-05/0.8759, allocations: 4.688 kB / 0.9564 GB, free: 3.336 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.454e-06/0.8759, allocations: 1.188 kB / 0.9564 GB, free: 3.336 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.913e-05/0.876, allocations: 9.047 kB / 0.9564 GB, free: 3.328 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001482/0.8761, allocations: 40.05 kB / 0.9564 GB, free: 3.309 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.718e-06/0.8761, allocations: 1.344 kB / 0.9564 GB, free: 3.309 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001254/0.8763, allocations: 15.64 kB / 0.9564 GB, free: 3.301 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.378e-05/0.8763, allocations: 4.562 kB / 0.9564 GB, free: 3.301 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.0001196/0.8764, allocations: 148.7 kB / 0.9566 GB, free: 3.168 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.602e-05/0.8765, allocations: 21.66 kB / 0.9566 GB, free: 3.156 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.208e-05/0.8765, allocations: 32.11 kB / 0.9566 GB, free: 3.133 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.607e-06/0.8765, allocations: 1.625 kB / 0.9566 GB, free: 3.133 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.242e-06/0.8765, allocations: 4 kB / 0.9566 GB, free: 3.129 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.088e-06/0.8766, allocations: 0 / 0.9566 GB, free: 3.129 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001975/0.8768, allocations: 258.9 kB / 0.9569 GB, free: 2.867 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.8768, allocations: 0 / 0.9569 GB, free: 2.867 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.886e-05/0.8768, allocations: 13.59 kB / 0.9569 GB, free: 2.859 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.754e-06/0.8768, allocations: 0 / 0.9569 GB, free: 2.859 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.598e-05/0.8768, allocations: 9.828 kB / 0.9569 GB, free: 2.852 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.814e-06/0.8769, allocations: 0 / 0.9569 GB, free: 2.852 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/0.8769, allocations: 1.969 kB / 0.9569 GB, free: 2.852 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002541/0.8771, allocations: 144.1 kB / 0.957 GB, free: 2.742 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 5.91e-05/0.8772, allocations: 102 kB / 0.9571 GB, free: 2.633 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.69e-05/0.8772, allocations: 5.188 kB / 0.9571 GB, free: 2.629 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001027/0.8773, allocations: 13.8 kB / 0.9572 GB, free: 2.621 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.766e-05/0.8774, allocations: 13.91 kB / 0.9572 GB, free: 2.613 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.102e-05/0.8774, allocations: 3.688 kB / 0.9572 GB, free: 2.613 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0002028/0.8776, allocations: 229 kB / 0.9574 GB, free: 2.477 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.51e-07/0.8776, allocations: 1.812 kB / 0.9574 GB, free: 2.477 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002882/0.8779, allocations: 49.27 kB / 0.9574 GB, free: 2.457 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.001147/0.8791, allocations: 431.2 kB / 0.9578 GB, free: 2.246 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002879/0.8794, allocations: 115.3 kB / 0.958 GB, free: 2.199 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.8794, allocations: 0 / 0.958 GB, free: 2.199 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 9.913e-05/0.8795, allocations: 33.98 kB / 0.958 GB, free: 2.188 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003781/0.8799, allocations: 57.55 kB / 0.958 GB, free: 2.156 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007239/0.8806, allocations: 439.2 kB / 0.9585 GB, free: 1.844 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001994/0.8808, allocations: 0.7489 MB / 0.9592 GB, free: 1.113 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.0001013/0.8809, allocations: 25.3 kB / 0.9592 GB, free: 1.105 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.003e-05/0.881, allocations: 23.64 kB / 0.9592 GB, free: 1.094 MB / 0.7169 GB Notification: Performance of SimCode: time 3.01e-07/0.881, allocations: 0 / 0.9592 GB, free: 1.094 MB / 0.7169 GB Notification: Performance of Templates: time 0.006999/0.888, allocations: 2.871 MB / 0.962 GB, free: 15.67 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