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/BuildingSystems 2.0.0-master/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/ModelicaServices 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) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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/BuildingSystems 2.0.0-master/package.mo): time 0.9353/0.9353, allocations: 143.3 MB / 158.3 MB, free: 5.781 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001389/0.001389, allocations: 179.7 kB / 191.5 MB, free: 5.758 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.742/1.742, allocations: 223.2 MB / 447.7 MB, free: 4.816 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009841/0.000984, allocations: 92.25 kB / 0.5187 GB, free: 1.172 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002025/0.002025, allocations: 277.1 kB / 0.6005 GB, free: 48.75 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004546/0.0004546, allocations: 18.06 kB / 0.6929 GB, free: 59.6 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2103/0.2108, allocations: 82.79 MB / 0.7738 GB, free: 13.75 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9298/1.141, allocations: 378.4 MB / 1.143 GB, free: 8.176 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000274/1.141, allocations: 95.52 kB / 1.143 GB, free: 8.125 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 8.56/9.701, allocations: 2.225 GB / 3.369 GB, free: 22.3 MB / 0.7292 GB Notification: Performance of FrontEnd: time 4.508e-06/9.701, allocations: 0 / 3.369 GB, free: 22.3 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 0.001204/9.702, allocations: 187 kB / 3.369 GB, free: 22.12 MB / 0.7292 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.0266/9.729, allocations: 7.224 MB / 3.376 GB, free: 14.82 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 5.484e-05/9.729, allocations: 8.031 kB / 3.376 GB, free: 14.82 MB / 0.7292 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004657/9.733, allocations: 0.842 MB / 3.377 GB, free: 13.96 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005857/9.739, allocations: 0.8461 MB / 3.378 GB, free: 13.11 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02002/9.759, allocations: 7.744 MB / 3.385 GB, free: 5.336 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005114/9.76, allocations: 460.2 kB / 3.386 GB, free: 4.883 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00273/9.763, allocations: 0.5975 MB / 3.386 GB, free: 4.285 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.6804/10.44, allocations: 8.44 MB / 3.394 GB, free: 72.86 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003422/10.44, allocations: 21.7 kB / 3.394 GB, free: 72.86 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002386/10.45, allocations: 260.9 kB / 3.395 GB, free: 72.86 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003294/10.45, allocations: 245.3 kB / 3.395 GB, free: 72.84 MB / 0.7292 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02275/10.47, allocations: 6.891 MB / 3.402 GB, free: 72.8 MB / 0.7292 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.07225/10.54, allocations: 34.22 MB / 3.435 GB, free: 58.62 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007366/10.55, allocations: 4.262 MB / 3.439 GB, free: 58.57 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001274/10.55, allocations: 0.9559 MB / 3.44 GB, free: 57.63 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004456/10.55, allocations: 2.355 MB / 3.443 GB, free: 57.52 MB / 0.7292 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.004724/10.56, allocations: 486.2 kB / 3.443 GB, free: 57.4 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=317): time 2.386e-05/10.56, allocations: 1.719 kB / 3.443 GB, free: 57.4 MB / 0.7292 GB Notification: Performance of matching and sorting (n=317): time 0.01647/10.58, allocations: 7.061 MB / 3.45 GB, free: 56.77 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.708e-05/10.58, allocations: 91.69 kB / 3.45 GB, free: 56.71 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01109/10.59, allocations: 5.191 MB / 3.455 GB, free: 56.39 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 0.001257/10.59, allocations: 89.52 kB / 3.455 GB, free: 56.36 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 0.004191/10.59, allocations: 3.147 MB / 3.458 GB, free: 55.46 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 0.00268/10.6, allocations: 1.117 MB / 3.459 GB, free: 54.82 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003733/10.6, allocations: 91.62 kB / 3.459 GB, free: 54.82 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 0.0004193/10.6, allocations: 489 kB / 3.46 GB, free: 54.51 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003962/10.6, allocations: 2.133 MB / 3.462 GB, free: 54.5 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004605/10.6, allocations: 3.658 MB / 3.465 GB, free: 52.66 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004193/10.61, allocations: 2.889 MB / 3.468 GB, free: 52.59 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.819e-05/10.61, allocations: 16.31 kB / 3.468 GB, free: 52.59 MB / 0.7292 GB Notification: Performance of matching and sorting (n=569) (initialization): time 0.01225/10.62, allocations: 6.694 MB / 3.475 GB, free: 52.14 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 8.539e-05/10.62, allocations: 57.17 kB / 3.475 GB, free: 52.11 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.421e-05/10.62, allocations: 48.34 kB / 3.475 GB, free: 52.11 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009929/10.62, allocations: 440.6 kB / 3.475 GB, free: 52.09 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003964/10.63, allocations: 1.033 MB / 3.476 GB, free: 52.09 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005576/10.63, allocations: 5.405 MB / 3.482 GB, free: 49.39 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008676/10.64, allocations: 481.9 kB / 3.482 GB, free: 49.33 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001319/10.64, allocations: 222.5 kB / 3.482 GB, free: 49.33 MB / 0.7292 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 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count,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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 14,(1,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007029/10.65, allocations: 2.457 MB / 3.485 GB, free: 49.19 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002197/10.65, allocations: 0.5163 MB / 3.485 GB, free: 48.92 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009875/10.66, allocations: 5.222 MB / 3.49 GB, free: 48.68 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.007e-05/10.66, allocations: 29.19 kB / 3.49 GB, free: 48.68 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.268e-05/10.66, allocations: 3.906 kB / 3.49 GB, free: 48.68 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006446/10.67, allocations: 4.501 MB / 3.495 GB, free: 48.21 MB / 0.7292 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 postOpt removeSimpleEquations (simulation): time 0.03188/10.7, allocations: 11.8 MB / 3.506 GB, free: 47.44 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.434e-05/10.7, allocations: 3.125 kB / 3.506 GB, free: 47.44 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002766/10.7, allocations: 0.6257 MB / 3.507 GB, free: 47.44 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008456/10.7, allocations: 361.7 kB / 3.507 GB, free: 47.42 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002659/10.7, allocations: 82.3 kB / 3.507 GB, free: 47.42 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00687/10.71, allocations: 5.311 MB / 3.513 GB, free: 60.7 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.376e-06/10.71, allocations: 2.312 kB / 3.513 GB, free: 60.7 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01406/10.72, allocations: 7.738 MB / 3.52 GB, free: 59.92 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006676/10.73, allocations: 1.256 MB / 3.521 GB, free: 59.55 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002681/10.73, allocations: 67.67 kB / 3.521 GB, free: 59.55 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005949/10.74, allocations: 418 kB / 3.522 GB, free: 59.53 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005699/10.74, allocations: 197.8 kB / 3.522 GB, free: 59.53 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004941/10.74, allocations: 143.5 kB / 3.522 GB, free: 59.53 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 0.01256/10.75, allocations: 4.042 MB / 3.526 GB, free: 59.35 MB / 0.7448 GB Notification: Performance of sort global known variables: time 3.71e-07/10.75, allocations: 3.656 kB / 3.526 GB, free: 59.35 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.01372/10.77, allocations: 2.053 MB / 3.528 GB, free: 59.1 MB / 0.7448 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 14,(1,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01513/10.78, allocations: 9.225 MB / 3.537 GB, free: 57.55 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.008627/10.79, allocations: 5.351 MB / 3.542 GB, free: 57.17 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 1.182e-05/10.79, allocations: 3.156 kB / 3.542 GB, free: 57.17 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.003584/10.8, allocations: 2.499 MB / 3.545 GB, free: 56.9 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01648/10.81, allocations: 3.173 MB / 3.548 GB, free: 56.88 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1489/10.96, allocations: 84.16 MB / 3.63 GB, free: 26.51 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006082/10.97, allocations: 4.713 MB / 3.635 GB, free: 24.88 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 0.008753/10.98, allocations: 2.092 MB / 3.637 GB, free: 24.71 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006386/10.98, allocations: 2.65 MB / 3.639 GB, free: 22.65 MB / 0.7761 GB Notification: Performance of SimCode: time 4.048e-06/10.98, allocations: 0 / 3.639 GB, free: 22.65 MB / 0.7761 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8848/11.87, allocations: 175.3 MB / 3.81 GB, free: 108.3 MB / 0.7761 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002231/11.87, allocations: 270.8 kB / 3.811 GB, free: 107.9 MB / 0.7761 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.469/20.34, allocations: 0 / 3.811 GB, free: 107.9 MB / 0.7761 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/linux/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)