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.001469/0.001469, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001978/0.001978, allocations: 192 kB / 16.25 MB, free: 6.633 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.338/1.338, allocations: 222.9 MB / 239.9 MB, free: 4.496 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.303/2.303, allocations: 390.2 MB / 0.6644 GB, free: 0.5547 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00145/0.00145, allocations: 59.91 kB / 0.8122 GB, free: 14.65 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6028/0.6042, allocations: 140.4 MB / 0.9493 GB, free: 9.164 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold): time 0.002761/0.607, allocations: 2.002 MB / 0.9512 GB, free: 7.586 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001477/0.6085, allocations: 1.086 MB / 0.9523 GB, free: 6.738 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000144/0.6087, allocations: 11.34 kB / 0.9523 GB, free: 6.73 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.000351/0.6091, allocations: 96.69 kB / 0.9524 GB, free: 6.68 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0002401/0.6093, allocations: 97.2 kB / 0.9525 GB, free: 6.613 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003556/0.6097, allocations: 121.4 kB / 0.9526 GB, free: 6.535 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.000235/0.6099, allocations: 219.2 kB / 0.9528 GB, free: 6.406 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001431/0.6101, allocations: 61.75 kB / 0.9529 GB, free: 6.367 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001333/0.6102, allocations: 93.2 kB / 0.9529 GB, free: 6.312 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001242/0.6104, allocations: 105.3 kB / 0.953 GB, free: 6.25 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.021e-05/0.6104, allocations: 16.08 kB / 0.9531 GB, free: 6.246 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001338/0.6105, allocations: 65.78 kB / 0.9531 GB, free: 6.223 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 6.418e-05/0.6106, allocations: 56.08 kB / 0.9532 GB, free: 6.188 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 7.376e-05/0.6107, allocations: 92.55 kB / 0.9533 GB, free: 6.113 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002773/0.611, allocations: 284.5 kB / 0.9535 GB, free: 5.914 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.928e-06/0.611, allocations: 0 / 0.9535 GB, free: 5.914 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.182e-06/0.611, allocations: 1.469 kB / 0.9535 GB, free: 5.914 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.923e-06/0.611, allocations: 0 / 0.9535 GB, free: 5.914 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.0007104/0.6117, allocations: 0.5496 MB / 0.9541 GB, free: 5.387 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.618e-05/0.6118, allocations: 10.12 kB / 0.9541 GB, free: 5.387 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.014e-05/0.6118, allocations: 36.97 kB / 0.9541 GB, free: 5.344 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.999e-05/0.6119, allocations: 27.19 kB / 0.9541 GB, free: 5.328 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003064/0.6122, allocations: 308.1 kB / 0.9544 GB, free: 5.043 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.387e-05/0.6122, allocations: 15.98 kB / 0.9545 GB, free: 5.031 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.091e-05/0.6122, allocations: 4.344 kB / 0.9545 GB, free: 5.031 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001838/0.6124, allocations: 97.91 kB / 0.9545 GB, free: 4.957 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.393e-06/0.6124, allocations: 0 / 0.9545 GB, free: 4.957 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.18e-05/0.6124, allocations: 0.9375 kB / 0.9545 GB, free: 4.957 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.079e-06/0.6125, allocations: 2.5 kB / 0.9546 GB, free: 4.957 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001238/0.6126, allocations: 48.84 kB / 0.9546 GB, free: 4.934 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006063/0.6132, allocations: 447.9 kB / 0.955 GB, free: 4.527 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002071/0.6134, allocations: 85.58 kB / 0.9551 GB, free: 4.473 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.045e-05/0.6135, allocations: 39.2 kB / 0.9551 GB, free: 4.445 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.44e-05/0.6135, allocations: 9.328 kB / 0.9552 GB, free: 4.438 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001447/0.6137, allocations: 86.83 kB / 0.9552 GB, free: 4.359 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=8): time 1.373e-06/0.6137, allocations: 1.156 kB / 0.9552 GB, free: 4.359 MB / 0.7169 GB Notification: Performance of matching and sorting (n=8): time 0.0003355/0.614, allocations: 144.3 kB / 0.9554 GB, free: 4.273 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.138e-05/0.6141, allocations: 52.78 kB / 0.9554 GB, free: 4.211 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003105/0.6144, allocations: 376.2 kB / 0.9558 GB, free: 3.977 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.618e-05/0.6144, allocations: 30.77 kB / 0.9558 GB, free: 3.941 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 6.398e-05/0.6145, allocations: 144.6 kB / 0.956 GB, free: 3.809 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.358e-05/0.6145, allocations: 28.25 kB / 0.956 GB, free: 3.785 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.434e-05/0.6146, allocations: 44.94 kB / 0.956 GB, free: 3.75 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.947e-05/0.6146, allocations: 336.8 kB / 0.9563 GB, free: 3.422 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000108/0.6147, allocations: 58.41 kB / 0.9564 GB, free: 3.395 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001151/0.6148, allocations: 85 kB / 0.9565 GB, free: 3.344 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001774/0.615, allocations: 106.4 kB / 0.9566 GB, free: 3.285 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.615, allocations: 0 / 0.9566 GB, free: 3.285 MB / 0.7169 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003142/0.6154, allocations: 207.4 kB / 0.9568 GB, free: 3.176 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.456e-05/0.6154, allocations: 5.625 kB / 0.9568 GB, free: 3.176 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.24e-06/0.6154, allocations: 3.938 kB / 0.9568 GB, free: 3.172 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.182e-05/0.6154, allocations: 1.25 kB / 0.9568 GB, free: 3.172 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001386/0.6156, allocations: 27.23 kB / 0.9568 GB, free: 3.164 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.661e-06/0.6156, allocations: 2.438 kB / 0.9568 GB, free: 3.164 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001241/0.6157, allocations: 14.61 kB / 0.9568 GB, free: 3.156 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.996e-05/0.6157, allocations: 8.531 kB / 0.9568 GB, free: 3.152 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 9.822e-05/0.6158, allocations: 154.8 kB / 0.957 GB, free: 3.016 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.187e-05/0.6159, allocations: 21.56 kB / 0.957 GB, free: 3.004 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.962e-05/0.6159, allocations: 31.02 kB / 0.957 GB, free: 2.98 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.585e-06/0.6159, allocations: 1.844 kB / 0.957 GB, free: 2.98 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/0.6159, allocations: 0 / 0.957 GB, free: 2.98 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.6159, allocations: 0 / 0.957 GB, free: 2.98 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001446/0.6161, allocations: 254.8 kB / 0.9573 GB, free: 2.723 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.844e-06/0.6161, allocations: 7.984 kB / 0.9573 GB, free: 2.715 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.759e-05/0.6162, allocations: 9.938 kB / 0.9573 GB, free: 2.711 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.255e-06/0.6162, allocations: 0 / 0.9573 GB, free: 2.711 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.179e-05/0.6162, allocations: 5.312 kB / 0.9573 GB, free: 2.707 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.272e-06/0.6162, allocations: 0 / 0.9573 GB, free: 2.707 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.6162, allocations: 1.375 kB / 0.9573 GB, free: 2.707 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002222/0.6164, allocations: 156.9 kB / 0.9575 GB, free: 2.586 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 4.479e-05/0.6165, allocations: 105.8 kB / 0.9576 GB, free: 2.473 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.33e-05/0.6165, allocations: 9.75 kB / 0.9576 GB, free: 2.465 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.885e-05/0.6166, allocations: 9.734 kB / 0.9576 GB, free: 2.461 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.36e-05/0.6167, allocations: 14.23 kB / 0.9576 GB, free: 2.453 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.088e-05/0.6167, allocations: 6.938 kB / 0.9576 GB, free: 2.449 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0001851/0.6169, allocations: 233.4 kB / 0.9578 GB, free: 2.309 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6169, allocations: 0 / 0.9578 GB, free: 2.309 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002488/0.6171, allocations: 38.31 kB / 0.9579 GB, free: 2.301 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.001146/0.6183, allocations: 1.005 MB / 0.9588 GB, free: 1.539 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002489/0.6185, allocations: 120.1 kB / 0.9589 GB, free: 1.488 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.473e-06/0.6186, allocations: 5.312 kB / 0.959 GB, free: 1.484 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 9.155e-05/0.6187, allocations: 36.55 kB / 0.959 GB, free: 1.469 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003217/0.619, allocations: 56.8 kB / 0.959 GB, free: 1.445 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00248/0.6215, allocations: 2.409 MB / 0.9614 GB, free: 15.68 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002724/0.6218, allocations: 0.7489 MB / 0.9621 GB, free: 14.95 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001035/0.6219, allocations: 33.53 kB / 0.9622 GB, free: 14.94 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001169/0.622, allocations: 71.91 kB / 0.9622 GB, free: 14.88 MB / 0.7325 GB Notification: Performance of SimCode: time 2.7e-07/0.622, allocations: 4 kB / 0.9622 GB, free: 14.88 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.887/2.509, allocations: 5.217 MB / 0.9673 GB, free: 12.33 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.04898/2.559, allocations: 265.1 kB / 0.9676 GB, free: 12.04 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.166/4.725, allocations: 0 / 0.9676 GB, free: 12.04 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_GreaterThreshold_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 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.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) Reference file matches