Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.Fluid.Storage.Examples.Stratified.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/IDEAS 3.0.0/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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(IDEAS.Fluid.Storage.Examples.Stratified,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Fluid.Storage.Examples.Stratified") translateModel(IDEAS.Fluid.Storage.Examples.Stratified,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Fluid.Storage.Examples.Stratified") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001285/0.001285, allocations: 113.5 kB / 16.42 MB, free: 6.453 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.00114/0.00114, allocations: 183.9 kB / 17.35 MB, free: 5.734 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 / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7687/0.7687, allocations: 132.2 MB / 423.4 MB, free: 6.559 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001187/0.001187, allocations: 61.66 kB / 0.582 GB, free: 23.86 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1249/0.1261, allocations: 80.21 MB / 0.6603 GB, free: 10.25 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Storage.Examples.Stratified): time 0.0546/0.1807, allocations: 56.19 MB / 0.7152 GB, free: 1.859 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.02305/0.2038, allocations: 17.46 MB / 0.7323 GB, free: 352 kB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002166/0.206, allocations: 75.62 kB / 0.7323 GB, free: 276 kB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.002209/0.2082, allocations: 0.9861 MB / 0.7333 GB, free: 15.27 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.00567/0.2139, allocations: 2.55 MB / 0.7358 GB, free: 12.71 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.004206/0.2181, allocations: 1.805 MB / 0.7375 GB, free: 10.92 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.3089/0.5271, allocations: 29.34 MB / 0.7662 GB, free: 6.461 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01761/0.5447, allocations: 14.64 MB / 0.7805 GB, free: 20.29 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01573/0.5605, allocations: 9.942 MB / 0.7902 GB, free: 19.26 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01254/0.5731, allocations: 8.816 MB / 0.7988 GB, free: 17.1 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.003727/0.5768, allocations: 1.3 MB / 0.8001 GB, free: 17.1 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.008827/0.5857, allocations: 2.489 MB / 0.8025 GB, free: 16.81 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.004915/0.5906, allocations: 3.249 MB / 0.8057 GB, free: 14.97 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.01353/0.6041, allocations: 6.522 MB / 0.8121 GB, free: 9.035 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.02155/0.6257, allocations: 18.38 MB / 0.83 GB, free: 7.672 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.6258, allocations: 4 kB / 0.83 GB, free: 7.668 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.442e-06/0.6258, allocations: 0 / 0.83 GB, free: 7.668 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 0.0004723/0.6262, allocations: 0 / 0.83 GB, free: 7.668 MB / 0.6075 GB 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.02756/0.6538, allocations: 11.7 MB / 0.8414 GB, free: 12 MB / 0.6231 GB Notification: Performance of prepare preOptimizeDAE: time 4.427e-05/0.6539, allocations: 8.031 kB / 0.8414 GB, free: 12 MB / 0.6231 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004936/0.6588, allocations: 1.183 MB / 0.8426 GB, free: 10.8 MB / 0.6231 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01853/0.6774, allocations: 9.313 MB / 0.8517 GB, free: 1.844 MB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005864/0.678, allocations: 0.6151 MB / 0.8523 GB, free: 1.23 MB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002412/0.6804, allocations: 0.8162 MB / 0.8531 GB, free: 428 kB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02462/0.705, allocations: 12.52 MB / 0.8653 GB, free: 3.566 MB / 0.6387 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001789/0.7053, allocations: 30.41 kB / 0.8653 GB, free: 3.547 MB / 0.6387 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001049/0.7063, allocations: 358.5 kB / 0.8657 GB, free: 3.199 MB / 0.6387 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002205/0.7065, allocations: 249.4 kB / 0.8659 GB, free: 2.961 MB / 0.6387 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01786/0.7244, allocations: 10.42 MB / 0.8761 GB, free: 8.629 MB / 0.6544 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.06401/0.7884, allocations: 48.91 MB / 0.9239 GB, free: 5.645 MB / 0.7012 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008433/0.7969, allocations: 6.261 MB / 0.93 GB, free: 15.4 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006513/0.8034, allocations: 4.921 MB / 0.9348 GB, free: 10.48 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001245/0.8047, allocations: 0.8253 MB / 0.9356 GB, free: 9.523 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005378/0.8101, allocations: 3.424 MB / 0.9389 GB, free: 6.07 MB / 0.7169 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002617/0.8127, allocations: 466.3 kB / 0.9394 GB, free: 5.609 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=449): time 1.049e-05/0.8128, allocations: 0 / 0.9394 GB, free: 5.609 MB / 0.7169 GB Notification: Performance of matching and sorting (n=449): time 0.01448/0.8272, allocations: 8.909 MB / 0.9481 GB, free: 12.68 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001048/0.8274, allocations: 158.2 kB / 0.9482 GB, free: 12.5 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01473/0.8421, allocations: 7.717 MB / 0.9558 GB, free: 4.805 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 0.001047/0.8432, allocations: 109.7 kB / 0.9559 GB, free: 4.691 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.004872/0.8481, allocations: 4.329 MB / 0.9601 GB, free: 352 kB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.002129/0.8502, allocations: 1.569 MB / 0.9616 GB, free: 14.79 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002391/0.8526, allocations: 1.12 MB / 0.9627 GB, free: 13.66 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 9.38e-05/0.8528, allocations: 309.1 kB / 0.963 GB, free: 13.36 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004853/0.8576, allocations: 3.038 MB / 0.966 GB, free: 10.3 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006084/0.8637, allocations: 4.914 MB / 0.9708 GB, free: 4.555 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01116/0.8749, allocations: 8.612 MB / 0.9792 GB, free: 11.12 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.26e-05/0.875, allocations: 19.94 kB / 0.9792 GB, free: 11.1 MB / 0.7637 GB Notification: Performance of matching and sorting (n=754) (initialization): time 0.01438/0.8893, allocations: 8.901 MB / 0.9879 GB, free: 2.168 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001047/0.8895, allocations: 91.39 kB / 0.988 GB, free: 2.066 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.189e-05/0.8896, allocations: 60 kB / 0.988 GB, free: 2.008 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.815e-05/0.8897, allocations: 88 kB / 0.9881 GB, free: 1.922 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005154/0.8948, allocations: 1.365 MB / 0.9895 GB, free: 0.5547 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001433/0.895, allocations: 127.6 kB / 0.9896 GB, free: 440 kB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00566/0.9007, allocations: 383.1 kB / 0.9899 GB, free: 56 kB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006862/0.9014, allocations: 272 kB / 0.9902 GB, free: 15.79 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.01029/0.9117, allocations: 6.167 MB / 0.9962 GB, free: 9.609 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.006201/0.9179, allocations: 4.905 MB / 1.001 GB, free: 3.871 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.01173/0.9296, allocations: 8.604 MB / 1.009 GB, free: 10.44 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.647e-05/0.9297, allocations: 16 kB / 1.009 GB, free: 10.43 MB / 0.795 GB Notification: Performance of matching and sorting (n=754) (initialization_lambda0): time 0.0153/0.945, allocations: 8.897 MB / 1.018 GB, free: 1.5 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 8.411e-05/0.9451, allocations: 95.39 kB / 1.018 GB, free: 1.395 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.476e-05/0.9452, allocations: 60 kB / 1.018 GB, free: 1.336 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.308e-05/0.9453, allocations: 96.06 kB / 1.018 GB, free: 1.242 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004992/0.9503, allocations: 1.353 MB / 1.02 GB, free: 15.89 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001279/0.9504, allocations: 131.6 kB / 1.02 GB, free: 15.76 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005515/0.9559, allocations: 367.3 kB / 1.02 GB, free: 15.4 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006069/0.9566, allocations: 279.9 kB / 1.02 GB, free: 15.12 MB / 0.8106 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 (P.nextEventScaled,P.nextEvent,$PRE.P.nextEvent,P.last,P.b,P.a,TWat.nextEventScaled,TWat.nextEvent,$PRE.TWat.nextEvent,TWat.last,TWat.b,TWat.a,$whenCondition2,$whenCondition1,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001345/0.9579, allocations: 0.6342 MB / 1.021 GB, free: 14.47 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002312/0.9602, allocations: 0.7219 MB / 1.022 GB, free: 13.74 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01289/0.9731, allocations: 7.144 MB / 1.029 GB, free: 6.562 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008636/0.9818, allocations: 5.841 MB / 1.034 GB, free: 0.6914 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.231e-05/0.9818, allocations: 7.922 kB / 1.034 GB, free: 0.6836 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004711/0.9865, allocations: 1.623 MB / 1.036 GB, free: 15.03 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001722/0.9883, allocations: 99.92 kB / 1.036 GB, free: 14.93 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004775/0.9931, allocations: 275.7 kB / 1.036 GB, free: 14.66 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005823/0.9936, allocations: 251.1 kB / 1.037 GB, free: 14.42 MB / 0.8262 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.01295/1.007, allocations: 7.071 MB / 1.044 GB, free: 7.359 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.5518/1.558, allocations: 11.38 MB / 1.055 GB, free: 300.8 MB / 0.8263 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.004478/1.563, allocations: 3.211 MB / 1.058 GB, free: 299.6 MB / 0.8263 GB Notification: Performance of sorting global known variables: time 0.008847/1.572, allocations: 5.422 MB / 1.063 GB, free: 297.9 MB / 0.8263 GB Notification: Performance of Backend: time 6.51e-07/1.572, allocations: 0 / 1.063 GB, free: 297.9 MB / 0.8263 GB Notification: Performance of simCode: created initialization part: time 0.01637/1.588, allocations: 9.567 MB / 1.072 GB, free: 294.6 MB / 0.8263 GB Notification: Performance of SimCode: time 0.04241/1.631, allocations: 21.08 MB / 1.093 GB, free: 286.1 MB / 0.8263 GB Notification: Performance of Templates: time 0.2108/1.841, allocations: 184.7 MB / 1.273 GB, free: 109 MB / 0.8263 GB make -j1 -f IDEAS_IDEAS.Fluid.Storage.Examples.Stratified.makefile (rm -f IDEAS_IDEAS.Fluid.Storage.Examples.Stratified.pipe ; mkfifo IDEAS_IDEAS.Fluid.Storage.Examples.Stratified.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.Storage.Examples.Stratified.pipe >> ../files/IDEAS_IDEAS.Fluid.Storage.Examples.Stratified.sim & ./IDEAS_IDEAS.Fluid.Storage.Examples.Stratified -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_IDEAS.Fluid.Storage.Examples.Stratified.pipe 2>&1)