Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.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.Thermal.FluidHeatFlow.Examples.TwoTanks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks") translateModel(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005239/0.005239, allocations: 98.45 kB / 15.73 MB, free: 6.059 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.001279/0.001279, allocations: 195.8 kB / 16.68 MB, free: 5.969 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.513/1.513, allocations: 205.1 MB / 222.5 MB, free: 12.23 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.00118/0.00118, allocations: 52.31 kB / 326.5 MB, free: 3.312 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1141/0.1152, allocations: 46.62 MB / 373.1 MB, free: 4.586 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.004135/0.1194, allocations: 2.756 MB / 375.9 MB, free: 1.816 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001427/0.1209, allocations: 0.8613 MB / 376.8 MB, free: 0.9453 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001414/0.121, allocations: 4 kB / 376.8 MB, free: 0.9414 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002947/0.1213, allocations: 83.39 kB / 376.8 MB, free: 0.8594 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003297/0.1217, allocations: 142.9 kB / 377 MB, free: 0.7188 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002163/0.1219, allocations: 83.83 kB / 377.1 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004698/0.1224, allocations: 442.4 kB / 377.5 MB, free: 208 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001949/0.1226, allocations: 103.1 kB / 377.6 MB, free: 104 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2464/0.369, allocations: 161.6 kB / 377.8 MB, free: 9.938 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003849/0.3694, allocations: 179.4 kB / 377.9 MB, free: 9.938 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.67e-05/0.3695, allocations: 34.34 kB / 378 MB, free: 9.938 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.311e-05/0.3696, allocations: 34.38 kB / 378 MB, free: 9.938 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.347e-05/0.3697, allocations: 78.09 kB / 378.1 MB, free: 9.926 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00024/0.3699, allocations: 192 kB / 378.3 MB, free: 9.879 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007622/0.3707, allocations: 443.2 kB / 378.7 MB, free: 9.824 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.708e-06/0.3707, allocations: 1.375 kB / 378.7 MB, free: 9.824 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.285e-06/0.3707, allocations: 2.062 kB / 378.7 MB, free: 9.824 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.612e-05/0.3707, allocations: 0 / 378.7 MB, free: 9.824 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: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.001149/0.3719, allocations: 0.6795 MB / 379.4 MB, free: 9.328 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.369e-05/0.3719, allocations: 8.344 kB / 379.4 MB, free: 9.328 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001013/0.3721, allocations: 39.97 kB / 379.4 MB, free: 9.312 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004552/0.3725, allocations: 302.6 kB / 379.7 MB, free: 9.078 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001023/0.3726, allocations: 51.52 kB / 379.8 MB, free: 9.047 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.39e-05/0.3727, allocations: 26.67 kB / 379.8 MB, free: 9.047 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004862/0.3732, allocations: 315.5 kB / 380.1 MB, free: 8.918 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.816e-05/0.3732, allocations: 4.422 kB / 380.1 MB, free: 8.918 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.273e-05/0.3732, allocations: 10.28 kB / 380.1 MB, free: 8.918 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.077e-05/0.3733, allocations: 7.25 kB / 380.1 MB, free: 8.918 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004513/0.3737, allocations: 199.6 kB / 380.3 MB, free: 8.918 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001437/0.3752, allocations: 0.7995 MB / 381.1 MB, free: 8.625 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005386/0.3757, allocations: 271.8 kB / 381.4 MB, free: 8.598 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002028/0.3759, allocations: 117.9 kB / 381.5 MB, free: 8.59 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.052e-05/0.376, allocations: 9.984 kB / 381.5 MB, free: 8.59 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.363e-05/0.376, allocations: 38.23 kB / 381.5 MB, free: 8.551 MB / 318.1 MB Notification: Performance of pre-optimization done (n=29): time 1.413e-06/0.376, allocations: 0 / 381.5 MB, free: 8.551 MB / 318.1 MB Notification: Performance of matching and sorting (n=29): time 0.0009809/0.377, allocations: 490.7 kB / 382 MB, free: 8.391 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.054e-05/0.3771, allocations: 315.1 kB / 382.3 MB, free: 8.016 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002694/0.3774, allocations: 285.1 kB / 382.6 MB, free: 7.902 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.655e-05/0.3774, allocations: 32.36 kB / 382.6 MB, free: 7.871 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001023/0.3775, allocations: 169.1 kB / 382.8 MB, free: 7.77 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.999e-05/0.3776, allocations: 108.2 kB / 382.9 MB, free: 7.699 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001122/0.3777, allocations: 64.36 kB / 383 MB, free: 7.684 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.447e-05/0.3778, allocations: 349.3 kB / 383.3 MB, free: 7.363 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002016/0.378, allocations: 92.25 kB / 383.4 MB, free: 7.332 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002637/0.3783, allocations: 209 kB / 383.6 MB, free: 7.176 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004338/0.3787, allocations: 264.4 kB / 383.9 MB, free: 7.023 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.046e-06/0.3787, allocations: 3.938 kB / 383.9 MB, free: 7.02 MB / 318.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006204/0.3793, allocations: 368.6 kB / 384.2 MB, free: 6.84 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.072e-05/0.3794, allocations: 31.94 kB / 384.3 MB, free: 6.809 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.043e-06/0.3794, allocations: 1.859 kB / 384.3 MB, free: 6.809 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001709/0.3796, allocations: 38.78 kB / 384.3 MB, free: 6.793 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009403/0.3805, allocations: 162.9 kB / 384.5 MB, free: 6.785 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002984/0.3835, allocations: 3.229 MB / 387.7 MB, free: 3.793 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002922/0.3838, allocations: 35.5 kB / 387.7 MB, free: 3.773 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.833e-05/0.3839, allocations: 10.22 kB / 387.7 MB, free: 3.773 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems 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 {(3,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0001495/0.384, allocations: 159.9 kB / 387.9 MB, free: 3.629 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.626e-05/0.3841, allocations: 35.12 kB / 387.9 MB, free: 3.613 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.106e-05/0.3842, allocations: 37.16 kB / 388 MB, free: 3.586 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.921e-06/0.3842, allocations: 3.781 kB / 388 MB, free: 3.586 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/0.3842, allocations: 0 / 388 MB, free: 3.586 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005808/0.3848, allocations: 0.6558 MB / 388.6 MB, free: 2.973 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004425/0.3852, allocations: 386.7 kB / 389 MB, free: 2.695 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.707e-06/0.3853, allocations: 2.5 kB / 389 MB, free: 2.695 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001209/0.3865, allocations: 209.6 kB / 389.2 MB, free: 2.688 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.561e-05/0.3866, allocations: 22.27 kB / 389.2 MB, free: 2.676 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.28e-05/0.3866, allocations: 6.75 kB / 389.2 MB, free: 2.672 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002759/0.3894, allocations: 3.043 MB / 392.3 MB, free: 15.76 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.57e-06/0.3894, allocations: 5.469 kB / 392.3 MB, free: 15.76 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001257/0.3906, allocations: 0.5147 MB / 392.8 MB, free: 15.46 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002868/0.391, allocations: 138.3 kB / 392.9 MB, free: 15.33 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.329e-05/0.391, allocations: 9.969 kB / 392.9 MB, free: 15.32 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002895/0.3913, allocations: 15.78 kB / 393 MB, free: 15.32 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001197/0.3914, allocations: 22.92 kB / 393 MB, free: 15.32 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.946e-05/0.3915, allocations: 10.83 kB / 393 MB, free: 15.31 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003248/0.3918, allocations: 200 kB / 393.2 MB, free: 15.2 MB / 334.1 MB Notification: Performance of sort global known variables: time 3.306e-06/0.3918, allocations: 0 / 393.2 MB, free: 15.2 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0007274/0.3926, allocations: 112 kB / 393.3 MB, free: 15.18 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (openTank1.m,openTank1.H,openTank2.m,openTank2.H) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (27): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems 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,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002009/0.3928, allocations: 113.8 kB / 393.4 MB, free: 15.07 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001715/0.3945, allocations: 0.5314 MB / 393.9 MB, free: 14.81 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 6.091e-06/0.3945, allocations: 4 kB / 393.9 MB, free: 14.81 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001429/0.396, allocations: 399.5 kB / 394.3 MB, free: 14.65 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005902/0.3966, allocations: 84.02 kB / 394.4 MB, free: 14.62 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001981/0.3986, allocations: 0.8483 MB / 395.3 MB, free: 14.12 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004369/0.399, allocations: 0.7732 MB / 396 MB, free: 13.43 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002153/0.3992, allocations: 37.72 kB / 396.1 MB, free: 13.42 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.898e-05/0.3993, allocations: 27.3 kB / 396.1 MB, free: 13.41 MB / 334.1 MB Notification: Performance of SimCode: time 3.1e-07/0.3993, allocations: 0 / 396.1 MB, free: 13.41 MB / 334.1 MB Notification: Performance of Templates: time 0.01538/0.4147, allocations: 6.274 MB / 402.4 MB, free: 11.9 MB / 334.1 MB make -j1 -f Modelica_3.1_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.makefile (rm -f Modelica_3.1_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; mkfifo Modelica_3.1_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe >> ../files/Modelica_3.1_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.sim & ./Modelica_3.1_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe 2>&1)