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.001338/0.001338, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001349/0.001349, allocations: 191.9 kB / 16.14 MB, free: 6.723 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.439/1.439, allocations: 222.9 MB / 239.8 MB, free: 4.582 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002547/0.002547, allocations: 283 kB / 290.2 MB, free: 2.176 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.124/1.124, allocations: 178.6 MB / 0.5068 GB, free: 4.766 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003004/0.003004, allocations: 99.28 kB / 0.6057 GB, free: 25.26 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1856/0.1887, allocations: 89.15 MB / 0.6928 GB, free: 4.82 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Storage.Validation.StratifiedLoadingUnloading): time 0.05898/0.2477, allocations: 55.64 MB / 0.7471 GB, free: 13 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.408/0.6557, allocations: 17.92 MB / 0.7646 GB, free: 7.309 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002933/0.6587, allocations: 68.62 kB / 0.7647 GB, free: 7.309 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.002279/0.661, allocations: 0.7224 MB / 0.7654 GB, free: 7.309 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.006479/0.6675, allocations: 2.326 MB / 0.7677 GB, free: 7.289 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.003303/0.6708, allocations: 1.389 MB / 0.769 GB, free: 7.258 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.02506/0.6959, allocations: 27.82 MB / 0.7962 GB, free: 5.297 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01098/0.7069, allocations: 8.697 MB / 0.8047 GB, free: 17.35 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01099/0.7179, allocations: 5.525 MB / 0.8101 GB, free: 14.77 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01142/0.7294, allocations: 6.187 MB / 0.8161 GB, free: 11.59 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.002805/0.7322, allocations: 471.4 kB / 0.8166 GB, free: 11.59 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.009037/0.7413, allocations: 1.154 MB / 0.8177 GB, free: 11.25 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.00389/0.7452, allocations: 1.795 MB / 0.8194 GB, free: 9.676 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.01194/0.7572, allocations: 4.121 MB / 0.8235 GB, free: 5.574 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.01889/0.7761, allocations: 12.65 MB / 0.8358 GB, free: 9.211 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 7.674e-06/0.7761, allocations: 0 / 0.8358 GB, free: 9.211 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.533e-06/0.7761, allocations: 0 / 0.8358 GB, free: 9.211 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 0.0004448/0.7766, allocations: 0 / 0.8358 GB, free: 9.211 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.02563/0.8022, allocations: 8.506 MB / 0.8441 GB, free: 0.6758 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.355e-05/0.8023, allocations: 8.031 kB / 0.8441 GB, free: 0.668 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004139/0.8064, allocations: 0.8587 MB / 0.845 GB, free: 15.8 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01353/0.82, allocations: 6.615 MB / 0.8514 GB, free: 9.277 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000419/0.8204, allocations: 456.8 kB / 0.8519 GB, free: 8.828 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001737/0.8222, allocations: 0.5996 MB / 0.8524 GB, free: 8.23 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01767/0.8398, allocations: 9.026 MB / 0.8613 GB, free: 14.89 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001224/0.84, allocations: 19.78 kB / 0.8613 GB, free: 14.88 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007182/0.8407, allocations: 267 kB / 0.8615 GB, free: 14.62 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002065/0.8409, allocations: 179.9 kB / 0.8617 GB, free: 14.44 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01482/0.8558, allocations: 7.449 MB / 0.869 GB, free: 6.984 MB / 0.6075 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.06323/0.9191, allocations: 35.92 MB / 0.9041 GB, free: 1.305 MB / 0.6387 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008218/0.9273, allocations: 4.279 MB / 0.9082 GB, free: 13.03 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006123/0.9335, allocations: 3.318 MB / 0.9115 GB, free: 9.723 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001611/0.9351, allocations: 0.9453 MB / 0.9124 GB, free: 8.605 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005254/0.9404, allocations: 2.39 MB / 0.9147 GB, free: 6.18 MB / 0.6544 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.003189/0.9436, allocations: 443.8 kB / 0.9152 GB, free: 5.742 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=317): time 1.061e-05/0.9436, allocations: 0 / 0.9152 GB, free: 5.742 MB / 0.6544 GB Notification: Performance of matching and sorting (n=317): time 0.01714/0.9608, allocations: 7.106 MB / 0.9221 GB, free: 14.55 MB / 0.67 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.731e-05/0.9609, allocations: 85.91 kB / 0.9222 GB, free: 14.45 MB / 0.67 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0121/0.973, allocations: 5.471 MB / 0.9275 GB, free: 9.004 MB / 0.67 GB Notification: Performance of collectPreVariables (initialization): time 0.0008341/0.9739, allocations: 85.7 kB / 0.9276 GB, free: 8.914 MB / 0.67 GB Notification: Performance of collectInitialEqns (initialization): time 0.004168/0.9781, allocations: 3.19 MB / 0.9307 GB, free: 5.707 MB / 0.67 GB Notification: Performance of collectInitialBindings (initialization): time 0.001994/0.9801, allocations: 1.111 MB / 0.9318 GB, free: 4.605 MB / 0.67 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002798/0.9829, allocations: 0.858 MB / 0.9326 GB, free: 3.734 MB / 0.67 GB Notification: Performance of setup shared object (initialization): time 0.0001306/0.9831, allocations: 305.1 kB / 0.9329 GB, free: 3.434 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004359/0.9874, allocations: 2.156 MB / 0.935 GB, free: 1.27 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005795/0.9932, allocations: 3.682 MB / 0.9386 GB, free: 12.89 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0111/1.004, allocations: 6.302 MB / 0.9448 GB, free: 5.891 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.277e-05/1.005, allocations: 16 kB / 0.9448 GB, free: 5.875 MB / 0.6856 GB Notification: Performance of matching and sorting (n=569) (initialization): time 0.01529/1.02, allocations: 6.752 MB / 0.9514 GB, free: 15.07 MB / 0.7012 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001112/1.02, allocations: 53.7 kB / 0.9514 GB, free: 15.01 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001032/1.02, allocations: 48 kB / 0.9515 GB, free: 14.96 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00122/1.021, allocations: 439.6 kB / 0.9519 GB, free: 14.53 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004272/1.026, allocations: 1.006 MB / 0.9529 GB, free: 13.52 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006869/1.032, allocations: 5.27 MB / 0.958 GB, free: 7.996 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005923/1.038, allocations: 466.8 kB / 0.9585 GB, free: 7.539 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001035/1.039, allocations: 216 kB / 0.9587 GB, free: 7.328 MB / 0.7012 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.006108/1.046, allocations: 2.484 MB / 0.9611 GB, free: 4.832 MB / 0.7012 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00239/1.048, allocations: 0.5287 MB / 0.9616 GB, free: 4.297 MB / 0.7012 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01235/1.06, allocations: 5.246 MB / 0.9668 GB, free: 15 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.665e-05/1.06, allocations: 35.98 kB / 0.9668 GB, free: 14.97 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.078e-05/1.061, allocations: 4 kB / 0.9668 GB, free: 14.96 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008207/1.069, allocations: 4.521 MB / 0.9712 GB, free: 10.34 MB / 0.7169 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.02834/1.097, allocations: 11.96 MB / 0.9829 GB, free: 14.28 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.526e-05/1.097, allocations: 3.938 kB / 0.9829 GB, free: 14.27 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003135/1.1, allocations: 0.6438 MB / 0.9835 GB, free: 13.63 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001004/1.101, allocations: 365.3 kB / 0.9839 GB, free: 13.27 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004492/1.102, allocations: 87.95 kB / 0.984 GB, free: 13.18 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006389/1.108, allocations: 5.185 MB / 0.989 GB, free: 7.734 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.175e-06/1.108, allocations: 7.938 kB / 0.989 GB, free: 7.727 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01478/1.123, allocations: 7.608 MB / 0.9965 GB, free: 28 kB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003743/1.127, allocations: 1.135 MB / 0.9976 GB, free: 14.87 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001495/1.128, allocations: 63.98 kB / 0.9976 GB, free: 14.8 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004751/1.133, allocations: 470.5 kB / 0.9981 GB, free: 14.35 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006044/1.134, allocations: 198.2 kB / 0.9983 GB, free: 14.15 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005123/1.134, allocations: 135.9 kB / 0.9984 GB, free: 14.02 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.008416/1.143, allocations: 3.811 MB / 1.002 GB, free: 10.23 MB / 0.7481 GB Notification: Performance of sort global known variables: time 9.61e-07/1.143, allocations: 0 / 1.002 GB, free: 10.23 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.008213/1.151, allocations: 1.987 MB / 1.004 GB, free: 8.238 MB / 0.7481 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.001783/1.153, allocations: 485.8 kB / 1.005 GB, free: 7.785 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0112/1.164, allocations: 5.37 MB / 1.01 GB, free: 2.363 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 1.473e-05/1.164, allocations: 4 kB / 1.01 GB, free: 2.359 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.005158/1.169, allocations: 2.502 MB / 1.012 GB, free: 15.83 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01863/1.188, allocations: 3.238 MB / 1.015 GB, free: 12.65 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03344/1.221, allocations: 16.46 MB / 1.031 GB, free: 12.17 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00751/1.229, allocations: 4.628 MB / 1.036 GB, free: 7.504 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.008318/1.237, allocations: 1.992 MB / 1.038 GB, free: 5.531 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002243/1.239, allocations: 451.3 kB / 1.038 GB, free: 5.09 MB / 0.7794 GB Notification: Performance of SimCode: time 1.252e-06/1.239, allocations: 0 / 1.038 GB, free: 5.09 MB / 0.7794 GB Notification: Performance of Templates: time 0.8296/2.069, allocations: 116 MB / 1.152 GB, free: 231.1 MB / 0.795 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)