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.001889/0.001888, allocations: 104.4 kB / 16.35 MB, free: 5.828 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.001516/0.001516, allocations: 193.2 kB / 17.29 MB, free: 5.484 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.468/1.468, allocations: 222.9 MB / 241 MB, free: 15.14 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.357/2.357, allocations: 390.3 MB / 0.6655 GB, free: 0.5664 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001587/0.001587, allocations: 65.03 kB / 0.814 GB, free: 32.73 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4074/0.409, allocations: 140.4 MB / 0.9511 GB, free: 8.02 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold): time 0.004951/0.414, allocations: 1.958 MB / 0.953 GB, free: 6.051 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.002356/0.4164, allocations: 1.111 MB / 0.9541 GB, free: 4.93 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002684/0.4167, allocations: 7.938 kB / 0.9541 GB, free: 4.922 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0005278/0.4173, allocations: 111.5 kB / 0.9542 GB, free: 4.812 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0005067/0.4178, allocations: 99.52 kB / 0.9543 GB, free: 4.715 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005917/0.4184, allocations: 159.3 kB / 0.9545 GB, free: 4.562 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.000488/0.4189, allocations: 223.4 kB / 0.9547 GB, free: 4.344 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002316/0.4192, allocations: 45.67 kB / 0.9547 GB, free: 4.297 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002632/0.4194, allocations: 99.61 kB / 0.9548 GB, free: 4.199 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000227/0.4197, allocations: 103.5 kB / 0.9549 GB, free: 4.098 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 4.527e-05/0.4197, allocations: 12 kB / 0.955 GB, free: 4.086 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002257/0.42, allocations: 63.95 kB / 0.955 GB, free: 4.023 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0001051/0.4201, allocations: 55.83 kB / 0.9551 GB, free: 3.969 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0001137/0.4202, allocations: 87.36 kB / 0.9552 GB, free: 3.883 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0005362/0.4207, allocations: 291 kB / 0.9554 GB, free: 3.598 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 6.803e-06/0.4208, allocations: 0 / 0.9554 GB, free: 3.598 MB / 0.7325 GB Notification: Performance of FrontEnd: time 2.284e-06/0.4208, allocations: 0 / 0.9554 GB, free: 3.598 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 1.27e-05/0.4208, allocations: 3.984 kB / 0.9554 GB, free: 3.594 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.001357/0.4221, allocations: 0.541 MB / 0.956 GB, free: 3.004 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 5.529e-05/0.4222, allocations: 12.03 kB / 0.956 GB, free: 2.992 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001172/0.4223, allocations: 24.66 kB / 0.956 GB, free: 2.969 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005952/0.4229, allocations: 315.6 kB / 0.9563 GB, free: 2.621 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.982e-05/0.423, allocations: 4.375 kB / 0.9563 GB, free: 2.617 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.402e-05/0.423, allocations: 11.94 kB / 0.9563 GB, free: 2.605 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002417/0.4233, allocations: 97.58 kB / 0.9564 GB, free: 2.504 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.093e-05/0.4233, allocations: 0 / 0.9564 GB, free: 2.504 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.523e-05/0.4233, allocations: 0 / 0.9564 GB, free: 2.504 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.328e-06/0.4233, allocations: 4 kB / 0.9564 GB, free: 2.5 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001532/0.4235, allocations: 51.91 kB / 0.9565 GB, free: 2.449 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008606/0.4243, allocations: 444.5 kB / 0.9569 GB, free: 1.965 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002417/0.4246, allocations: 90.56 kB / 0.957 GB, free: 1.867 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.959e-05/0.4247, allocations: 32.89 kB / 0.957 GB, free: 1.832 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.986e-05/0.4247, allocations: 0 / 0.957 GB, free: 1.832 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001909/0.4249, allocations: 83.28 kB / 0.9571 GB, free: 1.738 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=8): time 1.322e-06/0.4249, allocations: 4 kB / 0.9571 GB, free: 1.734 MB / 0.7325 GB Notification: Performance of matching and sorting (n=8): time 0.0004188/0.4254, allocations: 153.3 kB / 0.9572 GB, free: 1.578 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.71e-05/0.4254, allocations: 55.41 kB / 0.9573 GB, free: 1.512 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004383/0.4259, allocations: 366.9 kB / 0.9576 GB, free: 1.141 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.437e-05/0.4259, allocations: 25.7 kB / 0.9577 GB, free: 1.109 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001364/0.4261, allocations: 148.4 kB / 0.9578 GB, free: 0.9609 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 3.415e-05/0.4261, allocations: 23.7 kB / 0.9578 GB, free: 0.9375 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.182e-05/0.4262, allocations: 41.7 kB / 0.9579 GB, free: 0.8906 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001672/0.4264, allocations: 338.8 kB / 0.9582 GB, free: 0.5508 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001276/0.4265, allocations: 63.92 kB / 0.9582 GB, free: 500 kB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001378/0.4267, allocations: 79.58 kB / 0.9583 GB, free: 416 kB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002166/0.4269, allocations: 109.6 kB / 0.9584 GB, free: 300 kB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.4269, allocations: 0 / 0.9584 GB, free: 300 kB / 0.7325 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0004155/0.4273, allocations: 207.8 kB / 0.9586 GB, free: 88 kB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.372e-05/0.4273, allocations: 4 kB / 0.9586 GB, free: 84 kB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.155e-06/0.4274, allocations: 0 / 0.9586 GB, free: 84 kB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.408e-05/0.4274, allocations: 7.938 kB / 0.9586 GB, free: 76 kB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000155/0.4275, allocations: 23.92 kB / 0.9587 GB, free: 52 kB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.272e-05/0.4276, allocations: 8.312 kB / 0.9587 GB, free: 44 kB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001483/0.4277, allocations: 23.83 kB / 0.9587 GB, free: 20 kB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.865e-05/0.4278, allocations: 4 kB / 0.9587 GB, free: 16 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.0002247/0.428, allocations: 165.7 kB / 0.9589 GB, free: 15.84 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.792e-05/0.428, allocations: 19.72 kB / 0.9589 GB, free: 15.82 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.268e-05/0.4281, allocations: 33.67 kB / 0.9589 GB, free: 15.79 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.838e-06/0.4281, allocations: 0 / 0.9589 GB, free: 15.79 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.434e-06/0.4282, allocations: 0 / 0.9589 GB, free: 15.79 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.579e-06/0.4282, allocations: 0 / 0.9589 GB, free: 15.79 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002755/0.4284, allocations: 253.5 kB / 0.9591 GB, free: 15.49 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.255e-06/0.4285, allocations: 4 kB / 0.9591 GB, free: 15.49 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.911e-05/0.4285, allocations: 4 kB / 0.9592 GB, free: 15.48 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.966e-06/0.4285, allocations: 0 / 0.9592 GB, free: 15.48 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.875e-05/0.4285, allocations: 7.922 kB / 0.9592 GB, free: 15.48 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.294e-06/0.4286, allocations: 7.938 kB / 0.9592 GB, free: 15.47 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.965e-06/0.4286, allocations: 7.984 kB / 0.9592 GB, free: 15.46 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002808/0.4289, allocations: 144.8 kB / 0.9593 GB, free: 15.3 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001029/0.429, allocations: 100.8 kB / 0.9594 GB, free: 15.18 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.111e-05/0.429, allocations: 7.938 kB / 0.9594 GB, free: 15.18 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.917e-05/0.4291, allocations: 11.98 kB / 0.9594 GB, free: 15.16 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.603e-05/0.4292, allocations: 19.97 kB / 0.9594 GB, free: 15.14 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.325e-05/0.4292, allocations: 4 kB / 0.9594 GB, free: 15.14 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.000267/0.4295, allocations: 229.9 kB / 0.9597 GB, free: 14.92 MB / 0.7481 GB Notification: Performance of sort global known variables: time 4.51e-07/0.4295, allocations: 0 / 0.9597 GB, free: 14.92 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0002782/0.4298, allocations: 47.92 kB / 0.9597 GB, free: 14.87 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.001145/0.4309, allocations: 422.6 kB / 0.9601 GB, free: 14.61 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0003145/0.4313, allocations: 111.9 kB / 0.9602 GB, free: 14.5 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 4.579e-06/0.4313, allocations: 8 kB / 0.9602 GB, free: 14.49 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0001004/0.4314, allocations: 31.98 kB / 0.9603 GB, free: 14.46 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003579/0.4318, allocations: 54.69 kB / 0.9603 GB, free: 14.41 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007889/0.4326, allocations: 383.8 kB / 0.9607 GB, free: 14.01 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000375/0.433, allocations: 0.7592 MB / 0.9614 GB, free: 13.23 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.0001082/0.4331, allocations: 26.09 kB / 0.9614 GB, free: 13.2 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.064e-05/0.4331, allocations: 31.42 kB / 0.9615 GB, free: 13.17 MB / 0.7481 GB Notification: Performance of SimCode: time 6.11e-07/0.4332, allocations: 0 / 0.9615 GB, free: 13.17 MB / 0.7481 GB Notification: Performance of Templates: time 0.007962/0.4411, allocations: 3.064 MB / 0.9645 GB, free: 10.12 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 cvode -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