Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Storage.Validation.StratifiedLoadingUnloading.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Fluid.Storage.Validation.StratifiedLoadingUnloading,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Storage_Validation_StratifiedLoadingUnloading",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Storage.Validation.StratifiedLoadingUnloading,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Storage_Validation_StratifiedLoadingUnloading",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.004558/0.004558, allocations: 103.1 kB / 15.73 MB, free: 6.051 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.001044/0.001044, allocations: 193.5 kB / 16.67 MB, free: 5.969 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.248/1.248, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002063/0.002063, allocations: 285.8 kB / 290.8 MB, free: 14.43 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8792/0.8792, allocations: 169.3 MB / 0.4983 GB, free: 4.418 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001675/0.001676, allocations: 91.86 kB / 0.681 GB, free: 7.504 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4132/0.4148, allocations: 86.99 MB / 0.7659 GB, free: 3.879 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Storage.Validation.StratifiedLoadingUnloading): time 0.04842/0.4633, allocations: 55.97 MB / 0.8206 GB, free: 11.7 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.02048/0.4838, allocations: 17.96 MB / 0.8381 GB, free: 9.691 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002312/0.4861, allocations: 79.56 kB / 0.8382 GB, free: 9.613 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.002159/0.4884, allocations: 0.8963 MB / 0.839 GB, free: 8.711 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.006014/0.4944, allocations: 2.503 MB / 0.8415 GB, free: 6.195 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.003431/0.4978, allocations: 1.537 MB / 0.843 GB, free: 4.668 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.02198/0.5198, allocations: 21.25 MB / 0.8637 GB, free: 15.37 MB / 0.6387 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01387/0.5337, allocations: 10.69 MB / 0.8742 GB, free: 4.559 MB / 0.6387 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01408/0.5479, allocations: 7.227 MB / 0.8812 GB, free: 13.35 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01136/0.5592, allocations: 6.366 MB / 0.8875 GB, free: 6.961 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 0.004118/0.5634, allocations: 0.9375 MB / 0.8884 GB, free: 6.023 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007157/0.5706, allocations: 1.702 MB / 0.89 GB, free: 4.32 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 0.004159/0.5748, allocations: 2.333 MB / 0.8923 GB, free: 1.98 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.01017/0.5849, allocations: 4.707 MB / 0.8969 GB, free: 13.25 MB / 0.67 GB Notification: Performance of NFConvertDAE.convert: time 0.01776/0.6027, allocations: 13.19 MB / 0.9098 GB, free: 24 kB / 0.67 GB Notification: Performance of FrontEnd - DAE generated: time 8.736e-06/0.6028, allocations: 0 / 0.9098 GB, free: 24 kB / 0.67 GB Notification: Performance of FrontEnd: time 4.598e-06/0.6028, allocations: 4 kB / 0.9098 GB, free: 20 kB / 0.67 GB Notification: Performance of Transformations before backend: time 0.0005257/0.6033, allocations: 4 kB / 0.9098 GB, free: 16 kB / 0.67 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1564 * Number of variables: 1564 Notification: Performance of Generate backend data structure: time 0.02101/0.6244, allocations: 8.518 MB / 0.9181 GB, free: 7.402 MB / 0.6856 GB Notification: Performance of prepare preOptimizeDAE: time 4.423e-05/0.6244, allocations: 8.031 kB / 0.9181 GB, free: 7.395 MB / 0.6856 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002511/0.6269, allocations: 0.8422 MB / 0.9189 GB, free: 6.543 MB / 0.6856 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003747/0.6307, allocations: 0.8586 MB / 0.9198 GB, free: 5.676 MB / 0.6856 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01295/0.6437, allocations: 6.692 MB / 0.9263 GB, free: 14.91 MB / 0.7012 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003976/0.6441, allocations: 468.1 kB / 0.9268 GB, free: 14.45 MB / 0.7012 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001823/0.6459, allocations: 0.5936 MB / 0.9273 GB, free: 13.86 MB / 0.7012 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01821/0.6641, allocations: 9.028 MB / 0.9362 GB, free: 4.504 MB / 0.7012 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002088/0.6644, allocations: 23.72 kB / 0.9362 GB, free: 4.48 MB / 0.7012 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001332/0.6657, allocations: 264 kB / 0.9364 GB, free: 4.223 MB / 0.7012 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001773/0.6659, allocations: 176 kB / 0.9366 GB, free: 4.051 MB / 0.7012 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01381/0.6798, allocations: 7.445 MB / 0.9439 GB, free: 12.6 MB / 0.7169 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.413/1.093, allocations: 36 MB / 0.979 GB, free: 172.3 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006652/1.099, allocations: 4.284 MB / 0.9832 GB, free: 172.1 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004177/1.104, allocations: 3.305 MB / 0.9864 GB, free: 171 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001031/1.105, allocations: 0.957 MB / 0.9874 GB, free: 170 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003264/1.108, allocations: 2.378 MB / 0.9897 GB, free: 169.2 MB / 0.7325 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.003161/1.111, allocations: 366.4 kB / 0.9901 GB, free: 169.1 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=317): time 1.572e-05/1.111, allocations: 0.75 kB / 0.9901 GB, free: 169.1 MB / 0.7325 GB Notification: Performance of matching and sorting (n=317): time 0.01177/1.123, allocations: 7.133 MB / 0.997 GB, free: 166.8 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.265e-05/1.123, allocations: 89.91 kB / 0.9971 GB, free: 166.8 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008021/1.131, allocations: 5.664 MB / 1.003 GB, free: 164.3 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 0.0008486/1.132, allocations: 89.02 kB / 1.003 GB, free: 164.2 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.002419/1.134, allocations: 3.193 MB / 1.006 GB, free: 161.5 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.001504/1.136, allocations: 1.125 MB / 1.007 GB, free: 160.5 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001109/1.137, allocations: 0.856 MB / 1.008 GB, free: 160.1 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 5.101e-05/1.137, allocations: 309 kB / 1.008 GB, free: 159.7 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002581/1.14, allocations: 2.162 MB / 1.01 GB, free: 157.7 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003002/1.143, allocations: 3.698 MB / 1.014 GB, free: 153.4 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005765/1.148, allocations: 6.325 MB / 1.02 GB, free: 146.4 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.941e-05/1.149, allocations: 16 kB / 1.02 GB, free: 146.4 MB / 0.7325 GB Notification: Performance of matching and sorting (n=569) (initialization): time 0.009029/1.158, allocations: 6.775 MB / 1.027 GB, free: 139.6 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 5.774e-05/1.158, allocations: 53.7 kB / 1.027 GB, free: 139.6 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.246e-05/1.158, allocations: 51.94 kB / 1.027 GB, free: 139.5 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008147/1.159, allocations: 433.4 kB / 1.027 GB, free: 139.1 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003098/1.162, allocations: 1.006 MB / 1.028 GB, free: 138.1 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004112/1.166, allocations: 5.695 MB / 1.034 GB, free: 132.1 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004552/1.17, allocations: 287.5 kB / 1.034 GB, free: 131.8 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005698/1.171, allocations: 216 kB / 1.034 GB, free: 131.6 MB / 0.7325 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 222 * Number of states: 0 () * Number of discrete variables: 7 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1,dHTan.local_reset,dHTanEnh.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (540): * Single equations (assignments): 537 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,14,100.0%), (1,14,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003584/1.175, allocations: 2.481 MB / 1.037 GB, free: 129.1 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001372/1.176, allocations: 0.5326 MB / 1.037 GB, free: 128.6 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006794/1.183, allocations: 5.266 MB / 1.042 GB, free: 123.3 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.286e-05/1.183, allocations: 32 kB / 1.042 GB, free: 123.2 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.428e-06/1.183, allocations: 4 kB / 1.042 GB, free: 123.2 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004809/1.188, allocations: 4.534 MB / 1.047 GB, free: 118.6 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01766/1.205, allocations: 11.98 MB / 1.058 GB, free: 106.6 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.137e-05/1.205, allocations: 4 kB / 1.058 GB, free: 106.6 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002369/1.208, allocations: 0.6468 MB / 1.059 GB, free: 105.9 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000687/1.208, allocations: 373.2 kB / 1.059 GB, free: 105.6 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001912/1.209, allocations: 87.95 kB / 1.059 GB, free: 105.5 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003862/1.212, allocations: 5.617 MB / 1.065 GB, free: 99.59 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/1.213, allocations: 0 / 1.065 GB, free: 99.59 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009248/1.222, allocations: 7.765 MB / 1.073 GB, free: 91.73 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002669/1.224, allocations: 1.166 MB / 1.074 GB, free: 90.55 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001111/1.226, allocations: 68 kB / 1.074 GB, free: 90.48 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003092/1.229, allocations: 189.5 kB / 1.074 GB, free: 90.3 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003485/1.229, allocations: 203.7 kB / 1.074 GB, free: 90.1 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002645/1.229, allocations: 139.9 kB / 1.074 GB, free: 89.96 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.00472/1.234, allocations: 3.963 MB / 1.078 GB, free: 86.02 MB / 0.7325 GB Notification: Performance of sort global known variables: time 2.1e-07/1.234, allocations: 0 / 1.078 GB, free: 86.02 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.005841/1.24, allocations: 2.012 MB / 1.08 GB, free: 84.02 MB / 0.7325 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 16 (tanEnh.vol[1].dynBal.U,tanEnh.vol[2].dynBal.U,tanEnh.vol[3].dynBal.U,tanEnh.vol[4].dynBal.U,tanEnh.vol[5].dynBal.U,tanEnh.vol[6].dynBal.U,tanEnh.vol[7].dynBal.U,tan.vol[1].dynBal.U,tan.vol[2].dynBal.U,tan.vol[3].dynBal.U,tan.vol[4].dynBal.U,tan.vol[5].dynBal.U,tan.vol[6].dynBal.U,tan.vol[7].dynBal.U,dHTanEnh.y,dHTan.y) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (296): * Single equations (assignments): 289 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,14,100.0%), (1,14,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.009763/1.25, allocations: 8.716 MB / 1.089 GB, free: 75.26 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.006326/1.256, allocations: 5.436 MB / 1.094 GB, free: 69.77 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 7.333e-06/1.256, allocations: 4 kB / 1.094 GB, free: 69.77 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.002653/1.259, allocations: 2.549 MB / 1.096 GB, free: 67.2 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01267/1.271, allocations: 3.404 MB / 1.1 GB, free: 63.91 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06157/1.333, allocations: 52.32 MB / 1.151 GB, free: 9.5 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003236/1.336, allocations: 4.632 MB / 1.155 GB, free: 4.836 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.005727/1.342, allocations: 2.085 MB / 1.157 GB, free: 2.77 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003844/1.346, allocations: 2.667 MB / 1.16 GB, free: 104 kB / 0.7325 GB Notification: Performance of SimCode: time 9.42e-07/1.346, allocations: 4 kB / 1.16 GB, free: 100 kB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5607/1.907, allocations: 162.6 MB / 1.319 GB, free: 308.5 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.31/21.22, allocations: 6.25 kB / 1.319 GB, free: 308.5 MB / 0.8731 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Storage.Validation.StratifiedLoadingUnloading.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Storage.Validation.StratifiedLoadingUnloading.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Storage.Validation.StratifiedLoadingUnloading.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Storage.Validation.StratifiedLoadingUnloading.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Storage_Validation_StratifiedLoadingUnloading_fmu --startTime=0 --stopTime=14400 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Storage_Validation_StratifiedLoadingUnloading.fmu > BuildingSystems_BuildingSystems.Fluid.Storage.Validation.StratifiedLoadingUnloading.pipe 2>&1)