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: "" <> 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.001569/0.001569, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001829/0.001829, allocations: 193.5 kB / 16.14 MB, free: 6.711 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.304/1.304, allocations: 222.9 MB / 239.8 MB, free: 4.625 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.109/2.109, allocations: 390.2 MB / 0.6643 GB, free: 0.6484 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001284/0.001285, allocations: 63.91 kB / 0.812 GB, free: 14.78 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.507/0.5083, allocations: 140.4 MB / 0.9491 GB, free: 9.301 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold): time 0.002402/0.5107, allocations: 2.012 MB / 0.951 GB, free: 7.715 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001166/0.5119, allocations: 1.093 MB / 0.9521 GB, free: 6.863 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.518e-05/0.512, allocations: 11.16 kB / 0.9521 GB, free: 6.855 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0002866/0.5123, allocations: 108.7 kB / 0.9522 GB, free: 6.793 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001589/0.5124, allocations: 86.25 kB / 0.9523 GB, free: 6.734 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000248/0.5127, allocations: 137.5 kB / 0.9524 GB, free: 6.645 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001765/0.5129, allocations: 201.5 kB / 0.9526 GB, free: 6.531 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001147/0.513, allocations: 52.92 kB / 0.9527 GB, free: 6.5 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 9.712e-05/0.5131, allocations: 90.25 kB / 0.9527 GB, free: 6.445 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 9.85e-05/0.5132, allocations: 96.03 kB / 0.9528 GB, free: 6.391 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.459e-05/0.5132, allocations: 5.844 kB / 0.9528 GB, free: 6.391 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001034/0.5133, allocations: 57.34 kB / 0.9529 GB, free: 6.367 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 5.847e-05/0.5134, allocations: 64.88 kB / 0.953 GB, free: 6.324 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 6.473e-05/0.5135, allocations: 80.72 kB / 0.953 GB, free: 6.262 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002165/0.5137, allocations: 277.5 kB / 0.9533 GB, free: 6.066 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.015e-06/0.5137, allocations: 1.156 kB / 0.9533 GB, free: 6.066 MB / 0.7169 GB Notification: Performance of FrontEnd: time 6.81e-07/0.5137, allocations: 0 / 0.9533 GB, free: 6.066 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.727e-06/0.5137, allocations: 0 / 0.9533 GB, free: 6.066 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.0005905/0.5143, allocations: 0.5473 MB / 0.9538 GB, free: 5.543 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 2.817e-05/0.5144, allocations: 9.688 kB / 0.9538 GB, free: 5.543 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.661e-05/0.5144, allocations: 37.03 kB / 0.9539 GB, free: 5.5 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.644e-05/0.5144, allocations: 27.97 kB / 0.9539 GB, free: 5.484 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002637/0.5147, allocations: 308.5 kB / 0.9542 GB, free: 5.199 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.301e-05/0.5147, allocations: 11 kB / 0.9542 GB, free: 5.191 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.694e-05/0.5148, allocations: 5.5 kB / 0.9542 GB, free: 5.191 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001658/0.5149, allocations: 95.55 kB / 0.9543 GB, free: 5.117 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.452e-06/0.5149, allocations: 0 / 0.9543 GB, free: 5.117 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.176e-05/0.515, allocations: 1.594 kB / 0.9543 GB, free: 5.117 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.928e-06/0.515, allocations: 1.375 kB / 0.9543 GB, free: 5.117 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001168/0.5151, allocations: 49.09 kB / 0.9544 GB, free: 5.094 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005406/0.5156, allocations: 452.5 kB / 0.9548 GB, free: 4.684 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001996/0.5158, allocations: 84.45 kB / 0.9549 GB, free: 4.629 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.424e-05/0.5159, allocations: 32.39 kB / 0.9549 GB, free: 4.609 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.803e-05/0.5159, allocations: 0 / 0.9549 GB, free: 4.609 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001348/0.5161, allocations: 98.52 kB / 0.955 GB, free: 4.523 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=8): time 1.122e-06/0.5161, allocations: 0 / 0.955 GB, free: 4.523 MB / 0.7169 GB Notification: Performance of matching and sorting (n=8): time 0.0003052/0.5164, allocations: 139.6 kB / 0.9551 GB, free: 4.441 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.158e-05/0.5164, allocations: 56.59 kB / 0.9552 GB, free: 4.375 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000285/0.5167, allocations: 367.8 kB / 0.9555 GB, free: 4.148 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.269e-05/0.5167, allocations: 30.86 kB / 0.9556 GB, free: 4.113 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.77e-05/0.5168, allocations: 144.4 kB / 0.9557 GB, free: 3.98 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.949e-05/0.5168, allocations: 31.48 kB / 0.9557 GB, free: 3.953 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.524e-05/0.5169, allocations: 41.33 kB / 0.9558 GB, free: 3.922 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.472e-05/0.5169, allocations: 338.8 kB / 0.9561 GB, free: 3.59 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001061/0.517, allocations: 60.61 kB / 0.9561 GB, free: 3.562 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000112/0.5172, allocations: 80.22 kB / 0.9562 GB, free: 3.516 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001585/0.5173, allocations: 107.3 kB / 0.9563 GB, free: 3.457 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.5173, allocations: 0 / 0.9563 GB, free: 3.457 MB / 0.7169 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002902/0.5176, allocations: 205.7 kB / 0.9565 GB, free: 3.348 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.051e-05/0.5177, allocations: 5.906 kB / 0.9565 GB, free: 3.348 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.158e-06/0.5177, allocations: 4.016 kB / 0.9565 GB, free: 3.344 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.298e-06/0.5177, allocations: 1.531 kB / 0.9565 GB, free: 3.344 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001217/0.5178, allocations: 27.45 kB / 0.9566 GB, free: 3.336 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.16e-06/0.5178, allocations: 5.109 kB / 0.9566 GB, free: 3.332 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001148/0.5179, allocations: 19.98 kB / 0.9566 GB, free: 3.32 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.841e-05/0.518, allocations: 8.469 kB / 0.9566 GB, free: 3.316 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 8.901e-05/0.5181, allocations: 161.9 kB / 0.9567 GB, free: 3.172 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.932e-05/0.5181, allocations: 22.53 kB / 0.9568 GB, free: 3.16 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.355e-05/0.5181, allocations: 30.67 kB / 0.9568 GB, free: 3.137 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.984e-06/0.5181, allocations: 1.781 kB / 0.9568 GB, free: 3.137 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.176e-06/0.5181, allocations: 4 kB / 0.9568 GB, free: 3.133 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.174e-06/0.5182, allocations: 0 / 0.9568 GB, free: 3.133 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001326/0.5183, allocations: 259.6 kB / 0.9571 GB, free: 2.871 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.5183, allocations: 0 / 0.9571 GB, free: 2.871 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.564e-05/0.5183, allocations: 17.55 kB / 0.9571 GB, free: 2.859 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.573e-06/0.5184, allocations: 0 / 0.9571 GB, free: 2.859 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.149e-05/0.5184, allocations: 9.312 kB / 0.9571 GB, free: 2.852 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.5184, allocations: 1.375 kB / 0.9571 GB, free: 2.852 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.31e-07/0.5184, allocations: 0 / 0.9571 GB, free: 2.852 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002062/0.5186, allocations: 141.1 kB / 0.9572 GB, free: 2.746 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 4.036e-05/0.5186, allocations: 101.1 kB / 0.9573 GB, free: 2.637 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.047e-05/0.5187, allocations: 10.67 kB / 0.9573 GB, free: 2.629 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.605e-05/0.5188, allocations: 13.48 kB / 0.9573 GB, free: 2.621 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.47e-05/0.5188, allocations: 13.48 kB / 0.9573 GB, free: 2.613 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.668e-06/0.5188, allocations: 2.75 kB / 0.9573 GB, free: 2.613 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0001668/0.519, allocations: 235.2 kB / 0.9576 GB, free: 2.473 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.41e-07/0.519, allocations: 0 / 0.9576 GB, free: 2.473 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002272/0.5192, allocations: 37.5 kB / 0.9576 GB, free: 2.465 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.001102/0.5204, allocations: 1.004 MB / 0.9586 GB, free: 1.703 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002315/0.5206, allocations: 115.3 kB / 0.9587 GB, free: 1.656 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.393e-06/0.5206, allocations: 1.156 kB / 0.9587 GB, free: 1.656 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 8.844e-05/0.5207, allocations: 36.98 kB / 0.9587 GB, free: 1.641 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002921/0.521, allocations: 49.61 kB / 0.9588 GB, free: 1.617 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002189/0.5232, allocations: 2.402 MB / 0.9611 GB, free: 15.86 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002693/0.5235, allocations: 0.7527 MB / 0.9619 GB, free: 15.12 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 8.726e-05/0.5236, allocations: 30.09 kB / 0.9619 GB, free: 15.12 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001082/0.5237, allocations: 75.22 kB / 0.962 GB, free: 15.06 MB / 0.7325 GB Notification: Performance of SimCode: time 2.71e-07/0.5237, allocations: 0 / 0.962 GB, free: 15.06 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.168/1.691, allocations: 5.098 MB / 0.9669 GB, free: 12.58 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002595/1.692, allocations: 255.9 kB / 0.9672 GB, free: 12.29 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.063/3.754, allocations: 0 / 0.9672 GB, free: 12.29 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