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.001446/0.001446, allocations: 107.4 kB / 15.22 MB, free: 0.6562 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.002031/0.002031, allocations: 198.2 kB / 16.14 MB, free: 6.574 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.485/1.485, allocations: 222.9 MB / 239.8 MB, free: 4.594 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.644/2.644, allocations: 390.2 MB / 0.6642 GB, free: 0.5703 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001674/0.001674, allocations: 63.91 kB / 0.8119 GB, free: 14.86 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9273/0.929, allocations: 140.4 MB / 0.9489 GB, free: 9.27 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold): time 0.003923/0.933, allocations: 2.001 MB / 0.9509 GB, free: 7.691 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002123/0.9352, allocations: 1.094 MB / 0.952 GB, free: 6.84 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001859/0.9354, allocations: 6.812 kB / 0.952 GB, free: 6.836 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0005017/0.9359, allocations: 104.7 kB / 0.9521 GB, free: 6.777 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0002662/0.9362, allocations: 98.14 kB / 0.9522 GB, free: 6.707 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004259/0.9366, allocations: 129.3 kB / 0.9523 GB, free: 6.625 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002992/0.9369, allocations: 205.7 kB / 0.9525 GB, free: 6.508 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002024/0.9372, allocations: 48.16 kB / 0.9525 GB, free: 6.48 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001518/0.9373, allocations: 92.3 kB / 0.9526 GB, free: 6.426 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001511/0.9375, allocations: 100.2 kB / 0.9527 GB, free: 6.367 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.979e-05/0.9375, allocations: 5.188 kB / 0.9527 GB, free: 6.367 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001539/0.9377, allocations: 57.47 kB / 0.9528 GB, free: 6.344 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 8.721e-05/0.9378, allocations: 52.03 kB / 0.9528 GB, free: 6.312 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 9.888e-05/0.9379, allocations: 89.48 kB / 0.9529 GB, free: 6.242 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0003339/0.9382, allocations: 284.5 kB / 0.9532 GB, free: 6.039 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 6.061e-06/0.9382, allocations: 1.312 kB / 0.9532 GB, free: 6.039 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.142e-06/0.9382, allocations: 0 / 0.9532 GB, free: 6.039 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.582e-06/0.9382, allocations: 0 / 0.9532 GB, free: 6.039 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.0009439/0.9392, allocations: 0.5477 MB / 0.9537 GB, free: 5.516 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.892e-05/0.9392, allocations: 9.406 kB / 0.9537 GB, free: 5.516 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.588e-05/0.9393, allocations: 28.06 kB / 0.9537 GB, free: 5.5 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003614/0.9397, allocations: 299.1 kB / 0.954 GB, free: 5.223 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.802e-05/0.9397, allocations: 12.56 kB / 0.954 GB, free: 5.215 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.399e-05/0.9398, allocations: 12.53 kB / 0.9541 GB, free: 5.207 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002126/0.94, allocations: 90.53 kB / 0.9541 GB, free: 5.141 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.498e-06/0.94, allocations: 3.938 kB / 0.9541 GB, free: 5.137 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.599e-05/0.94, allocations: 5.125 kB / 0.9541 GB, free: 5.133 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.203e-06/0.94, allocations: 1.094 kB / 0.9541 GB, free: 5.133 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001422/0.9402, allocations: 45.56 kB / 0.9542 GB, free: 5.113 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007165/0.9409, allocations: 452 kB / 0.9546 GB, free: 4.703 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002431/0.9411, allocations: 84.89 kB / 0.9547 GB, free: 4.648 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.585e-05/0.9412, allocations: 39.97 kB / 0.9547 GB, free: 4.621 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.761e-05/0.9413, allocations: 5.5 kB / 0.9547 GB, free: 4.617 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001936/0.9415, allocations: 79.44 kB / 0.9548 GB, free: 4.547 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=8): time 1.372e-06/0.9415, allocations: 0 / 0.9548 GB, free: 4.547 MB / 0.7169 GB Notification: Performance of matching and sorting (n=8): time 0.0004165/0.9419, allocations: 158.4 kB / 0.955 GB, free: 4.449 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.134e-05/0.9419, allocations: 51.41 kB / 0.955 GB, free: 4.387 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004022/0.9424, allocations: 367.5 kB / 0.9554 GB, free: 4.16 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.031e-05/0.9424, allocations: 34.77 kB / 0.9554 GB, free: 4.121 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 9.523e-05/0.9425, allocations: 140.8 kB / 0.9555 GB, free: 3.992 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.123e-05/0.9425, allocations: 28.59 kB / 0.9556 GB, free: 3.969 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.757e-05/0.9426, allocations: 40.7 kB / 0.9556 GB, free: 3.938 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 8.63e-05/0.9427, allocations: 338.2 kB / 0.9559 GB, free: 3.605 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000124/0.9428, allocations: 65.39 kB / 0.956 GB, free: 3.574 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001312/0.943, allocations: 75.84 kB / 0.9561 GB, free: 3.531 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001956/0.9432, allocations: 106.4 kB / 0.9562 GB, free: 3.473 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.9432, allocations: 0 / 0.9562 GB, free: 3.473 MB / 0.7169 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003523/0.9435, allocations: 202.2 kB / 0.9564 GB, free: 3.367 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.848e-05/0.9436, allocations: 4.938 kB / 0.9564 GB, free: 3.367 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.796e-06/0.9436, allocations: 3.984 kB / 0.9564 GB, free: 3.363 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.97e-05/0.9436, allocations: 5.625 kB / 0.9564 GB, free: 3.359 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001505/0.9438, allocations: 34.98 kB / 0.9564 GB, free: 3.344 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.105e-06/0.9438, allocations: 5.562 kB / 0.9564 GB, free: 3.34 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001228/0.9439, allocations: 11.55 kB / 0.9564 GB, free: 3.336 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.557e-05/0.9439, allocations: 8.25 kB / 0.9564 GB, free: 3.332 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.000133/0.9441, allocations: 146.6 kB / 0.9566 GB, free: 3.203 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.879e-05/0.9441, allocations: 22.31 kB / 0.9566 GB, free: 3.191 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.698e-05/0.9442, allocations: 31.55 kB / 0.9566 GB, free: 3.168 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.818e-06/0.9442, allocations: 1.531 kB / 0.9566 GB, free: 3.168 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.292e-06/0.9442, allocations: 0 / 0.9566 GB, free: 3.168 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.29e-06/0.9442, allocations: 7.938 kB / 0.9566 GB, free: 3.16 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002287/0.9445, allocations: 272 kB / 0.9569 GB, free: 2.887 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.9445, allocations: 0 / 0.9569 GB, free: 2.887 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.767e-05/0.9445, allocations: 9.375 kB / 0.9569 GB, free: 2.883 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.593e-06/0.9445, allocations: 0 / 0.9569 GB, free: 2.883 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.766e-05/0.9446, allocations: 9.797 kB / 0.9569 GB, free: 2.875 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.403e-06/0.9446, allocations: 0 / 0.9569 GB, free: 2.875 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.9446, allocations: 0 / 0.9569 GB, free: 2.875 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002524/0.9448, allocations: 146 kB / 0.957 GB, free: 2.766 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 5.597e-05/0.9449, allocations: 100.3 kB / 0.9571 GB, free: 2.656 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.675e-05/0.9449, allocations: 6.594 kB / 0.9572 GB, free: 2.652 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.972e-05/0.945, allocations: 14.36 kB / 0.9572 GB, free: 2.645 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.082e-05/0.9451, allocations: 12.97 kB / 0.9572 GB, free: 2.637 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.121e-05/0.9451, allocations: 2.938 kB / 0.9572 GB, free: 2.637 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0002279/0.9454, allocations: 230.3 kB / 0.9574 GB, free: 2.5 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.9454, allocations: 0 / 0.9574 GB, free: 2.5 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002777/0.9457, allocations: 50.14 kB / 0.9574 GB, free: 2.48 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.001169/0.9468, allocations: 427.7 kB / 0.9579 GB, free: 2.273 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003226/0.9472, allocations: 114.3 kB / 0.958 GB, free: 2.227 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 3.927e-06/0.9472, allocations: 1.062 kB / 0.958 GB, free: 2.227 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001114/0.9473, allocations: 37.27 kB / 0.958 GB, free: 2.211 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003967/0.9477, allocations: 52.34 kB / 0.9581 GB, free: 2.184 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000809/0.9485, allocations: 431.2 kB / 0.9585 GB, free: 1.879 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003249/0.9489, allocations: 0.7494 MB / 0.9592 GB, free: 1.148 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.0001223/0.949, allocations: 28.59 kB / 0.9592 GB, free: 1.137 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.977e-05/0.9491, allocations: 27.67 kB / 0.9592 GB, free: 1.121 MB / 0.7169 GB Notification: Performance of SimCode: time 5e-07/0.9491, allocations: 0 / 0.9592 GB, free: 1.121 MB / 0.7169 GB Notification: Performance of Templates: time 0.008853/0.9579, allocations: 2.868 MB / 0.962 GB, free: 15.7 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