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.001348/0.001348, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.00776/0.00776, allocations: 169.6 kB / 16.26 MB, free: 6.676 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.157/1.157, allocations: 223.3 MB / 240.3 MB, free: 5.344 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.155/2.155, allocations: 437.8 MB / 0.7121 GB, free: 6.961 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0004856/0.0004856, allocations: 11.98 kB / 0.873 GB, free: 3.156 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5103/0.5108, allocations: 153.8 MB / 1.023 GB, free: 15.83 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus): time 0.002177/0.513, allocations: 1.945 MB / 1.025 GB, free: 13.87 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001735/0.5148, allocations: 1.229 MB / 1.026 GB, free: 12.63 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001266/0.5149, allocations: 11.94 kB / 1.026 GB, free: 12.62 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0003683/0.5153, allocations: 163.5 kB / 1.026 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0002792/0.5156, allocations: 147.4 kB / 1.027 GB, free: 12.32 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004629/0.5161, allocations: 219.6 kB / 1.027 GB, free: 12.1 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0003729/0.5164, allocations: 394.6 kB / 1.027 GB, free: 11.71 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001748/0.5166, allocations: 93.27 kB / 1.027 GB, free: 11.62 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001851/0.5168, allocations: 143.3 kB / 1.027 GB, free: 11.48 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001611/0.517, allocations: 159.3 kB / 1.028 GB, free: 11.32 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.684e-05/0.517, allocations: 12 kB / 1.028 GB, free: 11.31 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000131/0.5171, allocations: 55.97 kB / 1.028 GB, free: 11.26 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 9.191e-05/0.5172, allocations: 103.5 kB / 1.028 GB, free: 11.16 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001239/0.5174, allocations: 164.7 kB / 1.028 GB, free: 10.99 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0003844/0.5178, allocations: 464.5 kB / 1.028 GB, free: 10.54 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.698e-06/0.5178, allocations: 0 / 1.028 GB, free: 10.54 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.163e-06/0.5178, allocations: 3.938 kB / 1.028 GB, free: 10.53 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.601e-06/0.5178, allocations: 0 / 1.028 GB, free: 10.53 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.0008734/0.5187, allocations: 0.6498 MB / 1.029 GB, free: 9.832 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.236e-05/0.5187, allocations: 8.031 kB / 1.029 GB, free: 9.824 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.725e-05/0.5188, allocations: 46.73 kB / 1.029 GB, free: 9.77 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.898e-05/0.5188, allocations: 44.38 kB / 1.029 GB, free: 9.727 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004656/0.5193, allocations: 414.2 kB / 1.029 GB, free: 9.281 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.637e-05/0.5193, allocations: 16.12 kB / 1.029 GB, free: 9.266 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.74e-05/0.5194, allocations: 16 kB / 1.029 GB, free: 9.25 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002807/0.5197, allocations: 172.1 kB / 1.03 GB, free: 9.066 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.765e-06/0.5197, allocations: 0 / 1.03 GB, free: 9.066 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.921e-05/0.5197, allocations: 7.984 kB / 1.03 GB, free: 9.059 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.358e-06/0.5197, allocations: 0 / 1.03 GB, free: 9.059 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001788/0.5199, allocations: 91.89 kB / 1.03 GB, free: 8.969 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009462/0.5208, allocations: 0.8049 MB / 1.03 GB, free: 8.105 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002737/0.5211, allocations: 137.4 kB / 1.031 GB, free: 7.953 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.501e-05/0.5212, allocations: 53.69 kB / 1.031 GB, free: 7.895 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.122e-05/0.5213, allocations: 0 / 1.031 GB, free: 7.895 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002036/0.5215, allocations: 129 kB / 1.031 GB, free: 7.75 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=12): time 1.102e-06/0.5215, allocations: 4 kB / 1.031 GB, free: 7.746 MB / 0.7794 GB Notification: Performance of matching and sorting (n=12): time 0.0004365/0.5219, allocations: 213.1 kB / 1.031 GB, free: 7.531 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.84e-05/0.522, allocations: 110.8 kB / 1.031 GB, free: 7.398 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000559/0.5225, allocations: 0.5759 MB / 1.032 GB, free: 6.816 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.542e-05/0.5226, allocations: 33.7 kB / 1.032 GB, free: 6.777 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001264/0.5227, allocations: 192.5 kB / 1.032 GB, free: 6.586 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.999e-05/0.5227, allocations: 35.55 kB / 1.032 GB, free: 6.551 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.805e-05/0.5228, allocations: 45.69 kB / 1.032 GB, free: 6.5 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001197/0.5229, allocations: 358.7 kB / 1.032 GB, free: 6.141 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001656/0.5231, allocations: 104 kB / 1.032 GB, free: 6.039 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002104/0.5233, allocations: 162.8 kB / 1.033 GB, free: 5.859 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000277/0.5236, allocations: 194.4 kB / 1.033 GB, free: 5.656 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.983e-06/0.5236, allocations: 0 / 1.033 GB, free: 5.656 MB / 0.7794 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004738/0.5241, allocations: 339.5 kB / 1.033 GB, free: 5.32 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.278e-05/0.5241, allocations: 8 kB / 1.033 GB, free: 5.312 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.028e-06/0.5241, allocations: 0 / 1.033 GB, free: 5.312 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.05e-05/0.5241, allocations: 8.094 kB / 1.033 GB, free: 5.305 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000172/0.5243, allocations: 56.34 kB / 1.033 GB, free: 5.25 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.551e-06/0.5243, allocations: 0 / 1.033 GB, free: 5.25 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002032/0.5245, allocations: 51.72 kB / 1.033 GB, free: 5.199 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.622e-05/0.5246, allocations: 11.94 kB / 1.033 GB, free: 5.188 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.0001666/0.5247, allocations: 199.5 kB / 1.033 GB, free: 4.984 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.53e-05/0.5248, allocations: 39.58 kB / 1.033 GB, free: 4.945 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.339e-05/0.5249, allocations: 51.3 kB / 1.033 GB, free: 4.895 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-06/0.5249, allocations: 0 / 1.033 GB, free: 4.895 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.607e-06/0.5249, allocations: 0 / 1.033 GB, free: 4.895 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.955e-06/0.5249, allocations: 0 / 1.033 GB, free: 4.895 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002538/0.5251, allocations: 337.4 kB / 1.034 GB, free: 4.516 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.293e-06/0.5251, allocations: 0 / 1.034 GB, free: 4.516 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.086e-05/0.5252, allocations: 8 kB / 1.034 GB, free: 4.508 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.266e-06/0.5252, allocations: 8 kB / 1.034 GB, free: 4.5 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.184e-05/0.5252, allocations: 3.984 kB / 1.034 GB, free: 4.496 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.625e-06/0.5252, allocations: 4 kB / 1.034 GB, free: 4.492 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.5252, allocations: 0 / 1.034 GB, free: 4.492 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003007/0.5255, allocations: 209.3 kB / 1.034 GB, free: 4.266 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 8.85e-05/0.5256, allocations: 124.6 kB / 1.034 GB, free: 4.125 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.121e-05/0.5257, allocations: 4 kB / 1.034 GB, free: 4.121 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001267/0.5258, allocations: 27.98 kB / 1.034 GB, free: 4.094 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.413e-05/0.5259, allocations: 19.97 kB / 1.034 GB, free: 4.074 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.404e-05/0.5259, allocations: 7.984 kB / 1.034 GB, free: 4.066 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0003294/0.5262, allocations: 363 kB / 1.035 GB, free: 3.715 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.81e-07/0.5262, allocations: 0 / 1.035 GB, free: 3.715 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002771/0.5265, allocations: 71.83 kB / 1.035 GB, free: 3.645 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.001268/0.5278, allocations: 1.067 MB / 1.036 GB, free: 2.703 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.000341/0.5281, allocations: 199.9 kB / 1.036 GB, free: 2.508 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.5281, allocations: 0 / 1.036 GB, free: 2.508 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001272/0.5283, allocations: 63.89 kB / 1.036 GB, free: 2.445 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004525/0.5287, allocations: 93.84 kB / 1.036 GB, free: 2.359 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003905/0.5326, allocations: 3.639 MB / 1.04 GB, free: 14.6 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003283/0.533, allocations: 0.8148 MB / 1.04 GB, free: 13.76 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0001258/0.5331, allocations: 55.14 kB / 1.04 GB, free: 13.71 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001606/0.5333, allocations: 123 kB / 1.041 GB, free: 13.59 MB / 0.795 GB Notification: Performance of SimCode: time 2.3e-07/0.5333, allocations: 0 / 1.041 GB, free: 13.59 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.503/2.037, allocations: 7.634 MB / 1.048 GB, free: 6.184 MB / 0.795 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003754/2.037, allocations: 271.6 kB / 1.048 GB, free: 5.828 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.742/3.779, allocations: 4 kB / 1.048 GB, free: 5.824 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