Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_master_IBPSA.Fluid.Storage.Examples.Stratified.conf.json Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package IBPSA with version 3.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 3.0.0-master/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(IBPSA.Fluid.Storage.Examples.Stratified,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_master_IBPSA.Fluid.Storage.Examples.Stratified") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002575/0.002574, allocations: 357.1 kB / 15.94 MB, free: 6.211 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 3.0.0-master/package.mo): time 1.502/1.502, allocations: 165.8 MB / 182.5 MB, free: 5.465 MB / 138.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.788/3.788, allocations: 410.8 MB / 0.5995 GB, free: 15.17 MB / 298.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001689/0.001688, allocations: 201.3 kB / 0.6662 GB, free: 6.945 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000467/0.0004671, allocations: 16 kB / 0.7423 GB, free: 8.973 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3586/0.3591, allocations: 67.44 MB / 0.8081 GB, free: 28.8 MB / 378.7 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.Storage.Examples.Stratified): time 0.06089/0.4201, allocations: 51.71 MB / 0.8586 GB, free: 8.941 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.02858/0.4487, allocations: 16.12 MB / 0.8744 GB, free: 8.789 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002502/0.4512, allocations: 63.62 kB / 0.8744 GB, free: 8.727 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002856/0.4541, allocations: 0.7803 MB / 0.8752 GB, free: 7.941 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008734/0.4629, allocations: 2.377 MB / 0.8775 GB, free: 5.551 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007094/0.47, allocations: 1.719 MB / 0.8792 GB, free: 3.855 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.0439/0.5139, allocations: 32.24 MB / 0.9107 GB, free: 3.52 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01927/0.5332, allocations: 10.02 MB / 0.9205 GB, free: 9.418 MB / 474.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.015/0.5483, allocations: 7 MB / 0.9273 GB, free: 2.391 MB / 474.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.3761/0.9244, allocations: 7.544 MB / 0.9347 GB, free: 16.94 MB / 474.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003062/0.9275, allocations: 475.8 kB / 0.9351 GB, free: 16.94 MB / 474.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007995/0.9356, allocations: 1.182 MB / 0.9363 GB, free: 16.94 MB / 474.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00449/0.9401, allocations: 2.096 MB / 0.9383 GB, free: 16.94 MB / 474.7 MB Notification: Performance of NFVerifyModel.verify: time 0.005422/0.9456, allocations: 2.205 MB / 0.9405 GB, free: 16.91 MB / 474.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01836/0.964, allocations: 14.36 MB / 0.9545 GB, free: 16.08 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.616e-06/0.964, allocations: 0 / 0.9545 GB, free: 16.08 MB / 474.7 MB Notification: Performance of FrontEnd: time 3.079e-06/0.964, allocations: 0 / 0.9545 GB, free: 16.08 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0005434/0.9646, allocations: 0 / 0.9545 GB, free: 16.08 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2145 * Number of variables: 2145 Notification: Performance of Generate backend data structure: time 0.02396/0.9886, allocations: 9.491 MB / 0.9638 GB, free: 12.32 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.944e-05/0.9886, allocations: 7.781 kB / 0.9638 GB, free: 12.32 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005774/0.9944, allocations: 1.166 MB / 0.9649 GB, free: 11.77 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02168/1.016, allocations: 8.825 MB / 0.9736 GB, free: 9.285 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006645/1.017, allocations: 0.6099 MB / 0.9741 GB, free: 9.266 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00264/1.02, allocations: 0.8159 MB / 0.9749 GB, free: 9.258 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03197/1.052, allocations: 12.46 MB / 0.9871 GB, free: 5.504 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003177/1.052, allocations: 25.09 kB / 0.9871 GB, free: 5.5 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002317/1.054, allocations: 357.3 kB / 0.9875 GB, free: 5.5 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000272/1.055, allocations: 244.3 kB / 0.9877 GB, free: 5.488 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02741/1.082, allocations: 10.36 MB / 0.9978 GB, free: 3.586 MB / 474.7 MB 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.09441/1.176, allocations: 48.84 MB / 1.046 GB, free: 9.297 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01424/1.191, allocations: 6.237 MB / 1.052 GB, free: 3.121 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01157/1.202, allocations: 5.064 MB / 1.057 GB, free: 14.07 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001873/1.204, allocations: 0.8484 MB / 1.057 GB, free: 13.09 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.009338/1.214, allocations: 3.412 MB / 1.061 GB, free: 9.645 MB / 0.5261 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.005119/1.219, allocations: 0.5011 MB / 1.061 GB, free: 9.141 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=449): time 1.868e-05/1.219, allocations: 0 / 1.061 GB, free: 9.141 MB / 0.5261 GB Notification: Performance of matching and sorting (n=449): time 0.02454/1.243, allocations: 8.836 MB / 1.07 GB, free: 280 kB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000157/1.244, allocations: 162.2 kB / 1.07 GB, free: 92 kB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01814/1.262, allocations: 7.242 MB / 1.077 GB, free: 8.867 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.001049/1.263, allocations: 117.7 kB / 1.077 GB, free: 8.746 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.006917/1.27, allocations: 4.3 MB / 1.081 GB, free: 4.438 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.003022/1.273, allocations: 1.554 MB / 1.083 GB, free: 2.895 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006076/1.273, allocations: 116 kB / 1.083 GB, free: 2.781 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0006111/1.274, allocations: 0.5459 MB / 1.084 GB, free: 2.227 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007486/1.282, allocations: 2.99 MB / 1.086 GB, free: 15.23 MB / 0.5574 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00993/1.292, allocations: 4.874 MB / 1.091 GB, free: 9.547 MB / 0.5574 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009625/1.301, allocations: 4.032 MB / 1.095 GB, free: 5.551 MB / 0.5574 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.091e-05/1.301, allocations: 16 kB / 1.095 GB, free: 5.535 MB / 0.5574 GB Notification: Performance of matching and sorting (n=754) (initialization): time 0.02421/1.326, allocations: 8.827 MB / 1.104 GB, free: 13.02 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.001906/1.327, allocations: 1.903 MB / 1.106 GB, free: 10.33 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001131/1.328, allocations: 56 kB / 1.106 GB, free: 10.27 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000155/1.328, allocations: 100 kB / 1.106 GB, free: 10.18 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00794/1.336, allocations: 1.36 MB / 1.107 GB, free: 8.906 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001873/1.336, allocations: 130.2 kB / 1.107 GB, free: 8.805 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009492/1.345, allocations: 0.6193 MB / 1.108 GB, free: 8.184 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001525/1.347, allocations: 272 kB / 1.108 GB, free: 7.918 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.749e-05/1.347, allocations: 4 kB / 1.108 GB, free: 7.914 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02429/1.371, allocations: 8.258 MB / 1.116 GB, free: 12 kB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002866/1.372, allocations: 56.05 kB / 1.116 GB, free: 15.95 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002322/1.372, allocations: 100 kB / 1.116 GB, free: 15.86 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01351/1.386, allocations: 1.358 MB / 1.118 GB, free: 14.59 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003016/1.386, allocations: 133.9 kB / 1.118 GB, free: 14.49 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01548/1.401, allocations: 0.5923 MB / 1.118 GB, free: 13.89 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002244/1.404, allocations: 276 kB / 1.119 GB, free: 13.62 MB / 0.5886 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 264 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition1,$whenCondition2,TWat.a,TWat.b,TWat.last,$PRE.TWat.nextEvent,TWat.nextEvent,TWat.nextEventScaled,P.a,P.b,P.last,$PRE.P.nextEvent,P.nextEvent,P.nextEventScaled,dH.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (744): * Single equations (assignments): 742 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0154/1.419, allocations: 3.558 MB / 1.122 GB, free: 10.14 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004321/1.423, allocations: 0.718 MB / 1.123 GB, free: 9.41 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03382/1.457, allocations: 7.089 MB / 1.13 GB, free: 2.293 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.662e-05/1.458, allocations: 51.92 kB / 1.13 GB, free: 2.242 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.29e-05/1.458, allocations: 0 / 1.13 GB, free: 2.242 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02593/1.484, allocations: 5.806 MB / 1.135 GB, free: 12.41 MB / 0.6042 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.06237/1.546, allocations: 16.5 MB / 1.152 GB, free: 11.88 MB / 0.6199 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.043e-05/1.546, allocations: 0 / 1.152 GB, free: 11.88 MB / 0.6199 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006537/1.553, allocations: 0.941 MB / 1.152 GB, free: 10.98 MB / 0.6199 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.504e-05/1.553, allocations: 16 kB / 1.152 GB, free: 10.97 MB / 0.6199 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009289/1.554, allocations: 123.9 kB / 1.153 GB, free: 10.85 MB / 0.6199 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.011e-05/1.554, allocations: 17.25 kB / 1.153 GB, free: 10.83 MB / 0.6199 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.212e-06/1.554, allocations: 0 / 1.153 GB, free: 10.83 MB / 0.6199 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02676/1.58, allocations: 10.53 MB / 1.163 GB, free: 248 kB / 0.6199 GB Notification: Performance of postOpt removeConstants (simulation): time 0.3508/1.931, allocations: 1.664 MB / 1.165 GB, free: 237.1 MB / 0.6199 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002935/1.934, allocations: 95.42 kB / 1.165 GB, free: 237.1 MB / 0.6199 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008795/1.943, allocations: 0.6335 MB / 1.165 GB, free: 237 MB / 0.6199 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001247/1.944, allocations: 251.1 kB / 1.165 GB, free: 237 MB / 0.6199 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001162/1.946, allocations: 199.4 kB / 1.166 GB, free: 237 MB / 0.6199 GB Notification: Performance of sorting global known variables: time 0.01328/1.959, allocations: 5.059 MB / 1.171 GB, free: 236.6 MB / 0.6199 GB Notification: Performance of sort global known variables: time 1.255e-06/1.959, allocations: 3.938 kB / 1.171 GB, free: 236.6 MB / 0.6199 GB Notification: Performance of remove unused functions: time 0.01984/1.979, allocations: 4.811 MB / 1.175 GB, free: 236.2 MB / 0.6199 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 21 (tanSim.vol[1].dynBal.U,tanSim.vol[2].dynBal.U,tanSim.vol[3].dynBal.U,tanSim.vol[4].dynBal.U,tanSim.vol[5].dynBal.U,tanSim.vol[6].dynBal.U,tanSim.vol[7].dynBal.U,tanSim.vol[8].dynBal.U,tanSim.vol[9].dynBal.U,tanSim.vol[10].dynBal.U,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,tanEnh.vol[8].dynBal.U,tanEnh.vol[9].dynBal.U,tanEnh.vol[10].dynBal.U,dH.y) * Number of discrete variables: 12 ($whenCondition1,$whenCondition2,TWat.a,TWat.b,TWat.last,TWat.nextEvent,TWat.nextEventScaled,P.a,P.b,P.last,P.nextEvent,P.nextEventScaled) * Number of discrete states: 12 (P.nextEvent,P.last,P.nextEventScaled,P.b,P.a,$whenCondition2,TWat.nextEvent,TWat.last,TWat.nextEventScaled,TWat.b,TWat.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (445): * Single equations (assignments): 441 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002225/1.981, allocations: 0.554 MB / 1.176 GB, free: 236 MB / 0.6199 GB Notification: Performance of simCode: created initialization part: time 0.02384/2.005, allocations: 11.42 MB / 1.187 GB, free: 232 MB / 0.6199 GB Notification: Performance of simCode: created event and clocks part: time 1.283e-05/2.005, allocations: 3.344 kB / 1.187 GB, free: 232 MB / 0.6199 GB Notification: Performance of simCode: created simulation system equations: time 0.006988/2.012, allocations: 3.189 MB / 1.19 GB, free: 230.8 MB / 0.6199 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.03379/2.046, allocations: 4.479 MB / 1.195 GB, free: 229.3 MB / 0.6199 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04492/2.091, allocations: 22.54 MB / 1.217 GB, free: 209 MB / 0.6199 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01167/2.103, allocations: 6.251 MB / 1.223 GB, free: 204.4 MB / 0.6199 GB Notification: Performance of simCode: alias equations: time 0.0197/2.122, allocations: 4.205 MB / 1.227 GB, free: 200.2 MB / 0.6199 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003645/2.126, allocations: 0.6047 MB / 1.227 GB, free: 199.6 MB / 0.6199 GB Notification: Performance of SimCode: time 2.74e-06/2.126, allocations: 0 / 1.227 GB, free: 199.6 MB / 0.6199 GB Notification: Performance of Templates: time 0.3615/2.488, allocations: 153.7 MB / 1.377 GB, free: 46.68 MB / 0.6199 GB