Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank.level|tank.medium.T|tank.aboveLevel.1.|tank.ports_m_flow_out.1.|timeTable.a|timeTable.b|timeTable.last|timeTable.nextEvent",fileNamePrefix="Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank.level|tank.medium.T|tank.aboveLevel.1.|tank.ports_m_flow_out.1.|timeTable.a|timeTable.b|timeTable.last|timeTable.nextEvent",fileNamePrefix="Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001049/0.001049, allocations: 187 kB / 17.92 MB, free: 3.855 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.235/1.235, allocations: 205.1 MB / 223.7 MB, free: 8.484 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009069/0.000907, allocations: 98.28 kB / 271.2 MB, free: 8.441 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007797/0.0007797, allocations: 43.94 kB / 327.2 MB, free: 324 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2148/0.2156, allocations: 46.61 MB / 373.8 MB, free: 45.64 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank): time 0.0151/0.2308, allocations: 18 MB / 391.8 MB, free: 31.38 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.007352/0.2382, allocations: 6.917 MB / 398.7 MB, free: 24.53 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000663/0.2389, allocations: 27.75 kB / 398.8 MB, free: 24.5 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007333/0.2397, allocations: 342.3 kB / 399.1 MB, free: 24.16 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001475/0.2412, allocations: 0.9491 MB / 400.1 MB, free: 23.21 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002936/0.2441, allocations: 1.604 MB / 401.7 MB, free: 21.62 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002082/0.2462, allocations: 2.881 MB / 404.5 MB, free: 18.73 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000926/0.2471, allocations: 455.1 kB / 405 MB, free: 18.28 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001251/0.2484, allocations: 0.6771 MB / 405.7 MB, free: 17.6 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00108/0.2495, allocations: 0.7473 MB / 406.4 MB, free: 16.85 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002042/0.2497, allocations: 32 kB / 406.4 MB, free: 16.82 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001641/0.2514, allocations: 1.1 MB / 407.5 MB, free: 15.72 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003352/0.2517, allocations: 247.2 kB / 407.8 MB, free: 15.48 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005361/0.2523, allocations: 398 kB / 408.2 MB, free: 15.09 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001899/0.2542, allocations: 1.671 MB / 409.8 MB, free: 13.41 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.956e-06/0.2542, allocations: 4 kB / 409.8 MB, free: 13.41 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.82e-07/0.2542, allocations: 0 / 409.8 MB, free: 13.41 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.219e-05/0.2542, allocations: 0 / 409.8 MB, free: 13.41 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.002409/0.2566, allocations: 1.252 MB / 411.1 MB, free: 12.09 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.745e-05/0.2567, allocations: 12.03 kB / 411.1 MB, free: 12.08 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003787/0.2571, allocations: 91.98 kB / 411.2 MB, free: 11.99 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008216/0.2579, allocations: 0.5655 MB / 411.8 MB, free: 11.38 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.204e-05/0.258, allocations: 104.4 kB / 411.9 MB, free: 11.27 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.492e-05/0.2581, allocations: 44 kB / 411.9 MB, free: 11.23 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001009/0.2591, allocations: 0.8083 MB / 412.7 MB, free: 10.38 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.997e-05/0.2591, allocations: 0 / 412.7 MB, free: 10.38 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.476e-05/0.2592, allocations: 27.97 kB / 412.7 MB, free: 10.35 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.784e-05/0.2592, allocations: 36.98 kB / 412.8 MB, free: 10.31 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008785/0.2601, allocations: 0.683 MB / 413.5 MB, free: 9.629 MB / 298.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.003742/0.2639, allocations: 3.437 MB / 416.9 MB, free: 5.969 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005584/0.2644, allocations: 422.9 kB / 417.3 MB, free: 5.547 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002849/0.2647, allocations: 245.4 kB / 417.6 MB, free: 5.305 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001375/0.2661, allocations: 1.342 MB / 418.9 MB, free: 3.824 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004216/0.2666, allocations: 353.1 kB / 419.2 MB, free: 3.445 MB / 298.7 MB Notification: Performance of pre-optimization done (n=35): time 2.184e-06/0.2666, allocations: 3.938 kB / 419.2 MB, free: 3.441 MB / 298.7 MB Notification: Performance of matching and sorting (n=40): time 0.00301/0.2696, allocations: 1.79 MB / 421 MB, free: 1.559 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.286e-05/0.2697, allocations: 265 kB / 421.3 MB, free: 1.238 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007234/0.2704, allocations: 0.774 MB / 422.1 MB, free: 468 kB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.047e-05/0.2705, allocations: 33.7 kB / 422.1 MB, free: 428 kB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001901/0.2706, allocations: 407 kB / 422.5 MB, free: 12 kB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000135/0.2708, allocations: 138.2 kB / 422.6 MB, free: 15.87 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000227/0.271, allocations: 150.1 kB / 422.8 MB, free: 15.71 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001428/0.2712, allocations: 390.8 kB / 423.2 MB, free: 15.32 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003905/0.2716, allocations: 259.7 kB / 423.4 MB, free: 15.07 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000558/0.2721, allocations: 0.5042 MB / 423.9 MB, free: 14.46 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.3867/0.6588, allocations: 67.58 MB / 491.5 MB, free: 10.69 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.123e-05/0.6589, allocations: 4 kB / 491.5 MB, free: 10.69 MB / 378.7 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.001819/0.6607, allocations: 0.953 MB / 492.5 MB, free: 9.715 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.123e-05/0.6608, allocations: 45.69 kB / 492.5 MB, free: 9.664 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.623e-05/0.6608, allocations: 12.06 kB / 492.5 MB, free: 9.652 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005397/0.6613, allocations: 140.7 kB / 492.7 MB, free: 9.512 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004785/0.6618, allocations: 131.8 kB / 492.8 MB, free: 9.383 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006104/0.6624, allocations: 0.685 MB / 493.5 MB, free: 8.672 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006487/0.6631, allocations: 47.88 kB / 493.5 MB, free: 8.625 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.758e-05/0.6632, allocations: 31.94 kB / 493.5 MB, free: 8.594 MB / 378.7 MB Warning: Assuming fixed start value for the following 2 variables: tank.level:VARIABLE(start = tank.level_start unit = "m" fixed = true stateSelect=StateSelect.prefer ) "Fluid level in the tank" type: Real tank.medium.T:VARIABLE(min = max(1.0, max(1.0, 1.0)) max = min(10000.0, min(10000.0, 10000.0)) start = tank.T_start unit = "K" fixed = true nominal = 300.0 stateSelect=StateSelect.prefer ) "Temperature of medium" type: Real Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007856/0.664, allocations: 468.7 kB / 494 MB, free: 8.133 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006054/0.6646, allocations: 0.5048 MB / 494.5 MB, free: 7.512 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002384/0.667, allocations: 1.26 MB / 495.8 MB, free: 6.137 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.372e-06/0.667, allocations: 4 kB / 495.8 MB, free: 6.133 MB / 378.7 MB Notification: Performance of matching and sorting (n=87) (initialization_lambda0): time 0.001592/0.6686, allocations: 0.9306 MB / 496.7 MB, free: 5.184 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.679e-05/0.6687, allocations: 45.69 kB / 496.7 MB, free: 5.133 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.049e-05/0.6687, allocations: 4.75 kB / 496.8 MB, free: 5.129 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003847/0.6691, allocations: 124.7 kB / 496.9 MB, free: 5.004 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004477/0.6695, allocations: 139.8 kB / 497 MB, free: 4.867 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005329/0.6701, allocations: 0.6733 MB / 497.7 MB, free: 4.168 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006485/0.6707, allocations: 36.03 kB / 497.7 MB, free: 4.133 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.725e-05/0.6708, allocations: 39.97 kB / 497.8 MB, free: 4.094 MB / 378.7 MB Warning: Assuming fixed start value for the following 2 variables: tank.level:VARIABLE(start = tank.level_start unit = "m" fixed = true stateSelect=StateSelect.prefer ) "Fluid level in the tank" type: Real tank.medium.T:VARIABLE(min = max(1.0, max(1.0, 1.0)) max = min(10000.0, min(10000.0, 10000.0)) start = tank.T_start unit = "K" fixed = true nominal = 300.0 stateSelect=StateSelect.prefer ) "Temperature of medium" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.tank.aboveLevel[1],timeTable.nextEventScaled,timeTable.nextEvent,$PRE.timeTable.nextEvent,timeTable.last,timeTable.b,timeTable.a,tank.aboveLevel[1],tank.ports_m_flow_out[1],$PRE.tank.ports_m_flow_out[1],$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (79): * Single equations (assignments): 77 * Array equations: 0 * Algorithm blocks: 1 * 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 {(1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0003212/0.6712, allocations: 286.6 kB / 498 MB, free: 3.805 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001554/0.6713, allocations: 87 kB / 498.1 MB, free: 3.719 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00125/0.6726, allocations: 0.6906 MB / 498.8 MB, free: 3.012 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.473e-06/0.6726, allocations: 7.938 kB / 498.8 MB, free: 3.004 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.08e-06/0.6726, allocations: 0 / 498.8 MB, free: 3.004 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.692e-06/0.6726, allocations: 7.922 kB / 498.8 MB, free: 2.996 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002095/0.6747, allocations: 1.395 MB / 0.4885 GB, free: 1.531 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.865e-06/0.6747, allocations: 0 / 0.4885 GB, free: 1.531 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002739/0.675, allocations: 63.94 kB / 0.4886 GB, free: 1.469 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004273/0.6754, allocations: 120.8 kB / 0.4887 GB, free: 1.348 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.094e-05/0.6755, allocations: 27.98 kB / 0.4887 GB, free: 1.32 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005273/0.676, allocations: 0.6577 MB / 0.4893 GB, free: 0.6367 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/0.676, allocations: 0 / 0.4893 GB, free: 0.6367 MB / 378.7 MB Error: Jacobian A contains non-linear components. This indicates a singular system or internal generation errors. Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2614/0.9375, allocations: 11.44 MB / 0.5005 GB, free: 114.1 MB / 378.7 MB Error: post-optimization module symbolicJacobian (simulation) failed.