Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.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) 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(Modelica.Fluid.Examples.Tanks.TanksWithOverflow,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|lowerTank.level|lowerTank.medium.h|upperTank.level|upperTank.medium.h|hysteresis.y",fileNamePrefix="Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow") translateModel(Modelica.Fluid.Examples.Tanks.TanksWithOverflow,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|lowerTank.level|lowerTank.medium.h|upperTank.level|upperTank.medium.h|hysteresis.y",fileNamePrefix="Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001132/0.001132, allocations: 112 kB / 17.06 MB, free: 5.988 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.001019/0.001019, allocations: 195.9 kB / 18 MB, free: 5.074 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.352/1.352, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0008908/0.0008908, allocations: 51.94 kB / 351.3 MB, free: 3.262 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2799/0.2808, allocations: 49.43 MB / 400.7 MB, free: 8.73 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.TanksWithOverflow): time 0.03224/0.3131, allocations: 30.16 MB / 430.9 MB, free: 10.59 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01616/0.3293, allocations: 10.27 MB / 441.1 MB, free: 300 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001817/0.3312, allocations: 31.81 kB / 441.2 MB, free: 268 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00216/0.3333, allocations: 484.9 kB / 441.7 MB, free: 15.79 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007005/0.3404, allocations: 1.862 MB / 443.5 MB, free: 13.91 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008598/0.3491, allocations: 2.753 MB / 446.3 MB, free: 11.17 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005177/0.3543, allocations: 3.678 MB / 449.9 MB, free: 7.484 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002255/0.3566, allocations: 1.162 MB / 451.1 MB, free: 6.305 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003414/0.36, allocations: 1.503 MB / 452.6 MB, free: 4.797 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002848/0.3629, allocations: 1.421 MB / 454 MB, free: 3.371 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006823/0.3636, allocations: 152 kB / 454.2 MB, free: 3.223 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004928/0.3685, allocations: 2.083 MB / 456.3 MB, free: 1.137 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001031/0.3696, allocations: 0.5766 MB / 456.8 MB, free: 0.5586 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001977/0.3716, allocations: 0.8089 MB / 457.6 MB, free: 15.74 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006946/0.3785, allocations: 3.36 MB / 461 MB, free: 12.38 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.509e-06/0.3786, allocations: 0 / 461 MB, free: 12.38 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.3786, allocations: 0 / 461 MB, free: 12.38 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.143e-05/0.3786, allocations: 0 / 461 MB, free: 12.38 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 271 * Number of variables: 271 Notification: Performance of Generate backend data structure: time 0.006311/0.385, allocations: 2.096 MB / 463.1 MB, free: 10.22 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.634e-05/0.385, allocations: 12.03 kB / 463.1 MB, free: 10.21 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008282/0.3859, allocations: 174.9 kB / 463.3 MB, free: 10.04 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001938/0.3878, allocations: 0.9533 MB / 464.2 MB, free: 9.039 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002142/0.388, allocations: 234.5 kB / 464.5 MB, free: 8.781 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003157/0.3884, allocations: 103.9 kB / 464.6 MB, free: 8.68 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003474/0.3919, allocations: 1.783 MB / 466.4 MB, free: 6.84 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.002e-05/0.3919, allocations: 3.938 kB / 466.4 MB, free: 6.836 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001732/0.3921, allocations: 47.92 kB / 466.4 MB, free: 6.789 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001375/0.3922, allocations: 102 kB / 466.5 MB, free: 6.688 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003299/0.3955, allocations: 1.78 MB / 468.3 MB, free: 4.898 MB / 382.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.013/0.4085, allocations: 6.922 MB / 475.2 MB, free: 13.68 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00289/0.4115, allocations: 1.498 MB / 476.7 MB, free: 12.17 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001437/0.4129, allocations: 0.8799 MB / 477.6 MB, free: 11.29 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008432/0.4138, allocations: 0.6451 MB / 478.2 MB, free: 10.52 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.598e-05/0.4139, allocations: 55.55 kB / 478.3 MB, free: 10.46 MB / 398.1 MB Notification: Performance of pre-optimization done (n=116): time 3.607e-06/0.4139, allocations: 0 / 478.3 MB, free: 10.46 MB / 398.1 MB Notification: Performance of matching and sorting (n=128): time 0.01708/0.431, allocations: 6.639 MB / 484.9 MB, free: 3.703 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001309/0.4311, allocations: 171.5 kB / 485.1 MB, free: 3.5 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001888/0.433, allocations: 1.1 MB / 486.2 MB, free: 2.383 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001429/0.4332, allocations: 53.7 kB / 486.2 MB, free: 2.324 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004129/0.4336, allocations: 0.509 MB / 486.7 MB, free: 1.809 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004274/0.4341, allocations: 456.1 kB / 487.2 MB, free: 1.359 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005652/0.4346, allocations: 275.5 kB / 487.5 MB, free: 1.082 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001451/0.4348, allocations: 353.9 kB / 487.8 MB, free: 0.7305 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001452/0.4362, allocations: 0.8519 MB / 488.7 MB, free: 15.88 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001666/0.4379, allocations: 1.072 MB / 489.7 MB, free: 14.72 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002901/0.4408, allocations: 1.804 MB / 491.5 MB, free: 12.86 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.183e-06/0.4409, allocations: 7.938 kB / 491.5 MB, free: 12.85 MB / 414.1 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.004849/0.4457, allocations: 2.628 MB / 494.2 MB, free: 10.2 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.58e-05/0.4458, allocations: 4 kB / 494.2 MB, free: 10.19 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.766e-05/0.4458, allocations: 8 kB / 494.2 MB, free: 10.18 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003669/0.4495, allocations: 1.303 MB / 495.5 MB, free: 8.867 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009883/0.4505, allocations: 219.6 kB / 495.7 MB, free: 8.652 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007212/0.4577, allocations: 6.726 MB / 0.4907 GB, free: 1.578 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001474/0.4592, allocations: 59.95 kB / 0.4907 GB, free: 1.52 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002746/0.4595, allocations: 59.97 kB / 0.4908 GB, free: 1.461 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002092/0.4616, allocations: 1.101 MB / 0.4918 GB, free: 364 kB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001663/0.4633, allocations: 1.063 MB / 0.4929 GB, free: 15.21 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002938/0.4662, allocations: 1.771 MB / 0.4946 GB, free: 13.37 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.981e-06/0.4662, allocations: 0 / 0.4946 GB, free: 13.37 MB / 430.1 MB Notification: Performance of matching and sorting (n=170) (initialization_lambda0): time 0.004794/0.471, allocations: 2.514 MB / 0.4971 GB, free: 10.83 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.436e-05/0.4711, allocations: 8 kB / 0.4971 GB, free: 10.82 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.165e-05/0.4711, allocations: 8 kB / 0.4971 GB, free: 10.82 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002559/0.4736, allocations: 1.019 MB / 0.4981 GB, free: 9.781 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009919/0.4747, allocations: 227.6 kB / 0.4983 GB, free: 9.559 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006302/0.481, allocations: 6.477 MB / 0.5046 GB, free: 2.727 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001397/0.4824, allocations: 80 kB / 0.5047 GB, free: 2.648 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002159/0.4826, allocations: 51.98 kB / 0.5047 GB, free: 2.598 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 12 (hysteresis.y,$PRE.hysteresis.y,lowerTank.inFlow[2],lowerTank.inFlow[1],lowerTank.regularFlow[2],lowerTank.regularFlow[1],upperTank.inFlow[3],upperTank.inFlow[2],upperTank.inFlow[1],upperTank.regularFlow[3],upperTank.regularFlow[2],upperTank.regularFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (126): * Single equations (assignments): 121 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,6,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(2,3), (4,11), (4,11)} Notification: Performance of prepare postOptimizeDAE: time 0.000529/0.4832, allocations: 257.4 kB / 0.505 GB, free: 2.34 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004485/0.4836, allocations: 139.1 kB / 0.5051 GB, free: 2.203 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00537/0.489, allocations: 2.811 MB / 0.5079 GB, free: 15.37 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.809e-05/0.489, allocations: 12 kB / 0.5079 GB, free: 15.36 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.103e-05/0.489, allocations: 4 kB / 0.5079 GB, free: 15.36 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.652e-05/0.4891, allocations: 11.91 kB / 0.5079 GB, free: 15.34 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007587/0.4966, allocations: 4.522 MB / 0.5123 GB, free: 10.75 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.631e-06/0.4967, allocations: 0 / 0.5123 GB, free: 10.75 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008325/0.4975, allocations: 155.8 kB / 0.5125 GB, free: 10.59 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003162/0.5007, allocations: 1.287 MB / 0.5137 GB, free: 9.293 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001375/0.5008, allocations: 43.91 kB / 0.5138 GB, free: 9.25 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006498/0.5073, allocations: 6.757 MB / 0.5204 GB, free: 2.141 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.5074, allocations: 0 / 0.5204 GB, free: 2.141 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00675/0.5141, allocations: 3.954 MB / 0.5242 GB, free: 14.15 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008846/0.515, allocations: 443.9 kB / 0.5246 GB, free: 13.7 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003494/0.5154, allocations: 28 kB / 0.5247 GB, free: 13.67 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001141/0.5165, allocations: 63.88 kB / 0.5247 GB, free: 13.61 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003382/0.5169, allocations: 145.1 kB / 0.5249 GB, free: 13.47 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001434/0.517, allocations: 47.97 kB / 0.5249 GB, free: 13.42 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001149/0.5182, allocations: 0.7493 MB / 0.5256 GB, free: 12.66 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.5182, allocations: 4 kB / 0.5256 GB, free: 12.66 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003115/0.5213, allocations: 1.061 MB / 0.5267 GB, free: 11.6 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (upperTank.level,upperTank.medium.T,lowerTank.level,lowerTank.medium.T) * Number of discrete variables: 11 (upperTank.regularFlow[1],upperTank.regularFlow[2],upperTank.regularFlow[3],upperTank.inFlow[1],upperTank.inFlow[2],upperTank.inFlow[3],lowerTank.regularFlow[1],lowerTank.regularFlow[2],lowerTank.inFlow[1],lowerTank.inFlow[2],hysteresis.y) * Number of discrete states: 1 (hysteresis.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (97): * Single equations (assignments): 88 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,6,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(2,4), (4,14), (4,14)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002125/0.5235, allocations: 0.7429 MB / 0.5274 GB, free: 10.84 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.007613/0.5311, allocations: 3.841 MB / 0.5312 GB, free: 6.949 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.873e-06/0.5311, allocations: 0 / 0.5312 GB, free: 6.949 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00304/0.5342, allocations: 1.434 MB / 0.5326 GB, free: 5.492 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003122/0.5373, allocations: 0.6233 MB / 0.5332 GB, free: 4.879 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006547/0.5439, allocations: 3.144 MB / 0.5362 GB, free: 1.711 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00104/0.5449, allocations: 1.264 MB / 0.5375 GB, free: 432 kB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.2179/0.7628, allocations: 0.5746 MB / 0.538 GB, free: 135 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008602/0.7637, allocations: 125.5 kB / 0.5382 GB, free: 135 MB / 462.1 MB Notification: Performance of SimCode: time 1.263e-06/0.7637, allocations: 0 / 0.5382 GB, free: 135 MB / 462.1 MB Notification: Performance of Templates: time 0.05727/0.821, allocations: 46.91 MB / 0.584 GB, free: 97.69 MB / 462.1 MB make -j1 -f Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.makefile (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.sim & ./Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe 2>&1)