Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus.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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus,fileNamePrefix="Buildings_10_Buildings_Experimental_DHC_Plants_Cooling_Controls_Validation_TankStatus",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus,fileNamePrefix="Buildings_10_Buildings_Experimental_DHC_Plants_Cooling_Controls_Validation_TankStatus",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.001179/0.001179, 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.001141/0.001141, allocations: 192.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.182/1.182, allocations: 222.9 MB / 239.8 MB, free: 4.613 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.246/2.246, allocations: 437 MB / 0.7099 GB, free: 5.332 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001182/0.001182, allocations: 63.84 kB / 0.8687 GB, free: 5.086 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4963/0.4975, allocations: 151.6 MB / 1.017 GB, free: 2.801 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus): time 0.003129/0.5006, allocations: 2.299 MB / 1.019 GB, free: 496 kB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001667/0.5023, allocations: 1.26 MB / 1.02 GB, free: 15.21 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001182/0.5024, allocations: 7.938 kB / 1.02 GB, free: 15.21 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0003708/0.5028, allocations: 159.5 kB / 1.02 GB, free: 15.05 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0002696/0.5031, allocations: 151.4 kB / 1.021 GB, free: 14.9 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004101/0.5035, allocations: 226.5 kB / 1.021 GB, free: 14.68 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0003332/0.5039, allocations: 382.8 kB / 1.021 GB, free: 14.31 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001768/0.5041, allocations: 97.25 kB / 1.021 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001675/0.5042, allocations: 159.2 kB / 1.021 GB, free: 14.05 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001665/0.5044, allocations: 171.3 kB / 1.022 GB, free: 13.89 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 3.328e-05/0.5044, allocations: 8 kB / 1.022 GB, free: 13.88 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001283/0.5046, allocations: 67.95 kB / 1.022 GB, free: 13.81 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001014/0.5047, allocations: 91.67 kB / 1.022 GB, free: 13.72 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.000123/0.5048, allocations: 154.9 kB / 1.022 GB, free: 13.57 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0003924/0.5052, allocations: 476.6 kB / 1.022 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 2.365e-06/0.5052, allocations: 0 / 1.022 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of FrontEnd: time 6.41e-07/0.5052, allocations: 0 / 1.022 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.478e-06/0.5052, allocations: 0 / 1.022 GB, free: 13.11 MB / 0.7794 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.0009115/0.5062, allocations: 0.7119 MB / 1.023 GB, free: 12.34 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.202e-05/0.5062, allocations: 8.031 kB / 1.023 GB, free: 12.34 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.4e-05/0.5063, allocations: 50.73 kB / 1.023 GB, free: 12.28 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.133e-05/0.5063, allocations: 44.38 kB / 1.023 GB, free: 12.23 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004655/0.5068, allocations: 410.2 kB / 1.023 GB, free: 11.79 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.929e-05/0.5068, allocations: 16.12 kB / 1.023 GB, free: 11.78 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.513e-05/0.5069, allocations: 16 kB / 1.023 GB, free: 11.76 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003068/0.5072, allocations: 172.2 kB / 1.024 GB, free: 11.58 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.075e-06/0.5072, allocations: 0 / 1.024 GB, free: 11.58 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.772e-05/0.5072, allocations: 7.938 kB / 1.024 GB, free: 11.57 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.318e-06/0.5072, allocations: 4 kB / 1.024 GB, free: 11.57 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001943/0.5074, allocations: 91.89 kB / 1.024 GB, free: 11.48 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009544/0.5084, allocations: 0.7854 MB / 1.025 GB, free: 10.63 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002991/0.5087, allocations: 141.4 kB / 1.025 GB, free: 10.48 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001002/0.5088, allocations: 45.7 kB / 1.025 GB, free: 10.43 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.801e-05/0.5088, allocations: 4 kB / 1.025 GB, free: 10.42 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002218/0.5091, allocations: 133 kB / 1.025 GB, free: 10.27 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=12): time 1.152e-06/0.5091, allocations: 0 / 1.025 GB, free: 10.27 MB / 0.7794 GB Notification: Performance of matching and sorting (n=12): time 0.0004718/0.5095, allocations: 221 kB / 1.025 GB, free: 10.05 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.2e-05/0.5096, allocations: 106.8 kB / 1.025 GB, free: 9.922 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005699/0.5102, allocations: 0.5798 MB / 1.026 GB, free: 9.336 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.594e-05/0.5102, allocations: 33.69 kB / 1.026 GB, free: 9.297 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.000133/0.5104, allocations: 200.4 kB / 1.026 GB, free: 9.098 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.219e-05/0.5104, allocations: 35.64 kB / 1.026 GB, free: 9.062 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.753e-05/0.5105, allocations: 73.59 kB / 1.026 GB, free: 8.984 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001221/0.5106, allocations: 354.7 kB / 1.026 GB, free: 8.629 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001806/0.5108, allocations: 104 kB / 1.026 GB, free: 8.527 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002263/0.511, allocations: 170.8 kB / 1.027 GB, free: 8.34 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002883/0.5113, allocations: 181.5 kB / 1.027 GB, free: 8.148 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.205e-06/0.5114, allocations: 4 kB / 1.027 GB, free: 8.145 MB / 0.7794 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005147/0.5119, allocations: 343.1 kB / 1.027 GB, free: 7.805 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.309e-05/0.5119, allocations: 14.28 kB / 1.027 GB, free: 7.793 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.148e-06/0.5119, allocations: 0 / 1.027 GB, free: 7.793 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.049e-05/0.5119, allocations: 4 kB / 1.027 GB, free: 7.789 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001821/0.5121, allocations: 48.41 kB / 1.027 GB, free: 7.742 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.65e-06/0.5121, allocations: 0 / 1.027 GB, free: 7.742 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001954/0.5123, allocations: 47.81 kB / 1.027 GB, free: 7.695 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.835e-05/0.5124, allocations: 12 kB / 1.027 GB, free: 7.684 MB / 0.7794 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 15 ($PRE.TTanBot.tab.nextTimeEvent,$whenCondition2,$PRE.TTanTop.tab.nextTimeEvent,$whenCondition1,TTanTop.tab.nextTimeEventScaled,$PRE.TTanTop.tab.nextTimeEventScaled,TTanTop.tab.nextTimeEvent,tanSta.hysCha.y,$PRE.tanSta.hysCha.y,TTanBot.tab.nextTimeEventScaled,$PRE.TTanBot.tab.nextTimeEventScaled,TTanBot.tab.nextTimeEvent,tanSta.hysEmp.y,$PRE.tanSta.hysEmp.y,tanSta.gre.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (35): * Single equations (assignments): 35 * 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.0001768/0.5125, allocations: 207.5 kB / 1.027 GB, free: 7.473 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.86e-05/0.5126, allocations: 35.53 kB / 1.027 GB, free: 7.438 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.559e-05/0.5127, allocations: 39.38 kB / 1.028 GB, free: 7.398 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.773e-06/0.5127, allocations: 4 kB / 1.028 GB, free: 7.395 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.066e-06/0.5127, allocations: 0 / 1.028 GB, free: 7.395 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.69e-06/0.5127, allocations: 7.984 kB / 1.028 GB, free: 7.387 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002566/0.5129, allocations: 329.4 kB / 1.028 GB, free: 7.016 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.405e-06/0.513, allocations: 4 kB / 1.028 GB, free: 7.012 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.569e-05/0.513, allocations: 11.92 kB / 1.028 GB, free: 7 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.805e-06/0.513, allocations: 4 kB / 1.028 GB, free: 6.996 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.207e-05/0.513, allocations: 0 / 1.028 GB, free: 6.996 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/0.513, allocations: 0 / 1.028 GB, free: 6.996 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.225e-06/0.513, allocations: 4 kB / 1.028 GB, free: 6.992 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003208/0.5134, allocations: 213.3 kB / 1.028 GB, free: 6.762 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 9.46e-05/0.5135, allocations: 124.6 kB / 1.028 GB, free: 6.621 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.866e-05/0.5135, allocations: 8 kB / 1.028 GB, free: 6.613 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001189/0.5136, allocations: 11.98 kB / 1.028 GB, free: 6.602 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.216e-05/0.5137, allocations: 31.89 kB / 1.028 GB, free: 6.57 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.293e-05/0.5137, allocations: 4 kB / 1.028 GB, free: 6.566 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0003457/0.5141, allocations: 359.1 kB / 1.029 GB, free: 6.219 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.5e-07/0.5141, allocations: 4 kB / 1.029 GB, free: 6.215 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002933/0.5144, allocations: 67.83 kB / 1.029 GB, free: 6.148 MB / 0.7794 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition2,tanSta.hysEmp.y,TTanBot.tab.nextTimeEvent,TTanBot.tab.nextTimeEventScaled,$whenCondition1,tanSta.hysCha.y,TTanTop.tab.nextTimeEvent,TTanTop.tab.nextTimeEventScaled) * Number of discrete states: 6 (TTanTop.tab.nextTimeEventScaled,tanSta.hysCha.y,TTanTop.tab.nextTimeEvent,TTanBot.tab.nextTimeEventScaled,tanSta.hysEmp.y,TTanBot.tab.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.001328/0.5157, allocations: 1.067 MB / 1.03 GB, free: 5.207 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003624/0.5161, allocations: 202.4 kB / 1.03 GB, free: 5.012 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.5161, allocations: 0 / 1.03 GB, free: 5.012 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001341/0.5162, allocations: 63.91 kB / 1.03 GB, free: 4.949 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004437/0.5167, allocations: 98.34 kB / 1.03 GB, free: 4.859 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004014/0.5207, allocations: 3.64 MB / 1.034 GB, free: 1.105 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003213/0.521, allocations: 0.8071 MB / 1.034 GB, free: 280 kB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0001278/0.5212, allocations: 59.19 kB / 1.034 GB, free: 224 kB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001682/0.5214, allocations: 119.4 kB / 1.035 GB, free: 104 kB / 0.7794 GB Notification: Performance of SimCode: time 2.5e-07/0.5214, allocations: 0 / 1.035 GB, free: 104 kB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1953/0.7167, allocations: 7.877 MB / 1.042 GB, free: 8.438 MB / 0.795 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002056/0.7169, allocations: 275 kB / 1.043 GB, free: 8.078 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.738/2.454, allocations: 2.5 kB / 1.043 GB, free: 8.078 MB / 0.795 GB (rm -f Buildings_10_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe ; mkfifo Buildings_10_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe ; head -c 1048576 < Buildings_10_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe >> ../files/Buildings_10_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus_res.mat --tempDir=temp_Buildings_10_Buildings_Experimental_DHC_Plants_Cooling_Controls_Validation_TankStatus_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Experimental_DHC_Plants_Cooling_Controls_Validation_TankStatus.fmu > Buildings_10_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Experimental_DHC_Plants_Cooling_Controls_Validation_TankStatus.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches