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.005165/0.005166, allocations: 96.7 kB / 15.73 MB, free: 6.047 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.001485/0.001485, allocations: 194.3 kB / 16.67 MB, free: 5.973 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.338/1.338, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002381/0.002381, allocations: 266.6 kB / 290.8 MB, free: 1.934 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9519/0.9519, allocations: 169.3 MB / 0.4983 GB, free: 13.8 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00292/0.00292, allocations: 99.86 kB / 0.681 GB, free: 4 kB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1488/0.1517, allocations: 86.97 MB / 0.7659 GB, free: 8.957 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Storage.Validation.StratifiedLoadingUnloading): time 0.3195/0.4712, allocations: 55.99 MB / 0.8206 GB, free: 11.04 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.02317/0.4944, allocations: 17.95 MB / 0.8381 GB, free: 14.18 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00229/0.4968, allocations: 79.09 kB / 0.8382 GB, free: 14.15 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.001991/0.4988, allocations: 0.8959 MB / 0.839 GB, free: 13.59 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.005838/0.5046, allocations: 2.502 MB / 0.8415 GB, free: 11.65 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.003328/0.508, allocations: 1.537 MB / 0.843 GB, free: 10.43 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.01961/0.5276, allocations: 21.26 MB / 0.8637 GB, free: 13.97 MB / 0.6231 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01243/0.5401, allocations: 10.68 MB / 0.8742 GB, free: 4.492 MB / 0.6231 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01322/0.5533, allocations: 7.154 MB / 0.8812 GB, free: 13.36 MB / 0.6387 GB Notification: Performance of NFSimplifyModel.simplify: time 0.009748/0.5631, allocations: 6.37 MB / 0.8874 GB, free: 6.965 MB / 0.6387 GB Notification: Performance of NFPackage.collectConstants: time 0.002335/0.5654, allocations: 0.9375 MB / 0.8883 GB, free: 6.027 MB / 0.6387 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005286/0.5707, allocations: 1.702 MB / 0.89 GB, free: 4.324 MB / 0.6387 GB Notification: Performance of NFScalarize.scalarize: time 0.003203/0.5739, allocations: 2.333 MB / 0.8922 GB, free: 1.984 MB / 0.6387 GB Notification: Performance of NFVerifyModel.verify: time 0.006563/0.5805, allocations: 4.711 MB / 0.8968 GB, free: 13.25 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.01384/0.5944, allocations: 13.24 MB / 0.9098 GB, free: 15.98 MB / 0.67 GB Notification: Performance of FrontEnd - DAE generated: time 7.545e-06/0.5944, allocations: 8 kB / 0.9098 GB, free: 15.97 MB / 0.67 GB Notification: Performance of FrontEnd: time 1.272e-06/0.5944, allocations: 0 / 0.9098 GB, free: 15.97 MB / 0.67 GB Notification: Performance of Transformations before backend: time 0.0001911/0.5946, allocations: 0 / 0.9098 GB, free: 15.97 MB / 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.01471/0.6093, allocations: 8.725 MB / 0.9183 GB, free: 7.145 MB / 0.67 GB Notification: Performance of prepare preOptimizeDAE: time 3.873e-05/0.6094, allocations: 12.02 kB / 0.9183 GB, free: 7.133 MB / 0.67 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001127/0.6105, allocations: 0.8383 MB / 0.9191 GB, free: 6.285 MB / 0.67 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002322/0.6128, allocations: 0.8942 MB / 0.92 GB, free: 5.387 MB / 0.67 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01088/0.6237, allocations: 6.743 MB / 0.9266 GB, free: 14.59 MB / 0.6856 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003476/0.6241, allocations: 464.1 kB / 0.927 GB, free: 14.13 MB / 0.6856 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009268/0.625, allocations: 0.5937 MB / 0.9276 GB, free: 13.54 MB / 0.6856 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01362/0.6386, allocations: 9.021 MB / 0.9364 GB, free: 4.195 MB / 0.6856 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001065/0.6388, allocations: 23.83 kB / 0.9364 GB, free: 4.172 MB / 0.6856 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005896/0.6394, allocations: 264 kB / 0.9367 GB, free: 3.914 MB / 0.6856 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001697/0.6395, allocations: 183.9 kB / 0.9369 GB, free: 3.734 MB / 0.6856 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01196/0.6515, allocations: 7.449 MB / 0.9441 GB, free: 12.27 MB / 0.7012 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.04191/0.6934, allocations: 36.08 MB / 0.9794 GB, free: 6.137 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005995/0.6994, allocations: 4.284 MB / 0.9836 GB, free: 1.867 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004499/0.704, allocations: 3.301 MB / 0.9868 GB, free: 14.56 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001296/0.7053, allocations: 0.9544 MB / 0.9877 GB, free: 13.42 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003591/0.7089, allocations: 2.39 MB / 0.99 GB, free: 11 MB / 0.7481 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0016/0.7105, allocations: 385 kB / 0.9904 GB, free: 10.62 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=317): time 5.07e-06/0.7105, allocations: 0 / 0.9904 GB, free: 10.62 MB / 0.7481 GB Notification: Performance of matching and sorting (n=317): time 0.01195/0.7224, allocations: 7.155 MB / 0.9974 GB, free: 3.375 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.059e-05/0.7225, allocations: 89.91 kB / 0.9975 GB, free: 3.273 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00727/0.7298, allocations: 5.671 MB / 1.003 GB, free: 13.62 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 0.0002498/0.7301, allocations: 89.7 kB / 1.003 GB, free: 13.53 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 0.002915/0.733, allocations: 3.271 MB / 1.006 GB, free: 10.23 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 0.00111/0.7341, allocations: 1.166 MB / 1.007 GB, free: 9.059 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001186/0.7353, allocations: 0.8624 MB / 1.008 GB, free: 8.184 MB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 0.00012/0.7354, allocations: 309 kB / 1.009 GB, free: 7.879 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003212/0.7386, allocations: 2.16 MB / 1.011 GB, free: 5.711 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004415/0.7431, allocations: 3.693 MB / 1.014 GB, free: 1.316 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008088/0.7512, allocations: 6.323 MB / 1.02 GB, free: 10.27 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.288e-05/0.7512, allocations: 16 kB / 1.02 GB, free: 10.26 MB / 0.7794 GB Notification: Performance of matching and sorting (n=569) (initialization): time 0.01048/0.7617, allocations: 6.802 MB / 1.027 GB, free: 3.406 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 6.101e-05/0.7618, allocations: 53.89 kB / 1.027 GB, free: 3.348 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.034e-05/0.7618, allocations: 52 kB / 1.027 GB, free: 3.297 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009184/0.7627, allocations: 436.1 kB / 1.028 GB, free: 2.867 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003391/0.7661, allocations: 1.006 MB / 1.029 GB, free: 1.859 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005981/0.7721, allocations: 5.701 MB / 1.034 GB, free: 11.88 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003555/0.7757, allocations: 287.7 kB / 1.034 GB, free: 11.6 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000321/0.776, allocations: 216.2 kB / 1.035 GB, free: 11.39 MB / 0.795 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.00362/0.7797, allocations: 2.486 MB / 1.037 GB, free: 8.895 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009101/0.7806, allocations: 0.5551 MB / 1.038 GB, free: 8.336 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008287/0.7889, allocations: 5.271 MB / 1.043 GB, free: 3.016 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.894e-05/0.7889, allocations: 32 kB / 1.043 GB, free: 2.984 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.289e-05/0.7889, allocations: 4 kB / 1.043 GB, free: 2.98 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006629/0.7956, allocations: 4.532 MB / 1.047 GB, free: 14.34 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01799/0.8136, allocations: 11.98 MB / 1.059 GB, free: 2.219 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.149e-05/0.8136, allocations: 4 kB / 1.059 GB, free: 2.215 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002658/0.8163, allocations: 0.6438 MB / 1.06 GB, free: 1.57 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007957/0.8171, allocations: 369.3 kB / 1.06 GB, free: 1.203 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002015/0.8173, allocations: 83.95 kB / 1.06 GB, free: 1.121 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005748/0.8231, allocations: 5.633 MB / 1.066 GB, free: 11.21 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.557e-06/0.8231, allocations: 4 kB / 1.066 GB, free: 11.21 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01128/0.8343, allocations: 7.787 MB / 1.073 GB, free: 3.324 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002281/0.8366, allocations: 1.173 MB / 1.074 GB, free: 2.129 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006136/0.8373, allocations: 71.92 kB / 1.074 GB, free: 2.059 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002529/0.8398, allocations: 204 kB / 1.075 GB, free: 1.859 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003899/0.8402, allocations: 198.2 kB / 1.075 GB, free: 1.664 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002668/0.8405, allocations: 135.9 kB / 1.075 GB, free: 1.531 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.005787/0.8463, allocations: 3.959 MB / 1.079 GB, free: 13.59 MB / 0.8419 GB Notification: Performance of sort global known variables: time 2.4e-07/0.8463, allocations: 4 kB / 1.079 GB, free: 13.59 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.005087/0.8514, allocations: 2.027 MB / 1.081 GB, free: 11.56 MB / 0.8419 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.0124/0.8638, allocations: 8.744 MB / 1.089 GB, free: 2.719 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.278/1.142, allocations: 5.442 MB / 1.095 GB, free: 275.2 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 8.366e-06/1.142, allocations: 3.719 kB / 1.095 GB, free: 275.2 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.003425/1.145, allocations: 2.545 MB / 1.097 GB, free: 274.7 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01168/1.157, allocations: 3.398 MB / 1.1 GB, free: 273.9 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06396/1.221, allocations: 52.54 MB / 1.152 GB, free: 249.9 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00294/1.224, allocations: 4.633 MB / 1.156 GB, free: 247.1 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.004669/1.229, allocations: 2.075 MB / 1.158 GB, free: 245.1 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002656/1.231, allocations: 2.678 MB / 1.161 GB, free: 242.5 MB / 0.8419 GB Notification: Performance of SimCode: time 6.31e-07/1.231, allocations: 0 / 1.161 GB, free: 242.5 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.877/4.108, allocations: 159.9 MB / 1.317 GB, free: 83.79 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.98/26.09, allocations: 14.25 kB / 1.317 GB, free: 83.78 MB / 0.8419 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)