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.0009817/0.0009818, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.0009551/0.000955, allocations: 194.8 kB / 16.25 MB, free: 6.621 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.217/1.217, allocations: 222.9 MB / 239.9 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001945/0.001945, allocations: 294.4 kB / 290.3 MB, free: 2.133 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8634/0.8634, allocations: 169.2 MB / 0.4978 GB, free: 14.07 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001483/0.001483, allocations: 90.47 kB / 0.5948 GB, free: 28.15 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1206/0.1221, allocations: 86.97 MB / 0.6797 GB, free: 0.9805 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Storage.Validation.StratifiedLoadingUnloading): time 0.04323/0.1654, allocations: 55.51 MB / 0.7339 GB, free: 9.297 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.01805/0.1835, allocations: 17.79 MB / 0.7513 GB, free: 7.457 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001488/0.185, allocations: 67.62 kB / 0.7514 GB, free: 7.391 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.001624/0.1867, allocations: 0.7654 MB / 0.7521 GB, free: 6.621 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.004185/0.1909, allocations: 2.321 MB / 0.7544 GB, free: 4.289 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.002499/0.1934, allocations: 1.398 MB / 0.7558 GB, free: 2.898 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.2529/0.4463, allocations: 21.34 MB / 0.7766 GB, free: 11.25 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.009879/0.4562, allocations: 10.58 MB / 0.7869 GB, free: 25.79 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01126/0.4675, allocations: 7.224 MB / 0.794 GB, free: 25.27 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.008843/0.4764, allocations: 6.546 MB / 0.8004 GB, free: 24.28 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.00171/0.4781, allocations: 0.9353 MB / 0.8013 GB, free: 24.27 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004564/0.4827, allocations: 1.699 MB / 0.8029 GB, free: 24.27 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.001676/0.4843, allocations: 2.324 MB / 0.8052 GB, free: 24 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.005351/0.4897, allocations: 4.693 MB / 0.8098 GB, free: 22.88 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.008783/0.4985, allocations: 13.03 MB / 0.8225 GB, free: 21.48 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.508e-06/0.4985, allocations: 3.094 kB / 0.8225 GB, free: 21.48 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.332e-06/0.4985, allocations: 0 / 0.8225 GB, free: 21.48 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 0.0002294/0.4988, allocations: 0 / 0.8225 GB, free: 21.48 MB / 0.5762 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.01171/0.5105, allocations: 8.504 MB / 0.8308 GB, free: 17.34 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.406e-05/0.5105, allocations: 9.875 kB / 0.8308 GB, free: 17.34 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008737/0.5114, allocations: 0.8472 MB / 0.8317 GB, free: 16.74 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002018/0.5134, allocations: 0.8521 MB / 0.8325 GB, free: 16.33 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00827/0.5217, allocations: 6.616 MB / 0.839 GB, free: 12.24 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002121/0.5219, allocations: 462.7 kB / 0.8394 GB, free: 12.03 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007225/0.5227, allocations: 0.5962 MB / 0.84 GB, free: 11.83 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01146/0.5341, allocations: 9.028 MB / 0.8488 GB, free: 6.309 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001118/0.5343, allocations: 20.09 kB / 0.8488 GB, free: 6.305 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005758/0.5348, allocations: 261.5 kB / 0.8491 GB, free: 6.113 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001075/0.535, allocations: 182.4 kB / 0.8492 GB, free: 6.098 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009886/0.5448, allocations: 7.447 MB / 0.8565 GB, free: 15.25 MB / 0.5919 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.03398/0.5788, allocations: 35.92 MB / 0.8916 GB, free: 9.895 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004991/0.5839, allocations: 4.28 MB / 0.8958 GB, free: 5.641 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003756/0.5876, allocations: 3.306 MB / 0.899 GB, free: 2.344 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001106/0.5887, allocations: 0.9611 MB / 0.8999 GB, free: 1.211 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003171/0.5919, allocations: 2.379 MB / 0.9023 GB, free: 14.8 MB / 0.6387 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002073/0.594, allocations: 410.7 kB / 0.9027 GB, free: 14.39 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=317): time 5.38e-06/0.594, allocations: 0 / 0.9027 GB, free: 14.39 MB / 0.6387 GB Notification: Performance of matching and sorting (n=317): time 0.0105/0.6045, allocations: 7.142 MB / 0.9096 GB, free: 7.184 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.759e-05/0.6046, allocations: 85.91 kB / 0.9097 GB, free: 7.086 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005993/0.6106, allocations: 5.459 MB / 0.915 GB, free: 1.648 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 0.0002535/0.6108, allocations: 85.7 kB / 0.9151 GB, free: 1.559 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 0.00232/0.6132, allocations: 3.202 MB / 0.9182 GB, free: 14.34 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009027/0.6141, allocations: 1.117 MB / 0.9193 GB, free: 13.23 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001066/0.6151, allocations: 0.8541 MB / 0.9202 GB, free: 12.37 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 7.176e-05/0.6152, allocations: 305.1 kB / 0.9205 GB, free: 12.07 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002748/0.618, allocations: 2.16 MB / 0.9226 GB, free: 9.898 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003537/0.6215, allocations: 3.703 MB / 0.9262 GB, free: 5.516 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006616/0.6282, allocations: 6.326 MB / 0.9324 GB, free: 14.68 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.168e-05/0.6282, allocations: 16 kB / 0.9324 GB, free: 14.66 MB / 0.67 GB Notification: Performance of matching and sorting (n=569) (initialization): time 0.009112/0.6373, allocations: 6.767 MB / 0.939 GB, free: 8.145 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 5.577e-05/0.6374, allocations: 58.69 kB / 0.939 GB, free: 8.082 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.204e-05/0.6374, allocations: 48 kB / 0.9391 GB, free: 8.035 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008558/0.6383, allocations: 438.3 kB / 0.9395 GB, free: 7.605 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003149/0.6414, allocations: 1.011 MB / 0.9405 GB, free: 6.664 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004853/0.6463, allocations: 5.706 MB / 0.9461 GB, free: 0.7344 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004201/0.6505, allocations: 462.7 kB / 0.9465 GB, free: 288 kB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003253/0.6509, allocations: 220 kB / 0.9467 GB, free: 68 kB / 0.67 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.003393/0.6543, allocations: 2.476 MB / 0.9491 GB, free: 13.65 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000975/0.6552, allocations: 0.5333 MB / 0.9497 GB, free: 13.11 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007331/0.6626, allocations: 5.262 MB / 0.9548 GB, free: 7.816 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.534e-05/0.6626, allocations: 32 kB / 0.9548 GB, free: 7.785 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.927e-06/0.6626, allocations: 4 kB / 0.9548 GB, free: 7.781 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005581/0.6682, allocations: 4.533 MB / 0.9593 GB, free: 3.16 MB / 0.6856 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01626/0.6845, allocations: 11.95 MB / 0.9709 GB, free: 7.141 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.819e-06/0.6845, allocations: 7 kB / 0.9709 GB, free: 7.137 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002534/0.6871, allocations: 0.6456 MB / 0.9716 GB, free: 6.52 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007215/0.6878, allocations: 371.7 kB / 0.9719 GB, free: 6.152 MB / 0.7012 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001936/0.688, allocations: 87.94 kB / 0.972 GB, free: 6.066 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00466/0.6927, allocations: 5.62 MB / 0.9775 GB, free: 212 kB / 0.7012 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.6927, allocations: 0 / 0.9775 GB, free: 212 kB / 0.7012 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009572/0.7022, allocations: 7.768 MB / 0.9851 GB, free: 8.367 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002109/0.7044, allocations: 1.135 MB / 0.9862 GB, free: 7.207 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006348/0.705, allocations: 71.98 kB / 0.9863 GB, free: 7.137 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00305/0.7081, allocations: 465.8 kB / 0.9867 GB, free: 6.684 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003685/0.7084, allocations: 201.6 kB / 0.9869 GB, free: 6.488 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002567/0.7087, allocations: 135.9 kB / 0.987 GB, free: 6.355 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.00441/0.7131, allocations: 3.811 MB / 0.9907 GB, free: 2.566 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7131, allocations: 384 / 0.9907 GB, free: 2.566 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.004242/0.7174, allocations: 1.983 MB / 0.9927 GB, free: 0.5781 MB / 0.7169 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.01032/0.7277, allocations: 8.727 MB / 1.001 GB, free: 7.82 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.01824/0.746, allocations: 11.63 MB / 1.013 GB, free: 12.32 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 4.238e-06/0.746, allocations: 2 kB / 1.013 GB, free: 12.32 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.002958/0.7489, allocations: 2.55 MB / 1.015 GB, free: 9.801 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0115/0.7605, allocations: 3.387 MB / 1.018 GB, free: 6.539 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3334/1.094, allocations: 65.63 MB / 1.082 GB, free: 294.4 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003567/1.097, allocations: 4.635 MB / 1.087 GB, free: 293.5 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.005344/1.103, allocations: 2.027 MB / 1.089 GB, free: 293.5 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002761/1.106, allocations: 2.67 MB / 1.092 GB, free: 291.4 MB / 0.795 GB Notification: Performance of SimCode: time 4.7e-07/1.106, allocations: 0.5 kB / 1.092 GB, free: 291.4 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7079/1.813, allocations: 163.2 MB / 1.251 GB, free: 155 MB / 0.795 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001582/1.814, allocations: 306.2 kB / 1.251 GB, free: 154.6 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.368/7.181, allocations: 0 / 1.251 GB, free: 154.6 MB / 0.795 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)