Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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_latest_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_latest_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.001208/0.001208, 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.001233/0.001233, allocations: 196.7 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.21/1.21, allocations: 222.9 MB / 239.8 MB, free: 4.617 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.363/2.363, allocations: 461.8 MB / 0.7342 GB, free: 14.18 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001127/0.001127, allocations: 62.89 kB / 0.8985 GB, free: 36.92 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2267/0.2278, allocations: 157.4 MB / 1.052 GB, free: 8.184 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus): time 0.003082/0.2309, allocations: 2.311 MB / 1.054 GB, free: 5.855 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001638/0.2326, allocations: 1.251 MB / 1.056 GB, free: 4.598 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001115/0.2327, allocations: 11.88 kB / 1.056 GB, free: 4.586 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0003623/0.2331, allocations: 155.5 kB / 1.056 GB, free: 4.434 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0002558/0.2334, allocations: 151.5 kB / 1.056 GB, free: 4.285 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.000405/0.2338, allocations: 218.6 kB / 1.056 GB, free: 4.074 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0003191/0.2341, allocations: 382.9 kB / 1.057 GB, free: 3.699 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001731/0.2343, allocations: 101.2 kB / 1.057 GB, free: 3.602 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001646/0.2345, allocations: 151.2 kB / 1.057 GB, free: 3.453 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001663/0.2346, allocations: 175.3 kB / 1.057 GB, free: 3.281 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.407e-05/0.2347, allocations: 8 kB / 1.057 GB, free: 3.273 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001205/0.2348, allocations: 59.97 kB / 1.057 GB, free: 3.215 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001007/0.2349, allocations: 99.66 kB / 1.057 GB, free: 3.117 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001214/0.235, allocations: 154.9 kB / 1.057 GB, free: 2.965 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0003855/0.2354, allocations: 474.6 kB / 1.058 GB, free: 2.5 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 2.976e-06/0.2354, allocations: 4 kB / 1.058 GB, free: 2.496 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.134e-06/0.2354, allocations: 3.984 kB / 1.058 GB, free: 2.492 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.438e-06/0.2354, allocations: 0 / 1.058 GB, free: 2.492 MB / 0.8106 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.0008938/0.2363, allocations: 0.708 MB / 1.058 GB, free: 1.734 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.43e-05/0.2364, allocations: 11.97 kB / 1.058 GB, free: 1.723 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.465e-05/0.2364, allocations: 46.73 kB / 1.059 GB, free: 1.668 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.897e-05/0.2365, allocations: 44.38 kB / 1.059 GB, free: 1.625 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004523/0.237, allocations: 414.2 kB / 1.059 GB, free: 1.18 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.681e-05/0.237, allocations: 16.12 kB / 1.059 GB, free: 1.164 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.556e-05/0.237, allocations: 16 kB / 1.059 GB, free: 1.148 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002912/0.2373, allocations: 172.6 kB / 1.059 GB, free: 0.9648 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.994e-06/0.2373, allocations: 0 / 1.059 GB, free: 0.9648 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.905e-05/0.2374, allocations: 8 kB / 1.059 GB, free: 0.957 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.358e-06/0.2374, allocations: 0 / 1.059 GB, free: 0.957 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001916/0.2376, allocations: 95.89 kB / 1.059 GB, free: 0.8633 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009172/0.2385, allocations: 0.7854 MB / 1.06 GB, free: 20 kB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003063/0.2388, allocations: 133.4 kB / 1.06 GB, free: 15.87 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001005/0.2389, allocations: 53.7 kB / 1.06 GB, free: 15.81 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.008e-05/0.2389, allocations: 4 kB / 1.06 GB, free: 15.81 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002122/0.2392, allocations: 128.9 kB / 1.06 GB, free: 15.66 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=12): time 1.242e-06/0.2392, allocations: 0 / 1.06 GB, free: 15.66 MB / 0.8262 GB Notification: Performance of matching and sorting (n=12): time 0.0004668/0.2396, allocations: 225.3 kB / 1.061 GB, free: 15.44 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.828e-05/0.2397, allocations: 102.8 kB / 1.061 GB, free: 15.31 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005599/0.2403, allocations: 0.5798 MB / 1.061 GB, free: 14.72 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.468e-05/0.2403, allocations: 33.7 kB / 1.061 GB, free: 14.68 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001342/0.2404, allocations: 200.3 kB / 1.061 GB, free: 14.48 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.929e-05/0.2405, allocations: 35.69 kB / 1.061 GB, free: 14.45 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.611e-05/0.2406, allocations: 77.53 kB / 1.062 GB, free: 14.37 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001234/0.2407, allocations: 358.7 kB / 1.062 GB, free: 14.01 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001759/0.2409, allocations: 104 kB / 1.062 GB, free: 13.91 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000215/0.2411, allocations: 165.9 kB / 1.062 GB, free: 13.72 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002825/0.2414, allocations: 199.2 kB / 1.062 GB, free: 13.52 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.2414, allocations: 0 / 1.062 GB, free: 13.52 MB / 0.8262 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005013/0.2419, allocations: 333 kB / 1.063 GB, free: 13.18 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.174e-05/0.2419, allocations: 8 kB / 1.063 GB, free: 13.18 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.898e-06/0.2419, allocations: 0 / 1.063 GB, free: 13.18 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.738e-05/0.242, allocations: 4 kB / 1.063 GB, free: 13.17 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000177/0.2421, allocations: 52 kB / 1.063 GB, free: 13.12 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.871e-06/0.2422, allocations: 4 kB / 1.063 GB, free: 13.12 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001873/0.2424, allocations: 43.72 kB / 1.063 GB, free: 13.07 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.739e-05/0.2424, allocations: 12 kB / 1.063 GB, free: 13.06 MB / 0.8262 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.0001648/0.2426, allocations: 195.4 kB / 1.063 GB, free: 12.86 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.92e-05/0.2426, allocations: 39.52 kB / 1.063 GB, free: 12.82 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.551e-05/0.2427, allocations: 43.38 kB / 1.063 GB, free: 12.78 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.724e-06/0.2427, allocations: 4.047 kB / 1.063 GB, free: 12.77 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.2427, allocations: 3.984 kB / 1.063 GB, free: 12.77 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.715e-06/0.2427, allocations: 0 / 1.063 GB, free: 12.77 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000253/0.243, allocations: 337.3 kB / 1.063 GB, free: 12.39 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.203e-06/0.243, allocations: 4 kB / 1.063 GB, free: 12.39 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.227e-05/0.243, allocations: 7.938 kB / 1.063 GB, free: 12.38 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.095e-06/0.243, allocations: 4 kB / 1.063 GB, free: 12.38 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.274e-05/0.243, allocations: 3.984 kB / 1.063 GB, free: 12.37 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.373e-06/0.243, allocations: 0 / 1.063 GB, free: 12.37 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.243, allocations: 4 kB / 1.063 GB, free: 12.37 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003263/0.2434, allocations: 213.3 kB / 1.064 GB, free: 12.14 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 8.555e-05/0.2435, allocations: 120.6 kB / 1.064 GB, free: 12 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.471e-05/0.2435, allocations: 4.312 kB / 1.064 GB, free: 12 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001194/0.2436, allocations: 19.98 kB / 1.064 GB, free: 11.98 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.694e-05/0.2437, allocations: 23.91 kB / 1.064 GB, free: 11.95 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.491e-05/0.2437, allocations: 15.98 kB / 1.064 GB, free: 11.94 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.000336/0.2441, allocations: 355.1 kB / 1.064 GB, free: 11.6 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2441, allocations: 0 / 1.064 GB, free: 11.6 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002862/0.2444, allocations: 75.78 kB / 1.064 GB, free: 11.52 MB / 0.8262 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.001303/0.2457, allocations: 1.052 MB / 1.065 GB, free: 10.6 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003567/0.246, allocations: 198.6 kB / 1.065 GB, free: 10.41 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.953e-06/0.2461, allocations: 0 / 1.065 GB, free: 10.41 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001359/0.2462, allocations: 63.91 kB / 1.065 GB, free: 10.35 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004331/0.2466, allocations: 102 kB / 1.066 GB, free: 10.25 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003906/0.2506, allocations: 3.626 MB / 1.069 GB, free: 6.5 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000315/0.2509, allocations: 0.8109 MB / 1.07 GB, free: 5.664 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.000121/0.251, allocations: 54.94 kB / 1.07 GB, free: 5.613 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000163/0.2512, allocations: 123.4 kB / 1.07 GB, free: 5.496 MB / 0.8262 GB Notification: Performance of SimCode: time 2.6e-07/0.2512, allocations: 4 kB / 1.07 GB, free: 5.492 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3992/0.6504, allocations: 7.876 MB / 1.078 GB, free: 13.83 MB / 0.8419 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002481/0.6507, allocations: 285 kB / 1.078 GB, free: 13.46 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.658/2.309, allocations: 0 / 1.078 GB, free: 13.46 MB / 0.8419 GB (rm -f Buildings_latest_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe ; mkfifo Buildings_latest_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe ; head -c 1048576 < Buildings_latest_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe >> ../files/Buildings_latest_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus_res.mat --tempDir=temp_Buildings_latest_Buildings_Experimental_DHC_Plants_Cooling_Controls_Validation_TankStatus_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Experimental_DHC_Plants_Cooling_Controls_Validation_TankStatus.fmu > Buildings_latest_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Experimental_DHC_Plants_Cooling_Controls_Validation_TankStatus.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches