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.001034/0.001034, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001015/0.001015, allocations: 198.3 kB / 16.54 MB, free: 6.391 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.23/1.23, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002041/0.002041, allocations: 282.7 kB / 290.7 MB, free: 2.012 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9044/0.9044, allocations: 169.3 MB / 0.4982 GB, free: 13.87 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001739/0.001739, allocations: 95.34 kB / 0.5953 GB, free: 27.88 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1219/0.1237, allocations: 86.99 MB / 0.6803 GB, free: 0.582 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Storage.Validation.StratifiedLoadingUnloading): time 0.0476/0.1713, allocations: 55.98 MB / 0.735 GB, free: 8.41 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.01926/0.1906, allocations: 17.94 MB / 0.7525 GB, free: 6.422 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001525/0.1922, allocations: 75.62 kB / 0.7525 GB, free: 6.348 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.001697/0.1939, allocations: 0.8963 MB / 0.7534 GB, free: 5.445 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.004441/0.1984, allocations: 2.509 MB / 0.7559 GB, free: 2.926 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.002691/0.2011, allocations: 1.519 MB / 0.7573 GB, free: 1.414 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.2692/0.4703, allocations: 21.24 MB / 0.7781 GB, free: 11.4 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01027/0.4806, allocations: 10.67 MB / 0.7885 GB, free: 25.91 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01122/0.4919, allocations: 7.142 MB / 0.7955 GB, free: 25.37 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.009568/0.5014, allocations: 6.367 MB / 0.8017 GB, free: 24.37 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.00222/0.5037, allocations: 0.9371 MB / 0.8026 GB, free: 24.37 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005335/0.509, allocations: 1.693 MB / 0.8043 GB, free: 24.37 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.00198/0.511, allocations: 2.34 MB / 0.8066 GB, free: 24.09 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.006082/0.5171, allocations: 4.708 MB / 0.8112 GB, free: 22.98 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.009264/0.5264, allocations: 13.05 MB / 0.8239 GB, free: 21.6 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 5.491e-06/0.5264, allocations: 2.531 kB / 0.8239 GB, free: 21.6 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.252e-06/0.5264, allocations: 0 / 0.8239 GB, free: 21.6 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 0.0002275/0.5267, allocations: 0 / 0.8239 GB, free: 21.6 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.01342/0.5401, allocations: 8.533 MB / 0.8322 GB, free: 16.73 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.929e-05/0.5401, allocations: 9.781 kB / 0.8322 GB, free: 16.73 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001097/0.5412, allocations: 0.8416 MB / 0.8331 GB, free: 16.13 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002369/0.5436, allocations: 0.8476 MB / 0.8339 GB, free: 15.72 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01046/0.5541, allocations: 6.433 MB / 0.8402 GB, free: 11.76 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002638/0.5544, allocations: 459.5 kB / 0.8406 GB, free: 11.55 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00101/0.5554, allocations: 0.5997 MB / 0.8412 GB, free: 11.35 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01338/0.5688, allocations: 9.023 MB / 0.85 GB, free: 5.652 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001094/0.5689, allocations: 25 kB / 0.85 GB, free: 5.637 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006516/0.5696, allocations: 264 kB / 0.8503 GB, free: 5.379 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001582/0.5697, allocations: 174.8 kB / 0.8505 GB, free: 5.211 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01214/0.5819, allocations: 7.448 MB / 0.8577 GB, free: 13.83 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.04508/0.627, allocations: 36.27 MB / 0.8931 GB, free: 8.125 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006578/0.6336, allocations: 4.285 MB / 0.8973 GB, free: 3.871 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004744/0.6383, allocations: 3.317 MB / 0.9006 GB, free: 0.5664 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001256/0.6396, allocations: 0.9532 MB / 0.9015 GB, free: 15.44 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003888/0.6435, allocations: 2.382 MB / 0.9038 GB, free: 13.03 MB / 0.6387 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00237/0.6459, allocations: 371.8 kB / 0.9042 GB, free: 12.66 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=317): time 7.313e-06/0.6459, allocations: 0 / 0.9042 GB, free: 12.66 MB / 0.6387 GB Notification: Performance of matching and sorting (n=317): time 0.01322/0.6592, allocations: 7.133 MB / 0.9111 GB, free: 5.453 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.065e-05/0.6592, allocations: 88.72 kB / 0.9112 GB, free: 5.355 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009043/0.6683, allocations: 5.67 MB / 0.9168 GB, free: 15.71 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 0.0004546/0.6688, allocations: 85.7 kB / 0.9168 GB, free: 15.62 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.003071/0.6718, allocations: 3.194 MB / 0.92 GB, free: 12.41 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 0.001267/0.6731, allocations: 1.121 MB / 0.9211 GB, free: 11.3 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001422/0.6746, allocations: 0.8541 MB / 0.9219 GB, free: 10.43 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.0001339/0.6747, allocations: 313 kB / 0.9222 GB, free: 10.12 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003544/0.6783, allocations: 2.156 MB / 0.9243 GB, free: 7.957 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004611/0.6829, allocations: 3.698 MB / 0.9279 GB, free: 3.578 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00813/0.691, allocations: 6.321 MB / 0.9341 GB, free: 12.75 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.711e-05/0.6911, allocations: 16 kB / 0.9341 GB, free: 12.73 MB / 0.67 GB Notification: Performance of matching and sorting (n=569) (initialization): time 0.01107/0.7022, allocations: 6.772 MB / 0.9407 GB, free: 6.207 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 6.186e-05/0.7022, allocations: 53.7 kB / 0.9408 GB, free: 6.148 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6e-05/0.7023, allocations: 48.91 kB / 0.9408 GB, free: 6.102 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009702/0.7033, allocations: 443.2 kB / 0.9412 GB, free: 5.664 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003504/0.7068, allocations: 1.001 MB / 0.9422 GB, free: 4.734 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005665/0.7125, allocations: 5.711 MB / 0.9478 GB, free: 14.8 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004071/0.7166, allocations: 291.4 kB / 0.9481 GB, free: 14.52 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004041/0.717, allocations: 223 kB / 0.9483 GB, free: 14.3 MB / 0.6856 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.003889/0.7209, allocations: 2.474 MB / 0.9507 GB, free: 11.89 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001392/0.7223, allocations: 0.5288 MB / 0.9512 GB, free: 11.36 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008623/0.7309, allocations: 5.27 MB / 0.9564 GB, free: 6.059 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.971e-05/0.7309, allocations: 32 kB / 0.9564 GB, free: 6.027 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.137e-05/0.731, allocations: 4 kB / 0.9564 GB, free: 6.023 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006757/0.7377, allocations: 4.531 MB / 0.9608 GB, free: 1.402 MB / 0.6856 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02011/0.7578, allocations: 12.04 MB / 0.9726 GB, free: 5.289 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.967e-06/0.7579, allocations: 0 / 0.9726 GB, free: 5.289 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002745/0.7606, allocations: 0.6451 MB / 0.9732 GB, free: 4.672 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008409/0.7615, allocations: 371.6 kB / 0.9736 GB, free: 4.305 MB / 0.7012 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002717/0.7618, allocations: 83.95 kB / 0.9736 GB, free: 4.223 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005601/0.7674, allocations: 5.62 MB / 0.9791 GB, free: 14.37 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.7674, allocations: 2.625 kB / 0.9791 GB, free: 14.37 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01214/0.7795, allocations: 7.761 MB / 0.9867 GB, free: 6.527 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002757/0.7823, allocations: 1.154 MB / 0.9878 GB, free: 5.348 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001236/0.7835, allocations: 74.55 kB / 0.9879 GB, free: 5.277 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003391/0.7869, allocations: 196.1 kB / 0.9881 GB, free: 5.086 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004274/0.7874, allocations: 194.2 kB / 0.9883 GB, free: 4.895 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00037/0.7878, allocations: 139.9 kB / 0.9884 GB, free: 4.758 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.007204/0.795, allocations: 3.963 MB / 0.9923 GB, free: 0.8164 MB / 0.7169 GB Notification: Performance of sort global known variables: time 3.71e-07/0.795, allocations: 0 / 0.9923 GB, free: 0.8164 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.007029/0.802, allocations: 2.007 MB / 0.9942 GB, free: 14.8 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.01387/0.8159, allocations: 8.728 MB / 1.003 GB, free: 6.043 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.02095/0.8369, allocations: 11.63 MB / 1.014 GB, free: 10.54 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 7.905e-06/0.8369, allocations: 4.125 kB / 1.014 GB, free: 10.54 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.003893/0.8408, allocations: 2.548 MB / 1.017 GB, free: 8.023 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0164/0.8572, allocations: 3.389 MB / 1.02 GB, free: 4.758 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3307/1.188, allocations: 64.74 MB / 1.083 GB, free: 293.6 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004167/1.192, allocations: 4.626 MB / 1.088 GB, free: 292.8 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.006137/1.198, allocations: 2.08 MB / 1.09 GB, free: 292.7 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003375/1.202, allocations: 2.676 MB / 1.092 GB, free: 290.8 MB / 0.795 GB Notification: Performance of SimCode: time 1.332e-06/1.202, allocations: 0 / 1.092 GB, free: 290.8 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5139/1.716, allocations: 165.7 MB / 1.254 GB, free: 151.1 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.64/14.36, allocations: 7.922 kB / 1.254 GB, free: 151.1 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)