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.0008719/0.000872, 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.004831/0.004831, allocations: 170 kB / 16.26 MB, free: 6.613 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.222/1.222, allocations: 223.3 MB / 240.3 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.398/2.398, allocations: 462.7 MB / 0.7364 GB, free: 15.5 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003012/0.0003012, allocations: 10.69 kB / 0.9029 GB, free: 36.48 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2268/0.2271, allocations: 159.6 MB / 1.059 GB, free: 4.793 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus): time 0.002362/0.2295, allocations: 1.95 MB / 1.061 GB, free: 2.832 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001803/0.2313, allocations: 1.232 MB / 1.062 GB, free: 1.594 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001388/0.2315, allocations: 4 kB / 1.062 GB, free: 1.59 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0003844/0.2319, allocations: 163.5 kB / 1.062 GB, free: 1.43 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0003029/0.2322, allocations: 155.4 kB / 1.062 GB, free: 1.277 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004961/0.2327, allocations: 215.4 kB / 1.062 GB, free: 1.07 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0003867/0.2331, allocations: 382.9 kB / 1.063 GB, free: 0.6953 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001878/0.2333, allocations: 105.2 kB / 1.063 GB, free: 0.5938 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001923/0.2335, allocations: 135.3 kB / 1.063 GB, free: 472 kB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001794/0.2337, allocations: 159.3 kB / 1.063 GB, free: 312 kB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.942e-05/0.2337, allocations: 8 kB / 1.063 GB, free: 304 kB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001322/0.2339, allocations: 59.97 kB / 1.063 GB, free: 244 kB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 9.54e-05/0.234, allocations: 91.59 kB / 1.063 GB, free: 152 kB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001399/0.2341, allocations: 172.7 kB / 1.063 GB, free: 15.97 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0004024/0.2345, allocations: 474.4 kB / 1.064 GB, free: 15.51 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 2.956e-06/0.2345, allocations: 0 / 1.064 GB, free: 15.51 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.313e-06/0.2346, allocations: 0 / 1.064 GB, free: 15.51 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.452e-06/0.2346, allocations: 0 / 1.064 GB, free: 15.51 MB / 0.8262 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.0008997/0.2355, allocations: 0.6537 MB / 1.065 GB, free: 14.8 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.64e-05/0.2355, allocations: 11.97 kB / 1.065 GB, free: 14.79 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.937e-05/0.2356, allocations: 46.73 kB / 1.065 GB, free: 14.74 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.008e-05/0.2356, allocations: 44.38 kB / 1.065 GB, free: 14.7 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004695/0.2361, allocations: 406.2 kB / 1.065 GB, free: 14.26 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.173e-05/0.2361, allocations: 16.12 kB / 1.065 GB, free: 14.24 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.872e-05/0.2362, allocations: 12 kB / 1.065 GB, free: 14.23 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000306/0.2365, allocations: 180.6 kB / 1.065 GB, free: 14.04 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.614e-06/0.2365, allocations: 0 / 1.065 GB, free: 14.04 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.914e-05/0.2365, allocations: 4 kB / 1.065 GB, free: 14.04 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.135e-06/0.2366, allocations: 7.938 kB / 1.065 GB, free: 14.03 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001861/0.2367, allocations: 91.89 kB / 1.065 GB, free: 13.94 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001004/0.2378, allocations: 0.7972 MB / 1.066 GB, free: 13.08 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002905/0.2381, allocations: 137.3 kB / 1.066 GB, free: 12.93 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.972e-05/0.2382, allocations: 49.64 kB / 1.066 GB, free: 12.88 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.055e-05/0.2382, allocations: 8 kB / 1.066 GB, free: 12.87 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002043/0.2384, allocations: 121 kB / 1.066 GB, free: 12.73 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=12): time 1.392e-06/0.2384, allocations: 0 / 1.066 GB, free: 12.73 MB / 0.8262 GB Notification: Performance of matching and sorting (n=12): time 0.000455/0.2389, allocations: 221.1 kB / 1.067 GB, free: 12.51 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.452e-05/0.2389, allocations: 106.8 kB / 1.067 GB, free: 12.38 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005794/0.2395, allocations: 0.5798 MB / 1.067 GB, free: 11.79 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.833e-05/0.2396, allocations: 33.7 kB / 1.067 GB, free: 11.75 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001339/0.2397, allocations: 196.4 kB / 1.068 GB, free: 11.55 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.353e-05/0.2397, allocations: 39.59 kB / 1.068 GB, free: 11.52 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.927e-05/0.2398, allocations: 37.7 kB / 1.068 GB, free: 11.47 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001111/0.2399, allocations: 358.7 kB / 1.068 GB, free: 11.11 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001795/0.2401, allocations: 99.95 kB / 1.068 GB, free: 11.02 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002221/0.2403, allocations: 181.7 kB / 1.068 GB, free: 10.82 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000283/0.2406, allocations: 178.5 kB / 1.068 GB, free: 10.63 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.2406, allocations: 8 kB / 1.068 GB, free: 10.62 MB / 0.8262 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004999/0.2411, allocations: 343.4 kB / 1.069 GB, free: 10.28 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.268e-05/0.2412, allocations: 4 kB / 1.069 GB, free: 10.28 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.181e-06/0.2412, allocations: 4 kB / 1.069 GB, free: 10.27 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.153e-05/0.2412, allocations: 4.031 kB / 1.069 GB, free: 10.27 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000176/0.2414, allocations: 47.91 kB / 1.069 GB, free: 10.22 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.296e-06/0.2414, allocations: 7.984 kB / 1.069 GB, free: 10.21 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002192/0.2416, allocations: 51.91 kB / 1.069 GB, free: 10.16 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.9e-05/0.2416, allocations: 12.11 kB / 1.069 GB, free: 10.15 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.000168/0.2418, allocations: 203.4 kB / 1.069 GB, free: 9.945 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.455e-05/0.2419, allocations: 35.53 kB / 1.069 GB, free: 9.91 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.709e-05/0.2419, allocations: 43.38 kB / 1.069 GB, free: 9.859 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.497e-06/0.242, allocations: 4 kB / 1.069 GB, free: 9.855 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.466e-06/0.242, allocations: 0 / 1.069 GB, free: 9.855 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.861e-06/0.242, allocations: 3.984 kB / 1.069 GB, free: 9.852 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002524/0.2422, allocations: 333.3 kB / 1.069 GB, free: 9.477 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.2422, allocations: 0 / 1.069 GB, free: 9.477 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.552e-05/0.2423, allocations: 11.98 kB / 1.069 GB, free: 9.465 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.783e-06/0.2423, allocations: 0 / 1.069 GB, free: 9.465 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.188e-05/0.2423, allocations: 4 kB / 1.069 GB, free: 9.461 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.352e-06/0.2423, allocations: 0 / 1.069 GB, free: 9.461 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.382e-06/0.2423, allocations: 3.938 kB / 1.069 GB, free: 9.457 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003118/0.2426, allocations: 221.2 kB / 1.07 GB, free: 9.219 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 8.768e-05/0.2427, allocations: 120.6 kB / 1.07 GB, free: 9.082 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.589e-05/0.2428, allocations: 8 kB / 1.07 GB, free: 9.074 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001323/0.2429, allocations: 20.47 kB / 1.07 GB, free: 9.055 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.405e-05/0.243, allocations: 31.91 kB / 1.07 GB, free: 9.023 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.187e-05/0.243, allocations: 4 kB / 1.07 GB, free: 9.02 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0003431/0.2433, allocations: 363.1 kB / 1.07 GB, free: 8.672 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.51e-07/0.2434, allocations: 0 / 1.07 GB, free: 8.672 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.000282/0.2436, allocations: 71.88 kB / 1.07 GB, free: 8.602 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.001314/0.245, allocations: 1.065 MB / 1.071 GB, free: 7.668 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003567/0.2453, allocations: 195.8 kB / 1.071 GB, free: 7.477 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.2453, allocations: 0 / 1.071 GB, free: 7.477 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001231/0.2455, allocations: 55.98 kB / 1.072 GB, free: 7.422 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000479/0.246, allocations: 97.03 kB / 1.072 GB, free: 7.332 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00399/0.25, allocations: 3.641 MB / 1.075 GB, free: 3.566 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003052/0.2503, allocations: 0.807 MB / 1.076 GB, free: 2.734 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001258/0.2504, allocations: 54.95 kB / 1.076 GB, free: 2.684 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001583/0.2506, allocations: 127.4 kB / 1.076 GB, free: 2.559 MB / 0.8262 GB Notification: Performance of SimCode: time 3.11e-07/0.2506, allocations: 0 / 1.076 GB, free: 2.559 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.613/1.864, allocations: 7.636 MB / 1.084 GB, free: 11.15 MB / 0.8419 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002374/1.864, allocations: 271.4 kB / 1.084 GB, free: 10.79 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.439/4.303, allocations: 0 / 1.084 GB, free: 10.79 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