Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_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.2.2_Modelica.Fluid.Examples.Tanks.ThreeTanks") translateModel(Modelica.Fluid.Examples.Tanks.ThreeTanks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.00118/0.001179, allocations: 107.1 kB / 16.92 MB, free: 5.777 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.001129/0.001129, allocations: 191.3 kB / 17.85 MB, free: 5.164 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.549/1.549, allocations: 205.1 MB / 223.7 MB, free: 12.32 MB / 190.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.001323/0.001323, allocations: 52.48 kB / 280 MB, free: 3.191 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09939/0.1007, allocations: 46.63 MB / 326.6 MB, free: 4.477 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.ThreeTanks): time 0.02896/0.1297, allocations: 28.68 MB / 355.3 MB, free: 7.668 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02021/0.15, allocations: 15.02 MB / 370.3 MB, free: 8.609 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002222/0.1523, allocations: 43.75 kB / 370.4 MB, free: 8.566 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001873/0.1543, allocations: 0.5979 MB / 371 MB, free: 7.965 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007222/0.1615, allocations: 2.286 MB / 373.2 MB, free: 5.668 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01073/0.1722, allocations: 3.724 MB / 377 MB, free: 1.934 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.2537/0.4259, allocations: 4.149 MB / 381.1 MB, free: 12.48 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002853/0.4288, allocations: 1.146 MB / 382.3 MB, free: 12.41 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004954/0.4338, allocations: 1.535 MB / 383.8 MB, free: 12.41 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005291/0.4392, allocations: 1.664 MB / 385.5 MB, free: 12.3 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00101/0.4402, allocations: 161.8 kB / 385.6 MB, free: 12.3 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007964/0.4482, allocations: 2.409 MB / 388 MB, free: 12.3 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001805/0.45, allocations: 0.6192 MB / 388.6 MB, free: 12.25 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002416/0.4525, allocations: 0.873 MB / 389.5 MB, free: 12.03 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009892/0.4624, allocations: 3.691 MB / 393.2 MB, free: 11.72 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.002e-05/0.4624, allocations: 1.125 kB / 393.2 MB, free: 11.72 MB / 318.1 MB Notification: Performance of FrontEnd: time 4.238e-06/0.4624, allocations: 7.797 kB / 393.2 MB, free: 11.72 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.91e-05/0.4625, allocations: 0 / 393.2 MB, free: 11.72 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.006407/0.4689, allocations: 2.19 MB / 395.4 MB, free: 10.64 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.931e-05/0.469, allocations: 9.625 kB / 395.4 MB, free: 10.64 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006595/0.4696, allocations: 173.8 kB / 395.6 MB, free: 10.56 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001602/0.4712, allocations: 1.007 MB / 396.6 MB, free: 10.2 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001407/0.4714, allocations: 174.4 kB / 396.8 MB, free: 10.11 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001895/0.4716, allocations: 104.9 kB / 396.9 MB, free: 10.11 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002873/0.4745, allocations: 1.755 MB / 398.6 MB, free: 9.945 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.116e-05/0.4745, allocations: 2.188 kB / 398.6 MB, free: 9.945 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001441/0.4747, allocations: 50.88 kB / 398.7 MB, free: 9.945 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001492/0.4748, allocations: 112.4 kB / 398.8 MB, free: 9.941 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002844/0.4777, allocations: 1.788 MB / 400.6 MB, free: 9.922 MB / 318.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.01096/0.4886, allocations: 6.714 MB / 407.3 MB, free: 6.965 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001759/0.4904, allocations: 1.239 MB / 408.5 MB, free: 6.77 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001069/0.4915, allocations: 0.7601 MB / 409.3 MB, free: 6.59 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005268/0.4968, allocations: 4.282 MB / 413.6 MB, free: 2.832 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.614e-05/0.4968, allocations: 46.41 kB / 413.6 MB, free: 2.781 MB / 318.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008255/0.4977, allocations: 173.2 kB / 413.8 MB, free: 2.68 MB / 318.1 MB Notification: Performance of pre-optimization done (n=97): time 3.457e-06/0.4977, allocations: 0 / 413.8 MB, free: 2.68 MB / 318.1 MB Notification: Performance of matching and sorting (n=112): time 0.01814/0.5158, allocations: 5.683 MB / 419.5 MB, free: 13.77 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001206/0.516, allocations: 145.5 kB / 419.6 MB, free: 13.6 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002041/0.518, allocations: 1.253 MB / 420.9 MB, free: 12.34 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001644/0.5182, allocations: 45.7 kB / 420.9 MB, free: 12.29 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005135/0.5187, allocations: 0.6186 MB / 421.5 MB, free: 11.66 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004221/0.5192, allocations: 385.2 kB / 421.9 MB, free: 11.29 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004905/0.5197, allocations: 287.4 kB / 422.2 MB, free: 11.01 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001576/0.5198, allocations: 301.1 kB / 422.5 MB, free: 10.71 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001356/0.5212, allocations: 0.7341 MB / 423.2 MB, free: 9.977 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001633/0.5228, allocations: 1.059 MB / 424.3 MB, free: 8.781 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00263/0.5255, allocations: 1.742 MB / 426 MB, free: 6.945 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.596e-06/0.5255, allocations: 4 kB / 426 MB, free: 6.941 MB / 334.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.004131/0.5296, allocations: 2.287 MB / 428.3 MB, free: 4.699 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.147e-05/0.5297, allocations: 12.75 kB / 428.3 MB, free: 4.688 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.697e-05/0.5297, allocations: 11.38 kB / 428.3 MB, free: 4.68 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006897/0.5366, allocations: 1.292 MB / 429.6 MB, free: 3.383 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001464/0.5381, allocations: 298.7 kB / 429.9 MB, free: 3.109 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002501/0.5406, allocations: 1.605 MB / 431.5 MB, free: 1.484 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001605/0.5422, allocations: 55.97 kB / 431.6 MB, free: 1.43 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001611/0.5424, allocations: 71.97 kB / 431.6 MB, free: 1.359 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001787/0.5442, allocations: 0.9801 MB / 432.6 MB, free: 384 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001547/0.5458, allocations: 1.056 MB / 433.7 MB, free: 15.17 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002594/0.5484, allocations: 1.723 MB / 435.4 MB, free: 13.35 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.203e-06/0.5484, allocations: 4 kB / 435.4 MB, free: 13.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=181) (initialization_lambda0): time 0.004226/0.5526, allocations: 2.198 MB / 437.6 MB, free: 11.2 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.373e-05/0.5527, allocations: 11.12 kB / 437.6 MB, free: 11.19 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.904e-05/0.5527, allocations: 12 kB / 437.6 MB, free: 11.18 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006026/0.5587, allocations: 1.105 MB / 438.7 MB, free: 10.07 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001319/0.5601, allocations: 307.6 kB / 439 MB, free: 9.785 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002108/0.5622, allocations: 1.448 MB / 440.5 MB, free: 8.316 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001693/0.5639, allocations: 63.95 kB / 440.5 MB, free: 8.254 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000173/0.5641, allocations: 67.97 kB / 440.6 MB, free: 8.188 MB / 350.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.000649/0.5647, allocations: 276.5 kB / 440.9 MB, free: 7.93 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000434/0.5652, allocations: 142.3 kB / 441 MB, free: 7.789 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004924/0.5701, allocations: 2.092 MB / 443.1 MB, free: 5.695 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.739e-05/0.5702, allocations: 16 kB / 443.1 MB, free: 5.68 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.867e-06/0.5702, allocations: 0 / 443.1 MB, free: 5.68 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.149e-05/0.5702, allocations: 11.91 kB / 443.1 MB, free: 5.668 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006211/0.5764, allocations: 3.575 MB / 446.7 MB, free: 2.066 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.412e-06/0.5764, allocations: 0 / 446.7 MB, free: 2.066 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009149/0.5774, allocations: 194.3 kB / 446.9 MB, free: 1.887 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002366/0.5797, allocations: 0.8674 MB / 447.8 MB, free: 1.016 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001098/0.5799, allocations: 35.92 kB / 447.8 MB, free: 0.9805 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002196/0.5821, allocations: 1.616 MB / 449.4 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.5821, allocations: 0 / 449.4 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004767/0.5869, allocations: 2.91 MB / 452.3 MB, free: 12.42 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001105/0.588, allocations: 395.1 kB / 452.7 MB, free: 12.01 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003076/0.5883, allocations: 20 kB / 452.7 MB, free: 11.99 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009959/0.5893, allocations: 68.08 kB / 452.8 MB, free: 11.93 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002403/0.5896, allocations: 93.17 kB / 452.9 MB, free: 11.84 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001209/0.5897, allocations: 51.97 kB / 452.9 MB, free: 11.79 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001314/0.591, allocations: 0.8479 MB / 453.8 MB, free: 10.93 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.591, allocations: 0 / 453.8 MB, free: 10.93 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.003703/0.5947, allocations: 1.163 MB / 455 MB, free: 9.77 MB / 366.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.002229/0.597, allocations: 0.8499 MB / 455.8 MB, free: 8.969 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00789/0.6049, allocations: 3.292 MB / 459.1 MB, free: 5.77 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.211e-05/0.6049, allocations: 192 / 459.1 MB, free: 5.77 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002238/0.6072, allocations: 0.8811 MB / 460 MB, free: 4.906 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003848/0.611, allocations: 0.6608 MB / 460.6 MB, free: 4.254 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005975/0.617, allocations: 3.092 MB / 463.7 MB, free: 1.16 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009677/0.618, allocations: 1.3 MB / 465 MB, free: 15.83 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002198/0.6202, allocations: 0.5862 MB / 465.6 MB, free: 15.24 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003435/0.6206, allocations: 134.9 kB / 465.7 MB, free: 15.11 MB / 382.1 MB Notification: Performance of SimCode: time 1.533e-06/0.6206, allocations: 0 / 465.7 MB, free: 15.11 MB / 382.1 MB Notification: Performance of Templates: time 0.07386/0.6944, allocations: 43.82 MB / 0.4976 GB, free: 3.379 MB / 414.1 MB make -j1 -f Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.ThreeTanks.makefile (rm -f Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; mkfifo Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe >> ../files/Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.ThreeTanks.sim & ./Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.ThreeTanks -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe 2>&1)