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.006558/0.006558, allocations: 100.8 kB / 15.87 MB, free: 5.867 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.001661/0.001662, allocations: 195.8 kB / 16.79 MB, free: 5.809 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.387/1.387, allocations: 222.9 MB / 240.5 MB, free: 4.594 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.324/2.324, allocations: 390.2 MB / 0.6649 GB, free: 0.6367 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001449/0.001449, allocations: 67.89 kB / 0.8126 GB, free: 14.89 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.805/0.8064, allocations: 140.3 MB / 0.9496 GB, free: 9.227 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold): time 0.003452/0.81, allocations: 2.009 MB / 0.9516 GB, free: 7.641 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001777/0.8118, allocations: 1.094 MB / 0.9526 GB, free: 6.789 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001399/0.8119, allocations: 6.469 kB / 0.9526 GB, free: 6.785 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0004591/0.8124, allocations: 108.8 kB / 0.9527 GB, free: 6.723 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0002239/0.8127, allocations: 86.56 kB / 0.9528 GB, free: 6.664 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003678/0.813, allocations: 137.2 kB / 0.953 GB, free: 6.574 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002699/0.8133, allocations: 209.6 kB / 0.9532 GB, free: 6.453 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002021/0.8135, allocations: 48.38 kB / 0.9532 GB, free: 6.426 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001663/0.8137, allocations: 83.22 kB / 0.9533 GB, free: 6.379 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001464/0.8138, allocations: 99.48 kB / 0.9534 GB, free: 6.32 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.033e-05/0.8139, allocations: 6.094 kB / 0.9534 GB, free: 6.32 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001569/0.814, allocations: 58.89 kB / 0.9534 GB, free: 6.297 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 8.322e-05/0.8141, allocations: 51.17 kB / 0.9535 GB, free: 6.266 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001013/0.8142, allocations: 88.8 kB / 0.9536 GB, free: 6.195 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0003235/0.8146, allocations: 221.4 kB / 0.9538 GB, free: 6.043 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.8146, allocations: 5.219 kB / 0.9538 GB, free: 6.039 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.002e-06/0.8146, allocations: 0 / 0.9538 GB, free: 6.039 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.641e-06/0.8146, allocations: 0 / 0.9538 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.0008666/0.8155, allocations: 0.5477 MB / 0.9543 GB, free: 5.516 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.1e-05/0.8155, allocations: 8.625 kB / 0.9543 GB, free: 5.516 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.8e-05/0.8156, allocations: 28.12 kB / 0.9544 GB, free: 5.5 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003676/0.816, allocations: 299.5 kB / 0.9546 GB, free: 5.223 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.147e-05/0.816, allocations: 11.56 kB / 0.9547 GB, free: 5.215 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.643e-05/0.8161, allocations: 9.281 kB / 0.9547 GB, free: 5.211 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002088/0.8163, allocations: 93.75 kB / 0.9547 GB, free: 5.141 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.177e-05/0.8163, allocations: 3.984 kB / 0.9548 GB, free: 5.137 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.558e-05/0.8163, allocations: 5.781 kB / 0.9548 GB, free: 5.133 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.017e-06/0.8163, allocations: 1.062 kB / 0.9548 GB, free: 5.133 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001343/0.8165, allocations: 49.72 kB / 0.9548 GB, free: 5.109 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006964/0.8172, allocations: 447.7 kB / 0.9552 GB, free: 4.703 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002423/0.8174, allocations: 89.09 kB / 0.9553 GB, free: 4.645 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.89e-05/0.8175, allocations: 35.58 kB / 0.9554 GB, free: 4.621 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.655e-05/0.8175, allocations: 1.219 kB / 0.9554 GB, free: 4.621 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001758/0.8177, allocations: 83.72 kB / 0.9554 GB, free: 4.547 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=8): time 1.352e-06/0.8177, allocations: 0 / 0.9554 GB, free: 4.547 MB / 0.7169 GB Notification: Performance of matching and sorting (n=8): time 0.0004032/0.8181, allocations: 156.6 kB / 0.9556 GB, free: 4.449 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.808e-05/0.8182, allocations: 52.53 kB / 0.9556 GB, free: 4.387 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003693/0.8186, allocations: 364.6 kB / 0.956 GB, free: 4.164 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.762e-05/0.8186, allocations: 34.77 kB / 0.956 GB, free: 4.125 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 7.677e-05/0.8187, allocations: 140.9 kB / 0.9561 GB, free: 3.996 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.749e-05/0.8187, allocations: 27.47 kB / 0.9562 GB, free: 3.973 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.673e-05/0.8188, allocations: 42.36 kB / 0.9562 GB, free: 3.941 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.736e-05/0.8189, allocations: 338 kB / 0.9565 GB, free: 3.609 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001181/0.819, allocations: 64.58 kB / 0.9566 GB, free: 3.578 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001171/0.8191, allocations: 84.2 kB / 0.9567 GB, free: 3.531 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001867/0.8193, allocations: 108 kB / 0.9568 GB, free: 3.469 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.588e-06/0.8193, allocations: 4 kB / 0.9568 GB, free: 3.465 MB / 0.7169 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003607/0.8197, allocations: 210.8 kB / 0.957 GB, free: 3.352 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.009e-05/0.8197, allocations: 5.438 kB / 0.957 GB, free: 3.352 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.915e-06/0.8197, allocations: 3.156 kB / 0.957 GB, free: 3.352 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2e-05/0.8197, allocations: 3.938 kB / 0.957 GB, free: 3.348 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001514/0.8199, allocations: 22.67 kB / 0.957 GB, free: 3.344 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.694e-06/0.8199, allocations: 0.875 kB / 0.957 GB, free: 3.344 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001353/0.8201, allocations: 20.05 kB / 0.957 GB, free: 3.332 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.466e-05/0.8201, allocations: 4.031 kB / 0.957 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.0001246/0.8202, allocations: 154.4 kB / 0.9572 GB, free: 3.195 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.448e-05/0.8203, allocations: 20.62 kB / 0.9572 GB, free: 3.184 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.032e-05/0.8203, allocations: 32.05 kB / 0.9572 GB, free: 3.16 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.885e-06/0.8203, allocations: 1.281 kB / 0.9572 GB, free: 3.16 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.68e-06/0.8203, allocations: 0 / 0.9572 GB, free: 3.16 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.116e-06/0.8203, allocations: 4 kB / 0.9572 GB, free: 3.156 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001864/0.8205, allocations: 263.1 kB / 0.9575 GB, free: 2.891 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.8205, allocations: 0 / 0.9575 GB, free: 2.891 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.611e-05/0.8206, allocations: 5.562 kB / 0.9575 GB, free: 2.891 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.406e-06/0.8206, allocations: 1.25 kB / 0.9575 GB, free: 2.891 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.672e-05/0.8206, allocations: 12.92 kB / 0.9575 GB, free: 2.879 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.313e-06/0.8206, allocations: 0 / 0.9575 GB, free: 2.879 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.844e-06/0.8206, allocations: 1.094 kB / 0.9575 GB, free: 2.879 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002537/0.8209, allocations: 149.1 kB / 0.9577 GB, free: 2.766 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 5.42e-05/0.821, allocations: 97.36 kB / 0.9578 GB, free: 2.66 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.746e-05/0.821, allocations: 5.125 kB / 0.9578 GB, free: 2.656 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001032/0.8211, allocations: 10.52 kB / 0.9578 GB, free: 2.652 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.491e-05/0.8212, allocations: 17.56 kB / 0.9578 GB, free: 2.641 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.147e-05/0.8212, allocations: 3.625 kB / 0.9578 GB, free: 2.641 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.000214/0.8214, allocations: 230.6 kB / 0.958 GB, free: 2.504 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8214, allocations: 0 / 0.958 GB, free: 2.504 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.00027/0.8217, allocations: 40.83 kB / 0.958 GB, free: 2.492 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.001066/0.8228, allocations: 435.1 kB / 0.9585 GB, free: 2.277 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002855/0.8231, allocations: 115.5 kB / 0.9586 GB, free: 2.23 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.8231, allocations: 0 / 0.9586 GB, free: 2.23 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001007/0.8232, allocations: 37.64 kB / 0.9586 GB, free: 2.215 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003417/0.8235, allocations: 51.95 kB / 0.9587 GB, free: 2.188 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006542/0.8242, allocations: 469.6 kB / 0.9591 GB, free: 1.844 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000197/0.8244, allocations: 0.7485 MB / 0.9598 GB, free: 1.113 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.472e-05/0.8245, allocations: 28.33 kB / 0.9599 GB, free: 1.098 MB / 0.7169 GB Notification: Performance of SimCode: time 4.71e-07/0.8245, allocations: 0 / 0.9599 GB, free: 1.098 MB / 0.7169 GB Notification: Performance of Templates: time 0.006129/0.8306, allocations: 3.186 MB / 0.963 GB, free: 15.46 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/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.t,gre.u,gre.y,greHys.y,time