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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.001252/0.001252, allocations: 108 kB / 15.6 MB, free: 132 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.001324/0.001325, allocations: 195.4 kB / 16.53 MB, free: 6.391 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.282/1.282, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.402/2.402, allocations: 437.1 MB / 0.7104 GB, free: 5.074 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.00124/0.00124, allocations: 67.89 kB / 0.8694 GB, free: 4.523 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5119/0.5131, allocations: 151.6 MB / 1.017 GB, free: 2.465 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus): time 0.003527/0.5167, allocations: 2.237 MB / 1.02 GB, free: 216 kB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.002021/0.5187, allocations: 1.283 MB / 1.021 GB, free: 14.92 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002355/0.519, allocations: 7.938 kB / 1.021 GB, free: 14.91 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.000469/0.5195, allocations: 175.3 kB / 1.021 GB, free: 14.74 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0003743/0.5199, allocations: 167.2 kB / 1.021 GB, free: 14.57 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005422/0.5204, allocations: 244.5 kB / 1.021 GB, free: 14.34 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0004204/0.5209, allocations: 414.7 kB / 1.022 GB, free: 13.93 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002014/0.5211, allocations: 109.2 kB / 1.022 GB, free: 13.82 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002295/0.5213, allocations: 163.4 kB / 1.022 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002203/0.5215, allocations: 183.2 kB / 1.022 GB, free: 13.48 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 5.202e-05/0.5216, allocations: 24 kB / 1.022 GB, free: 13.46 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001638/0.5218, allocations: 75.97 kB / 1.022 GB, free: 13.39 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001175/0.5219, allocations: 107.6 kB / 1.022 GB, free: 13.28 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001508/0.522, allocations: 174.9 kB / 1.023 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0004743/0.5225, allocations: 492.5 kB / 1.023 GB, free: 12.63 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.5225, allocations: 0 / 1.023 GB, free: 12.63 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.222e-06/0.5225, allocations: 0 / 1.023 GB, free: 12.63 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 1.159e-05/0.5226, allocations: 0 / 1.023 GB, free: 12.63 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.0009784/0.5235, allocations: 0.708 MB / 1.024 GB, free: 11.87 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.592e-05/0.5236, allocations: 12.03 kB / 1.024 GB, free: 11.86 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.426e-05/0.5236, allocations: 46.73 kB / 1.024 GB, free: 11.8 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.071e-05/0.5237, allocations: 48.38 kB / 1.024 GB, free: 11.76 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004925/0.5242, allocations: 410.2 kB / 1.024 GB, free: 11.32 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.858e-05/0.5242, allocations: 12.12 kB / 1.024 GB, free: 11.3 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.737e-05/0.5243, allocations: 16 kB / 1.024 GB, free: 11.29 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003014/0.5246, allocations: 177.1 kB / 1.024 GB, free: 11.1 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.155e-06/0.5246, allocations: 0 / 1.024 GB, free: 11.1 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.817e-05/0.5246, allocations: 4 kB / 1.024 GB, free: 11.1 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.322e-06/0.5246, allocations: 8 kB / 1.024 GB, free: 11.09 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000196/0.5248, allocations: 91.88 kB / 1.025 GB, free: 11 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009905/0.5258, allocations: 0.7893 MB / 1.025 GB, free: 10.15 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003031/0.5262, allocations: 137.4 kB / 1.025 GB, free: 10 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001057/0.5263, allocations: 53.64 kB / 1.026 GB, free: 9.941 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.25e-05/0.5263, allocations: 0 / 1.026 GB, free: 9.941 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000235/0.5265, allocations: 125 kB / 1.026 GB, free: 9.801 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=12): time 1.112e-06/0.5266, allocations: 4 kB / 1.026 GB, free: 9.797 MB / 0.7794 GB Notification: Performance of matching and sorting (n=12): time 0.0004982/0.5271, allocations: 213.1 kB / 1.026 GB, free: 9.582 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.12e-05/0.5271, allocations: 106.8 kB / 1.026 GB, free: 9.453 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005843/0.5277, allocations: 0.5759 MB / 1.027 GB, free: 8.871 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.606e-05/0.5277, allocations: 33.7 kB / 1.027 GB, free: 8.832 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001377/0.5279, allocations: 200.4 kB / 1.027 GB, free: 8.633 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.501e-05/0.5279, allocations: 35.55 kB / 1.027 GB, free: 8.598 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000104/0.528, allocations: 81.59 kB / 1.027 GB, free: 8.512 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001638/0.5282, allocations: 354.7 kB / 1.027 GB, free: 8.156 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001778/0.5284, allocations: 99.95 kB / 1.027 GB, free: 8.059 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000222/0.5286, allocations: 171.1 kB / 1.027 GB, free: 7.871 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002962/0.5289, allocations: 189.6 kB / 1.028 GB, free: 7.672 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.073e-06/0.5289, allocations: 0 / 1.028 GB, free: 7.672 MB / 0.7794 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.000566/0.5295, allocations: 342.7 kB / 1.028 GB, free: 7.332 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.252e-05/0.5295, allocations: 4 kB / 1.028 GB, free: 7.328 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.382e-06/0.5295, allocations: 4.094 kB / 1.028 GB, free: 7.324 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.159e-05/0.5296, allocations: 4 kB / 1.028 GB, free: 7.32 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000179/0.5297, allocations: 52.41 kB / 1.028 GB, free: 7.27 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.143e-06/0.5298, allocations: 4 kB / 1.028 GB, free: 7.266 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002002/0.53, allocations: 39.75 kB / 1.028 GB, free: 7.227 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.998e-05/0.53, allocations: 20 kB / 1.028 GB, free: 7.207 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.0001752/0.5302, allocations: 195.4 kB / 1.028 GB, free: 7.008 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.274e-05/0.5302, allocations: 47.44 kB / 1.028 GB, free: 6.961 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.013e-05/0.5303, allocations: 39.48 kB / 1.028 GB, free: 6.922 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.436e-06/0.5303, allocations: 7.938 kB / 1.028 GB, free: 6.914 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.987e-06/0.5303, allocations: 0 / 1.028 GB, free: 6.914 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.286e-06/0.5303, allocations: 0 / 1.028 GB, free: 6.914 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002747/0.5306, allocations: 333.4 kB / 1.029 GB, free: 6.539 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.5306, allocations: 0 / 1.029 GB, free: 6.539 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.374e-05/0.5307, allocations: 8 kB / 1.029 GB, free: 6.531 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.004e-06/0.5307, allocations: 0 / 1.029 GB, free: 6.531 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.438e-05/0.5307, allocations: 7.984 kB / 1.029 GB, free: 6.523 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.5307, allocations: 0 / 1.029 GB, free: 6.523 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.5307, allocations: 7.984 kB / 1.029 GB, free: 6.516 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003346/0.531, allocations: 213.3 kB / 1.029 GB, free: 6.285 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 9.732e-05/0.5312, allocations: 124.6 kB / 1.029 GB, free: 6.145 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.023e-05/0.5312, allocations: 4 kB / 1.029 GB, free: 6.141 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001235/0.5313, allocations: 15.98 kB / 1.029 GB, free: 6.125 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.993e-05/0.5314, allocations: 28 kB / 1.029 GB, free: 6.098 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.442e-05/0.5314, allocations: 7.984 kB / 1.029 GB, free: 6.09 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0003606/0.5318, allocations: 359.1 kB / 1.029 GB, free: 5.746 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.4e-07/0.5318, allocations: 3.938 kB / 1.029 GB, free: 5.742 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003004/0.5321, allocations: 71.84 kB / 1.029 GB, free: 5.672 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.001367/0.5335, allocations: 1.057 MB / 1.031 GB, free: 4.738 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003845/0.5339, allocations: 210.3 kB / 1.031 GB, free: 4.535 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.983e-06/0.5339, allocations: 0 / 1.031 GB, free: 4.535 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.00013/0.534, allocations: 63.91 kB / 1.031 GB, free: 4.473 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004717/0.5345, allocations: 100.5 kB / 1.031 GB, free: 4.387 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003957/0.5385, allocations: 3.56 MB / 1.034 GB, free: 0.7148 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003911/0.5389, allocations: 0.8146 MB / 1.035 GB, free: 15.88 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0001376/0.539, allocations: 54.95 kB / 1.035 GB, free: 15.82 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001658/0.5392, allocations: 123.4 kB / 1.035 GB, free: 15.7 MB / 0.795 GB Notification: Performance of SimCode: time 2.91e-07/0.5392, allocations: 3.938 kB / 1.035 GB, free: 15.7 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02438/0.5636, allocations: 8.277 MB / 1.043 GB, free: 7.605 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 7/7.564, allocations: 11.98 kB / 1.043 GB, free: 7.594 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 & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 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.csv","/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