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: translateModel(BuildingSystems.Fluid.Storage.Validation.StratifiedLoadingUnloading,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Storage.Validation.StratifiedLoadingUnloading") translateModel(BuildingSystems.Fluid.Storage.Validation.StratifiedLoadingUnloading,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Storage.Validation.StratifiedLoadingUnloading") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001122/0.001122, allocations: 108 kB / 15.61 MB, free: 152 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.001338/0.001338, allocations: 194.3 kB / 16.53 MB, free: 6.664 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.312/1.312, allocations: 222.9 MB / 240.2 MB, free: 4.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002121/0.002121, allocations: 279.2 kB / 290.7 MB, free: 1.98 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9513/0.9513, allocations: 169.3 MB / 0.4982 GB, free: 13.93 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001826/0.001826, allocations: 102.6 kB / 0.5952 GB, free: 27.83 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.174/0.1759, allocations: 86.98 MB / 0.6802 GB, free: 0.6836 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Storage.Validation.StratifiedLoadingUnloading): time 0.04989/0.2258, allocations: 55.98 MB / 0.7348 GB, free: 8.527 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.02445/0.2503, allocations: 17.94 MB / 0.7524 GB, free: 6.539 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003221/0.2536, allocations: 79.56 kB / 0.7524 GB, free: 6.461 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.002414/0.256, allocations: 0.8924 MB / 0.7533 GB, free: 5.562 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.00674/0.2628, allocations: 2.51 MB / 0.7558 GB, free: 3.039 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.003607/0.2664, allocations: 1.526 MB / 0.7572 GB, free: 1.523 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.3513/0.6177, allocations: 21.24 MB / 0.778 GB, free: 11.36 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01839/0.6361, allocations: 10.67 MB / 0.7884 GB, free: 25.87 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01818/0.6543, allocations: 7.13 MB / 0.7954 GB, free: 25.33 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01597/0.6704, allocations: 6.369 MB / 0.8016 GB, free: 24.34 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.005324/0.6757, allocations: 0.9416 MB / 0.8025 GB, free: 24.33 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01204/0.6878, allocations: 1.693 MB / 0.8042 GB, free: 24.33 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.006327/0.6942, allocations: 2.339 MB / 0.8064 GB, free: 24.05 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0151/0.7093, allocations: 4.707 MB / 0.811 GB, free: 22.94 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.01879/0.7281, allocations: 13.06 MB / 0.8238 GB, free: 21.56 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 1.004e-05/0.7282, allocations: 0 / 0.8238 GB, free: 21.56 MB / 0.5762 GB Notification: Performance of FrontEnd: time 2.505e-06/0.7282, allocations: 0 / 0.8238 GB, free: 21.56 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 0.0005381/0.7288, allocations: 0 / 0.8238 GB, free: 21.56 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.03046/0.7592, allocations: 8.518 MB / 0.8321 GB, free: 16.73 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.893e-05/0.7593, allocations: 10.56 kB / 0.8321 GB, free: 16.73 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006008/0.7653, allocations: 0.8549 MB / 0.833 GB, free: 16.31 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01601/0.7814, allocations: 6.428 MB / 0.8392 GB, free: 12.36 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005103/0.7819, allocations: 464 kB / 0.8397 GB, free: 12.15 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003051/0.785, allocations: 0.6017 MB / 0.8403 GB, free: 11.94 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0274/0.8124, allocations: 9.022 MB / 0.8491 GB, free: 6.422 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004159/0.8129, allocations: 24.97 kB / 0.8491 GB, free: 6.418 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003654/0.8165, allocations: 259.3 kB / 0.8493 GB, free: 6.227 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002821/0.8168, allocations: 187.4 kB / 0.8495 GB, free: 6.105 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0202/0.8371, allocations: 7.446 MB / 0.8568 GB, free: 14.72 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.06598/0.9031, allocations: 36.27 MB / 0.8922 GB, free: 9.02 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008162/0.9113, allocations: 4.284 MB / 0.8964 GB, free: 4.77 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005784/0.9171, allocations: 3.317 MB / 0.8996 GB, free: 1.465 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001512/0.9187, allocations: 0.9607 MB / 0.9006 GB, free: 340 kB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005113/0.9238, allocations: 2.379 MB / 0.9029 GB, free: 13.92 MB / 0.6387 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.003247/0.9271, allocations: 368.9 kB / 0.9032 GB, free: 13.55 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=317): time 1.095e-05/0.9271, allocations: 0 / 0.9032 GB, free: 13.55 MB / 0.6387 GB Notification: Performance of matching and sorting (n=317): time 0.01569/0.9428, allocations: 7.14 MB / 0.9102 GB, free: 6.344 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.367e-05/0.9429, allocations: 81.91 kB / 0.9103 GB, free: 6.25 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01245/0.9554, allocations: 5.67 MB / 0.9158 GB, free: 0.6016 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 0.001/0.9564, allocations: 85.7 kB / 0.9159 GB, free: 0.5117 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 0.004197/0.9606, allocations: 3.191 MB / 0.919 GB, free: 13.32 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 0.002112/0.9627, allocations: 1.122 MB / 0.9201 GB, free: 12.2 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003022/0.9658, allocations: 0.8502 MB / 0.921 GB, free: 11.34 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.0001278/0.9659, allocations: 317.1 kB / 0.9213 GB, free: 11.03 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004093/0.97, allocations: 2.156 MB / 0.9234 GB, free: 8.863 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005292/0.9753, allocations: 3.696 MB / 0.927 GB, free: 4.488 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009682/0.985, allocations: 6.323 MB / 0.9331 GB, free: 13.65 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.898e-05/0.9851, allocations: 16 kB / 0.9332 GB, free: 13.64 MB / 0.67 GB Notification: Performance of matching and sorting (n=569) (initialization): time 0.01435/0.9995, allocations: 6.778 MB / 0.9398 GB, free: 7.109 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 9.505e-05/0.9996, allocations: 56.2 kB / 0.9398 GB, free: 7.051 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.661e-05/0.9997, allocations: 48 kB / 0.9399 GB, free: 7.004 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001039/1.001, allocations: 435.9 kB / 0.9403 GB, free: 6.574 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003975/1.005, allocations: 1.006 MB / 0.9413 GB, free: 5.637 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006618/1.011, allocations: 5.704 MB / 0.9469 GB, free: 15.72 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00573/1.017, allocations: 283.4 kB / 0.9471 GB, free: 15.44 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001044/1.018, allocations: 220 kB / 0.9473 GB, free: 15.23 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.005961/1.024, allocations: 2.481 MB / 0.9498 GB, free: 12.8 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00235/1.027, allocations: 0.5249 MB / 0.9503 GB, free: 12.27 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01137/1.038, allocations: 5.273 MB / 0.9554 GB, free: 6.969 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.316e-05/1.038, allocations: 36.03 kB / 0.9555 GB, free: 6.934 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.655e-05/1.038, allocations: 4 kB / 0.9555 GB, free: 6.93 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007021/1.045, allocations: 4.533 MB / 0.9599 GB, free: 2.309 MB / 0.6856 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02363/1.069, allocations: 12.04 MB / 0.9716 GB, free: 6.203 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.326e-05/1.069, allocations: 4 kB / 0.9716 GB, free: 6.199 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002876/1.072, allocations: 0.6451 MB / 0.9723 GB, free: 5.582 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008905/1.073, allocations: 373.3 kB / 0.9726 GB, free: 5.211 MB / 0.7012 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003415/1.073, allocations: 83.95 kB / 0.9727 GB, free: 5.129 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005683/1.079, allocations: 5.63 MB / 0.9782 GB, free: 15.27 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-06/1.079, allocations: 0 / 0.9782 GB, free: 15.27 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01232/1.091, allocations: 7.761 MB / 0.9858 GB, free: 7.43 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003513/1.094, allocations: 1.151 MB / 0.9869 GB, free: 6.254 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001725/1.096, allocations: 67.98 kB / 0.987 GB, free: 6.188 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003871/1.1, allocations: 205.5 kB / 0.9872 GB, free: 5.988 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005806/1.101, allocations: 204.9 kB / 0.9874 GB, free: 5.789 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004557/1.101, allocations: 135.9 kB / 0.9875 GB, free: 5.656 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.007586/1.109, allocations: 3.963 MB / 0.9914 GB, free: 1.715 MB / 0.7169 GB Notification: Performance of sort global known variables: time 5e-07/1.109, allocations: 0 / 0.9914 GB, free: 1.715 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.007613/1.116, allocations: 2.007 MB / 0.9933 GB, free: 15.7 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.001524/1.118, allocations: 492.8 kB / 0.9938 GB, free: 15.27 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.02165/1.14, allocations: 11.64 MB / 1.005 GB, free: 3.766 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 6.142e-06/1.14, allocations: 0 / 1.005 GB, free: 3.766 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.004166/1.144, allocations: 2.539 MB / 1.008 GB, free: 1.254 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01668/1.161, allocations: 3.404 MB / 1.011 GB, free: 13.98 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02445/1.185, allocations: 14.03 MB / 1.025 GB, free: 15.94 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005528/1.191, allocations: 4.631 MB / 1.029 GB, free: 11.28 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.008185/1.199, allocations: 2.082 MB / 1.031 GB, free: 9.219 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001827/1.201, allocations: 470.2 kB / 1.032 GB, free: 8.762 MB / 0.7637 GB Notification: Performance of SimCode: time 6.81e-07/1.201, allocations: 0 / 1.032 GB, free: 8.762 MB / 0.7637 GB Notification: Performance of Templates: time 0.4628/1.663, allocations: 122 MB / 1.151 GB, free: 222.8 MB / 0.7794 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Storage.Validation.StratifiedLoadingUnloading.makefile (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 & ./BuildingSystems_BuildingSystems.Fluid.Storage.Validation.StratifiedLoadingUnloading -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Storage.Validation.StratifiedLoadingUnloading.pipe 2>&1)