Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.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.Hysteresis,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_Hysteresis",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.01186/0.01186, allocations: 95.83 kB / 15.73 MB, free: 6.039 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.00235/0.00235, allocations: 198.7 kB / 16.68 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.57/2.57, allocations: 222.9 MB / 240.4 MB, free: 4.336 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 4.375/4.375, allocations: 390.3 MB / 0.6648 GB, free: 208 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.002772/0.002772, allocations: 73.88 kB / 0.9505 GB, free: 5.949 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4832/0.486, allocations: 140.4 MB / 1.088 GB, free: 1.965 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis): time 0.003659/0.4897, allocations: 1.022 MB / 1.089 GB, free: 0.9375 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.003345/0.4931, allocations: 1.313 MB / 1.09 GB, free: 15.61 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001813/0.4934, allocations: 0 / 1.09 GB, free: 15.61 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 9.909e-05/0.4935, allocations: 15.81 kB / 1.09 GB, free: 15.59 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0002845/0.4938, allocations: 43.64 kB / 1.09 GB, free: 15.55 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.001323/0.4952, allocations: 261.5 kB / 1.09 GB, free: 15.3 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0006887/0.4959, allocations: 343.4 kB / 1.09 GB, free: 14.96 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002324/0.4961, allocations: 49.64 kB / 1.091 GB, free: 14.91 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003624/0.4965, allocations: 127.6 kB / 1.091 GB, free: 14.79 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003491/0.4968, allocations: 119.5 kB / 1.091 GB, free: 14.67 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0001306/0.497, allocations: 32 kB / 1.091 GB, free: 14.64 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001768/0.4972, allocations: 47.98 kB / 1.091 GB, free: 14.59 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 7.943e-05/0.4973, allocations: 35.91 kB / 1.091 GB, free: 14.56 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0002336/0.4975, allocations: 127.4 kB / 1.091 GB, free: 14.43 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0007955/0.4983, allocations: 347.1 kB / 1.091 GB, free: 14.09 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 1.285e-05/0.4984, allocations: 3.938 kB / 1.091 GB, free: 14.09 MB / 0.8575 GB Notification: Performance of FrontEnd: time 4.619e-06/0.4984, allocations: 0 / 1.091 GB, free: 14.09 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 2.537e-05/0.4984, allocations: 0 / 1.091 GB, free: 14.09 MB / 0.8575 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 19 * Number of variables: 19 Notification: Performance of Generate backend data structure: time 0.001804/0.5002, allocations: 0.5604 MB / 1.092 GB, free: 13.46 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 6.874e-05/0.5003, allocations: 8.031 kB / 1.092 GB, free: 13.46 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001916/0.5005, allocations: 50.73 kB / 1.092 GB, free: 13.4 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001321/0.5007, allocations: 20.84 kB / 1.092 GB, free: 13.38 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001243/0.5019, allocations: 315.8 kB / 1.092 GB, free: 13.03 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.735e-05/0.502, allocations: 12.38 kB / 1.092 GB, free: 13.02 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.492e-05/0.5021, allocations: 20.38 kB / 1.092 GB, free: 13 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004924/0.5026, allocations: 136.4 kB / 1.092 GB, free: 12.85 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.485e-05/0.5026, allocations: 0 / 1.092 GB, free: 12.85 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.002e-05/0.5027, allocations: 4 kB / 1.092 GB, free: 12.85 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.115e-06/0.5027, allocations: 3.938 kB / 1.092 GB, free: 12.84 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003947/0.5031, allocations: 75.94 kB / 1.092 GB, free: 12.77 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001228/0.5043, allocations: 0.6452 MB / 1.093 GB, free: 12.07 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000704/0.5051, allocations: 143.7 kB / 1.093 GB, free: 11.9 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002207/0.5053, allocations: 54.8 kB / 1.093 GB, free: 11.84 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 3.861e-05/0.5054, allocations: 0 / 1.093 GB, free: 11.84 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006032/0.506, allocations: 149.8 kB / 1.093 GB, free: 11.67 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=14): time 3.126e-06/0.506, allocations: 0 / 1.093 GB, free: 11.67 MB / 0.8575 GB Notification: Performance of matching and sorting (n=14): time 0.001024/0.507, allocations: 197.4 kB / 1.094 GB, free: 11.47 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001335/0.5072, allocations: 114.8 kB / 1.094 GB, free: 11.33 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003132/0.5075, allocations: 194.5 kB / 1.094 GB, free: 11.13 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 8.277e-05/0.5076, allocations: 37.7 kB / 1.094 GB, free: 11.09 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001688/0.5078, allocations: 120.5 kB / 1.094 GB, free: 10.97 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 7.501e-05/0.5079, allocations: 43.75 kB / 1.094 GB, free: 10.93 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002187/0.5081, allocations: 61.67 kB / 1.094 GB, free: 10.86 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001866/0.5083, allocations: 326.8 kB / 1.094 GB, free: 10.53 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000419/0.5087, allocations: 91.94 kB / 1.095 GB, free: 10.44 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004739/0.5092, allocations: 165.9 kB / 1.095 GB, free: 10.25 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006445/0.5099, allocations: 225.3 kB / 1.095 GB, free: 9.996 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.24e-06/0.5099, allocations: 0 / 1.095 GB, free: 9.996 MB / 0.8575 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.001202/0.5111, allocations: 356.8 kB / 1.095 GB, free: 9.629 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 9.982e-05/0.5112, allocations: 65.11 kB / 1.095 GB, free: 9.555 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.504e-05/0.5112, allocations: 4 kB / 1.095 GB, free: 9.551 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.331e-05/0.5113, allocations: 0 / 1.095 GB, free: 9.551 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001631/0.5115, allocations: 19.98 kB / 1.095 GB, free: 9.531 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.595e-05/0.5115, allocations: 11.88 kB / 1.095 GB, free: 9.52 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006249/0.5121, allocations: 67.81 kB / 1.095 GB, free: 9.453 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.948e-05/0.5122, allocations: 19.98 kB / 1.095 GB, free: 9.434 MB / 0.8575 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition3,$whenCondition4,pul.booPul.y,$PRE.pul.booPul.y,hysteresis1.y,$PRE.hysteresis1.y,$whenCondition1,$whenCondition2,pul1.booPul.y,$PRE.pul1.booPul.y,hysteresis2.y,$PRE.hysteresis2.y,hysteresis.y,$PRE.hysteresis.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): 17 * Array equations: 0 * Algorithm blocks: 2 * 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.0002322/0.5124, allocations: 138.8 kB / 1.096 GB, free: 9.289 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.219e-05/0.5125, allocations: 16.59 kB / 1.096 GB, free: 9.273 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004685/0.513, allocations: 94.58 kB / 1.096 GB, free: 9.18 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.019e-05/0.513, allocations: 8 kB / 1.096 GB, free: 9.172 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.26e-05/0.513, allocations: 3.938 kB / 1.096 GB, free: 9.168 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.326e-05/0.5131, allocations: 3.984 kB / 1.096 GB, free: 9.164 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000421/0.5135, allocations: 241.4 kB / 1.096 GB, free: 8.879 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.927e-06/0.5135, allocations: 4 kB / 1.096 GB, free: 8.875 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001356/0.5137, allocations: 15.98 kB / 1.096 GB, free: 8.859 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.13e-06/0.5137, allocations: 0 / 1.096 GB, free: 8.859 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.493e-05/0.5137, allocations: 4 kB / 1.096 GB, free: 8.855 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.637e-06/0.5137, allocations: 0 / 1.096 GB, free: 8.855 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.067e-05/0.5138, allocations: 11.88 kB / 1.096 GB, free: 8.844 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006695/0.5144, allocations: 201.2 kB / 1.096 GB, free: 8.625 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001954/0.5146, allocations: 93 kB / 1.096 GB, free: 8.516 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.879e-05/0.5147, allocations: 4 kB / 1.096 GB, free: 8.512 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001818/0.5149, allocations: 11.98 kB / 1.096 GB, free: 8.5 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001304/0.5151, allocations: 35.89 kB / 1.096 GB, free: 8.465 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.14e-05/0.5151, allocations: 4 kB / 1.096 GB, free: 8.461 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0002162/0.5153, allocations: 144.2 kB / 1.096 GB, free: 8.32 MB / 0.8575 GB Notification: Performance of sort global known variables: time 2e-07/0.5153, allocations: 0 / 1.096 GB, free: 8.32 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0005715/0.5159, allocations: 44 kB / 1.096 GB, free: 8.277 MB / 0.8575 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition3,$whenCondition4,hysteresis1.y,pul.booPul.y,$whenCondition1,$whenCondition2,hysteresis2.y,pul1.booPul.y,hysteresis.y) * Number of discrete states: 3 (hysteresis.y,hysteresis2.y,hysteresis1.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 12 * 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.001161/0.5171, allocations: 0.7428 MB / 1.097 GB, free: 7.496 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0009389/0.518, allocations: 318.9 kB / 1.098 GB, free: 7.16 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 7.003e-06/0.5181, allocations: 4.25 kB / 1.098 GB, free: 7.156 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0002787/0.5183, allocations: 63.91 kB / 1.098 GB, free: 7.094 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006218/0.519, allocations: 53.91 kB / 1.098 GB, free: 7.043 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005582/0.5246, allocations: 2.3 MB / 1.1 GB, free: 4.602 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000487/0.5251, allocations: 0.7279 MB / 1.101 GB, free: 3.848 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0001845/0.5253, allocations: 25.55 kB / 1.101 GB, free: 3.824 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001672/0.5255, allocations: 59.41 kB / 1.101 GB, free: 3.766 MB / 0.8575 GB Notification: Performance of SimCode: time 1.372e-06/0.5255, allocations: 0 / 1.101 GB, free: 3.766 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04283/0.5684, allocations: 4.952 MB / 1.106 GB, free: 14.93 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.67/15.24, allocations: 8 kB / 1.106 GB, free: 14.93 MB / 0.8731 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_Hysteresis.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Validation_Hysteresis.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches