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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_GreaterThreshold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_GreaterThreshold",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001103/0.001103, allocations: 104 kB / 15.6 MB, free: 148 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001097/0.001097, allocations: 196.1 kB / 16.53 MB, free: 6.617 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.397/1.397, allocations: 222.9 MB / 240.2 MB, free: 4.215 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.339/2.339, allocations: 390.3 MB / 0.6647 GB, free: 172 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001296/0.001296, allocations: 67.89 kB / 0.8127 GB, free: 14.14 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5644/0.5657, allocations: 140.4 MB / 0.9497 GB, free: 9.23 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold): time 0.003097/0.5689, allocations: 1.946 MB / 0.9516 GB, free: 7.688 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001402/0.5703, allocations: 1.117 MB / 0.9527 GB, free: 6.812 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001066/0.5704, allocations: 6.562 kB / 0.9527 GB, free: 6.809 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.000328/0.5707, allocations: 104 kB / 0.9528 GB, free: 6.746 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0002201/0.571, allocations: 101.4 kB / 0.9529 GB, free: 6.676 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000311/0.5713, allocations: 148.7 kB / 0.9531 GB, free: 6.57 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002446/0.5715, allocations: 219.4 kB / 0.9533 GB, free: 6.441 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001631/0.5717, allocations: 56.98 kB / 0.9533 GB, free: 6.406 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001221/0.5718, allocations: 93.44 kB / 0.9534 GB, free: 6.352 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001439/0.572, allocations: 103.2 kB / 0.9535 GB, free: 6.289 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.306e-05/0.572, allocations: 11.88 kB / 0.9535 GB, free: 6.289 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000134/0.5722, allocations: 69.3 kB / 0.9536 GB, free: 6.262 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 7.22e-05/0.5722, allocations: 55.36 kB / 0.9537 GB, free: 6.227 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 7.952e-05/0.5723, allocations: 92.19 kB / 0.9537 GB, free: 6.152 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002878/0.5726, allocations: 284.9 kB / 0.954 GB, free: 5.953 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.52e-06/0.5726, allocations: 0 / 0.954 GB, free: 5.953 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.552e-06/0.5727, allocations: 5.219 kB / 0.954 GB, free: 5.949 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.422e-06/0.5727, allocations: 0 / 0.954 GB, free: 5.949 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.0007077/0.5734, allocations: 0.538 MB / 0.9545 GB, free: 5.434 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.542e-05/0.5734, allocations: 10.09 kB / 0.9546 GB, free: 5.434 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.425e-05/0.5735, allocations: 40.95 kB / 0.9546 GB, free: 5.387 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.524e-05/0.5735, allocations: 31.91 kB / 0.9546 GB, free: 5.367 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002898/0.5738, allocations: 304.3 kB / 0.9549 GB, free: 5.082 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.778e-05/0.5738, allocations: 14.66 kB / 0.9549 GB, free: 5.07 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.724e-05/0.5739, allocations: 8.984 kB / 0.9549 GB, free: 5.066 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001824/0.574, allocations: 92.92 kB / 0.955 GB, free: 4.996 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.486e-06/0.5741, allocations: 0 / 0.955 GB, free: 4.996 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.325e-05/0.5741, allocations: 1.062 kB / 0.955 GB, free: 4.996 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.08e-06/0.5741, allocations: 0.875 kB / 0.955 GB, free: 4.996 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001304/0.5742, allocations: 49.19 kB / 0.9551 GB, free: 4.973 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000606/0.5748, allocations: 452.1 kB / 0.9555 GB, free: 4.562 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002195/0.5751, allocations: 89.08 kB / 0.9556 GB, free: 4.504 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.231e-05/0.5752, allocations: 31.36 kB / 0.9556 GB, free: 4.484 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.209e-05/0.5752, allocations: 5.281 kB / 0.9556 GB, free: 4.48 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001519/0.5753, allocations: 89.91 kB / 0.9557 GB, free: 4.402 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=8): time 1.513e-06/0.5754, allocations: 0 / 0.9557 GB, free: 4.402 MB / 0.7169 GB Notification: Performance of matching and sorting (n=8): time 0.0003474/0.5757, allocations: 155.3 kB / 0.9559 GB, free: 4.305 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.648e-05/0.5757, allocations: 52.34 kB / 0.9559 GB, free: 4.242 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003303/0.5761, allocations: 368.4 kB / 0.9563 GB, free: 4.02 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.522e-05/0.5761, allocations: 35.11 kB / 0.9563 GB, free: 3.98 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 6.917e-05/0.5762, allocations: 139.9 kB / 0.9564 GB, free: 3.852 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.371e-05/0.5762, allocations: 29.16 kB / 0.9565 GB, free: 3.828 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.319e-05/0.5763, allocations: 41.11 kB / 0.9565 GB, free: 3.797 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.441e-05/0.5763, allocations: 332.8 kB / 0.9568 GB, free: 3.469 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001143/0.5765, allocations: 66.52 kB / 0.9569 GB, free: 3.438 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001169/0.5766, allocations: 79.53 kB / 0.957 GB, free: 3.391 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001742/0.5768, allocations: 105.7 kB / 0.9571 GB, free: 3.332 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.5768, allocations: 3.938 kB / 0.9571 GB, free: 3.328 MB / 0.7169 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003029/0.5771, allocations: 203.2 kB / 0.9573 GB, free: 3.223 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.333e-05/0.5771, allocations: 5.5 kB / 0.9573 GB, free: 3.223 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.08e-06/0.5771, allocations: 3.938 kB / 0.9573 GB, free: 3.219 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.186e-05/0.5771, allocations: 1.375 kB / 0.9573 GB, free: 3.219 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001284/0.5773, allocations: 27.17 kB / 0.9573 GB, free: 3.211 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.37e-06/0.5773, allocations: 1.375 kB / 0.9573 GB, free: 3.211 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001213/0.5774, allocations: 20.27 kB / 0.9573 GB, free: 3.199 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.989e-05/0.5774, allocations: 4.125 kB / 0.9573 GB, free: 3.199 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.0001037/0.5775, allocations: 150.7 kB / 0.9575 GB, free: 3.066 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.272e-05/0.5776, allocations: 26.7 kB / 0.9575 GB, free: 3.051 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.976e-05/0.5776, allocations: 27.31 kB / 0.9575 GB, free: 3.031 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.795e-06/0.5776, allocations: 1.375 kB / 0.9575 GB, free: 3.031 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5e-06/0.5776, allocations: 3.938 kB / 0.9575 GB, free: 3.027 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.5776, allocations: 3.984 kB / 0.9575 GB, free: 3.023 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001507/0.5778, allocations: 262.4 kB / 0.9578 GB, free: 2.758 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.193e-06/0.5778, allocations: 1.312 kB / 0.9578 GB, free: 2.758 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.535e-05/0.5779, allocations: 8.266 kB / 0.9578 GB, free: 2.754 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.405e-06/0.5779, allocations: 2.094 kB / 0.9578 GB, free: 2.754 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.129e-05/0.5779, allocations: 7.938 kB / 0.9578 GB, free: 2.746 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.104e-06/0.5779, allocations: 1.5 kB / 0.9578 GB, free: 2.746 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.5779, allocations: 0 / 0.9578 GB, free: 2.746 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002281/0.5781, allocations: 148.6 kB / 0.9579 GB, free: 2.633 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 4.732e-05/0.5782, allocations: 105.7 kB / 0.958 GB, free: 2.52 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.478e-05/0.5782, allocations: 9.656 kB / 0.958 GB, free: 2.512 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001038/0.5783, allocations: 10.8 kB / 0.958 GB, free: 2.508 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.42e-05/0.5784, allocations: 17.44 kB / 0.9581 GB, free: 2.496 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.044e-05/0.5784, allocations: 7.281 kB / 0.9581 GB, free: 2.492 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0001978/0.5786, allocations: 229.8 kB / 0.9583 GB, free: 2.352 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5786, allocations: 3.938 kB / 0.9583 GB, free: 2.348 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002536/0.5789, allocations: 37.92 kB / 0.9583 GB, free: 2.34 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.001241/0.5801, allocations: 0.9984 MB / 0.9593 GB, free: 1.586 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002672/0.5804, allocations: 124.2 kB / 0.9594 GB, free: 1.531 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.5804, allocations: 1 kB / 0.9594 GB, free: 1.531 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 9.622e-05/0.5805, allocations: 41.05 kB / 0.9595 GB, free: 1.512 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003232/0.5809, allocations: 61.61 kB / 0.9595 GB, free: 1.48 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002361/0.5832, allocations: 2.366 MB / 0.9618 GB, free: 15.77 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003159/0.5836, allocations: 0.7516 MB / 0.9626 GB, free: 15.04 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001119/0.5837, allocations: 34.05 kB / 0.9626 GB, free: 15.03 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001193/0.5838, allocations: 76.31 kB / 0.9627 GB, free: 14.96 MB / 0.7325 GB Notification: Performance of SimCode: time 2.81e-07/0.5838, allocations: 0 / 0.9627 GB, free: 14.96 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02318/0.607, allocations: 5.394 MB / 0.9679 GB, free: 12.27 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.259/7.866, allocations: 11.05 kB / 0.968 GB, free: 12.27 MB / 0.7325 GB (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 & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_GreaterThreshold.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold_res.csv","/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) Reference file matches