Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Fluid.Examples.Tanks.ThreeTanks.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(Modelica.Fluid.Examples.Tanks.ThreeTanks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Fluid.Examples.Tanks.ThreeTanks") translateModel(Modelica.Fluid.Examples.Tanks.ThreeTanks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Fluid.Examples.Tanks.ThreeTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001758/0.001758, 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.002043/0.002043, allocations: 195 kB / 16.53 MB, free: 6.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.532/1.532, allocations: 205.1 MB / 222.4 MB, free: 4.594 MB / 174.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00114/0.00114, allocations: 55.91 kB / 278.7 MB, free: 12.35 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2631/0.2643, allocations: 46.63 MB / 325.3 MB, free: 1.871 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.ThreeTanks): time 0.03015/0.2945, allocations: 28.69 MB / 354 MB, free: 7.148 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.02122/0.3157, allocations: 15.02 MB / 369 MB, free: 8.086 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00285/0.3186, allocations: 43.75 kB / 369.1 MB, free: 8.043 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002894/0.3216, allocations: 0.5862 MB / 369.6 MB, free: 7.453 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009679/0.3313, allocations: 2.29 MB / 371.9 MB, free: 5.152 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01501/0.3463, allocations: 3.74 MB / 375.7 MB, free: 1.402 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.009128/0.3555, allocations: 4.143 MB / 379.8 MB, free: 13.25 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002887/0.3584, allocations: 1.152 MB / 381 MB, free: 12.07 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004448/0.3629, allocations: 1.534 MB / 382.5 MB, free: 10.53 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004148/0.3671, allocations: 1.67 MB / 384.2 MB, free: 8.852 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005552/0.3677, allocations: 164 kB / 384.3 MB, free: 8.691 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007555/0.3752, allocations: 2.402 MB / 386.7 MB, free: 6.285 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001006/0.3763, allocations: 0.6194 MB / 387.4 MB, free: 5.664 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00185/0.3782, allocations: 0.8711 MB / 388.2 MB, free: 4.789 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009521/0.3877, allocations: 3.69 MB / 391.9 MB, free: 1.09 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.3877, allocations: 4 kB / 391.9 MB, free: 1.086 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.193e-06/0.3878, allocations: 0 / 391.9 MB, free: 1.086 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.473e-05/0.3878, allocations: 3.938 kB / 391.9 MB, free: 1.082 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 261 * Number of variables: 261 Notification: Performance of Generate backend data structure: time 0.008199/0.396, allocations: 2.204 MB / 394.1 MB, free: 14.82 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.419e-05/0.3961, allocations: 8.031 kB / 394.1 MB, free: 14.82 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008502/0.3969, allocations: 178.1 kB / 394.3 MB, free: 14.64 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00247/0.3994, allocations: 1.003 MB / 395.3 MB, free: 13.59 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001951/0.3996, allocations: 175.1 kB / 395.5 MB, free: 13.4 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001787/0.3998, allocations: 99.97 kB / 395.6 MB, free: 13.3 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004049/0.4039, allocations: 1.757 MB / 397.3 MB, free: 11.5 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.887e-05/0.4039, allocations: 3.984 kB / 397.3 MB, free: 11.49 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002178/0.4042, allocations: 47.97 kB / 397.4 MB, free: 11.45 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002238/0.4044, allocations: 109.9 kB / 397.5 MB, free: 11.34 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004502/0.4089, allocations: 1.78 MB / 399.3 MB, free: 9.547 MB / 334.1 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.0168/0.4257, allocations: 6.707 MB / 406 MB, free: 2.504 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002862/0.4286, allocations: 1.238 MB / 407.2 MB, free: 1.254 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00172/0.4304, allocations: 0.765 MB / 408 MB, free: 496 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008776/0.4392, allocations: 4.279 MB / 412.3 MB, free: 11.79 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.491e-05/0.4393, allocations: 47.56 kB / 412.3 MB, free: 11.73 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001076/0.4404, allocations: 178.7 kB / 412.5 MB, free: 11.56 MB / 350.1 MB Notification: Performance of pre-optimization done (n=97): time 3.727e-06/0.4404, allocations: 0 / 412.5 MB, free: 11.56 MB / 350.1 MB Notification: Performance of matching and sorting (n=112): time 0.02791/0.4683, allocations: 5.684 MB / 418.2 MB, free: 5.816 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.82e-05/0.4685, allocations: 141.5 kB / 418.3 MB, free: 5.645 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002591/0.4711, allocations: 1.253 MB / 419.6 MB, free: 4.383 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002126/0.4713, allocations: 49.7 kB / 419.6 MB, free: 4.328 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006674/0.472, allocations: 0.6168 MB / 420.2 MB, free: 3.703 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004795/0.4725, allocations: 390.4 kB / 420.6 MB, free: 3.316 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006802/0.4731, allocations: 287.4 kB / 420.9 MB, free: 3.031 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001205/0.4733, allocations: 301.1 kB / 421.2 MB, free: 2.734 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001775/0.4751, allocations: 0.7309 MB / 421.9 MB, free: 2 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002149/0.4772, allocations: 1.064 MB / 423 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003344/0.4806, allocations: 1.739 MB / 424.7 MB, free: 14.93 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.147e-06/0.4806, allocations: 4 kB / 424.7 MB, free: 14.92 MB / 366.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.003916/0.4845, allocations: 2.3 MB / 427 MB, free: 12.61 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.576e-05/0.4846, allocations: 12 kB / 427 MB, free: 12.6 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.431e-05/0.4846, allocations: 12.09 kB / 427 MB, free: 12.59 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006955/0.4916, allocations: 1.277 MB / 428.3 MB, free: 11.3 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001311/0.4929, allocations: 299.5 kB / 428.6 MB, free: 11.01 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002494/0.4954, allocations: 1.595 MB / 430.2 MB, free: 9.391 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001487/0.4969, allocations: 59.95 kB / 430.3 MB, free: 9.332 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001657/0.4971, allocations: 75.91 kB / 430.3 MB, free: 9.258 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.00179/0.4989, allocations: 0.9801 MB / 431.3 MB, free: 8.273 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.00143/0.5003, allocations: 1.059 MB / 432.4 MB, free: 7.066 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002558/0.5029, allocations: 1.73 MB / 434.1 MB, free: 5.195 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.402e-06/0.5029, allocations: 0 / 434.1 MB, free: 5.195 MB / 366.1 MB Notification: Performance of matching and sorting (n=181) (initialization_lambda0): time 0.003938/0.5069, allocations: 2.191 MB / 436.3 MB, free: 2.992 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.096e-05/0.5069, allocations: 12 kB / 436.3 MB, free: 2.98 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.354e-05/0.5069, allocations: 8 kB / 436.3 MB, free: 2.973 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006089/0.513, allocations: 1.109 MB / 437.4 MB, free: 1.859 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00121/0.5143, allocations: 303.5 kB / 437.7 MB, free: 1.562 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002058/0.5163, allocations: 1.457 MB / 439.2 MB, free: 80 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001337/0.5177, allocations: 59.97 kB / 439.2 MB, free: 20 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001707/0.5179, allocations: 71.97 kB / 439.3 MB, free: 15.95 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 6 (tank3.inFlow[1],tank3.regularFlow[1],tank2.inFlow[1],tank2.regularFlow[1],tank1.inFlow[1],tank1.regularFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (156): * Single equations (assignments): 155 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(8,18)} Notification: Performance of prepare postOptimizeDAE: time 0.000471/0.5183, allocations: 267.9 kB / 439.6 MB, free: 15.68 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003184/0.5187, allocations: 146.2 kB / 439.7 MB, free: 15.54 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004108/0.5228, allocations: 2.098 MB / 441.8 MB, free: 13.42 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.138e-05/0.5228, allocations: 12 kB / 441.8 MB, free: 13.41 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.061e-06/0.5228, allocations: 0 / 441.8 MB, free: 13.41 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.334e-05/0.5229, allocations: 7.984 kB / 441.8 MB, free: 13.4 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005698/0.5286, allocations: 3.583 MB / 445.4 MB, free: 9.762 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.494e-06/0.5286, allocations: 4 kB / 445.4 MB, free: 9.758 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009657/0.5296, allocations: 191.8 kB / 445.6 MB, free: 9.57 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002493/0.5321, allocations: 0.8634 MB / 446.5 MB, free: 8.703 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001312/0.5322, allocations: 35.97 kB / 446.5 MB, free: 8.668 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002314/0.5345, allocations: 1.622 MB / 448.1 MB, free: 7.02 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.5345, allocations: 0 / 448.1 MB, free: 7.02 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004755/0.5393, allocations: 2.907 MB / 451 MB, free: 4.094 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008712/0.5402, allocations: 391.1 kB / 451.4 MB, free: 3.691 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002501/0.5405, allocations: 27.98 kB / 451.4 MB, free: 3.664 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009701/0.5414, allocations: 63.89 kB / 451.5 MB, free: 3.602 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002254/0.5417, allocations: 93.17 kB / 451.6 MB, free: 3.512 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001164/0.5418, allocations: 51.97 kB / 451.6 MB, free: 3.461 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00119/0.543, allocations: 0.8441 MB / 452.5 MB, free: 2.613 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.543, allocations: 3.938 kB / 452.5 MB, free: 2.609 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003103/0.5461, allocations: 1.16 MB / 453.7 MB, free: 1.449 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (tank1.level,tank1.medium.T,tank2.level,tank2.medium.T,tank3.level,tank3.medium.T) * Number of discrete variables: 6 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1],tank3.regularFlow[1],tank3.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (96): * Single equations (assignments): 95 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(9,29)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001832/0.548, allocations: 0.8458 MB / 454.5 MB, free: 0.5898 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.2109/0.7589, allocations: 3.291 MB / 457.8 MB, free: 117.2 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.223e-05/0.7589, allocations: 4.938 kB / 457.8 MB, free: 117.2 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002083/0.761, allocations: 0.8736 MB / 458.7 MB, free: 117 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003714/0.7647, allocations: 0.6576 MB / 459.3 MB, free: 116.8 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005968/0.7707, allocations: 3.09 MB / 462.4 MB, free: 115.5 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006777/0.7714, allocations: 1.289 MB / 463.7 MB, free: 114.7 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002196/0.7737, allocations: 0.5888 MB / 464.3 MB, free: 114.6 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003209/0.774, allocations: 126.4 kB / 464.4 MB, free: 114.6 MB / 382.1 MB Notification: Performance of SimCode: time 7.62e-07/0.774, allocations: 1.203 kB / 464.4 MB, free: 114.6 MB / 382.1 MB Notification: Performance of Templates: time 0.05619/0.8302, allocations: 43.82 MB / 0.4963 GB, free: 73.79 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Fluid.Examples.Tanks.ThreeTanks.makefile (rm -f Modelica_3.1_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; mkfifo Modelica_3.1_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe >> ../files/Modelica_3.1_Modelica.Fluid.Examples.Tanks.ThreeTanks.sim & ./Modelica_3.1_Modelica.Fluid.Examples.Tanks.ThreeTanks -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe 2>&1)