Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.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.TestOpenTank,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank") translateModel(Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001223/0.001223, allocations: 108 kB / 15.6 MB, free: 132 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.001427/0.001428, allocations: 196 kB / 16.53 MB, free: 6.391 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.449/1.449, 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.001225/0.001225, allocations: 56.39 kB / 278.7 MB, free: 12.38 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2492/0.2505, allocations: 46.63 MB / 325.3 MB, free: 2.184 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank): time 0.004162/0.2547, allocations: 2.845 MB / 328.2 MB, free: 15.93 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002122/0.2568, allocations: 1.18 MB / 329.3 MB, free: 14.98 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001768/0.257, allocations: 7.688 kB / 329.3 MB, free: 14.98 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00059/0.2576, allocations: 178.6 kB / 329.5 MB, free: 14.86 MB / 270.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.0004984/0.2581, allocations: 201.5 kB / 329.7 MB, free: 14.71 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003989/0.2586, allocations: 149.9 kB / 329.9 MB, free: 14.6 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005819/0.2592, allocations: 447 kB / 330.3 MB, free: 14.34 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002421/0.2594, allocations: 102.8 kB / 330.4 MB, free: 14.3 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002438/0.2597, allocations: 179.6 kB / 330.6 MB, free: 14.2 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002986/0.26, allocations: 203.4 kB / 330.8 MB, free: 14.08 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 8.257e-05/0.2601, allocations: 30.19 kB / 330.8 MB, free: 14.08 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002175/0.2603, allocations: 72.45 kB / 330.9 MB, free: 14.06 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001391/0.2604, allocations: 93.27 kB / 331 MB, free: 13.98 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002582/0.2607, allocations: 191.1 kB / 331.1 MB, free: 13.86 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007235/0.2614, allocations: 481.8 kB / 331.6 MB, free: 13.52 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.666e-06/0.2614, allocations: 1.219 kB / 331.6 MB, free: 13.52 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.2614, allocations: 0 / 331.6 MB, free: 13.52 MB / 270.1 MB Notification: Performance of Transformations before backend: time 9.758e-06/0.2615, allocations: 0 / 331.6 MB, free: 13.52 MB / 270.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 47 * Number of variables: 47 Notification: Performance of Generate backend data structure: time 0.001243/0.2627, allocations: 0.6915 MB / 332.3 MB, free: 12.91 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.88e-05/0.2628, allocations: 8.344 kB / 332.3 MB, free: 12.91 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001381/0.2629, allocations: 52.62 kB / 332.4 MB, free: 12.88 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005443/0.2635, allocations: 352 kB / 332.7 MB, free: 12.55 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.349e-05/0.2635, allocations: 16.25 kB / 332.7 MB, free: 12.54 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.542e-05/0.2636, allocations: 24.75 kB / 332.8 MB, free: 12.53 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006138/0.2642, allocations: 290.5 kB / 333 MB, free: 12.29 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.865e-05/0.2642, allocations: 1.094 kB / 333 MB, free: 12.29 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.296e-05/0.2643, allocations: 6.344 kB / 333 MB, free: 12.29 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.936e-06/0.2643, allocations: 4.938 kB / 333 MB, free: 12.29 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003038/0.2646, allocations: 149.7 kB / 333.2 MB, free: 12.14 MB / 270.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.001361/0.266, allocations: 0.8282 MB / 334 MB, free: 11.25 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003939/0.2664, allocations: 191.1 kB / 334.2 MB, free: 11.05 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001527/0.2665, allocations: 76.83 kB / 334.3 MB, free: 10.97 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.098e-05/0.2666, allocations: 4 kB / 334.3 MB, free: 10.97 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003381/0.2669, allocations: 143.2 kB / 334.4 MB, free: 10.82 MB / 270.1 MB Notification: Performance of pre-optimization done (n=23): time 1.713e-06/0.2669, allocations: 0 / 334.4 MB, free: 10.82 MB / 270.1 MB Notification: Performance of matching and sorting (n=23): time 0.0009088/0.2678, allocations: 395 kB / 334.8 MB, free: 10.4 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001867/0.268, allocations: 324.2 kB / 335.1 MB, free: 10.01 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004622/0.2685, allocations: 433.6 kB / 335.6 MB, free: 9.582 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 3.1e-05/0.2686, allocations: 33.7 kB / 335.6 MB, free: 9.543 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001627/0.2687, allocations: 204.2 kB / 335.8 MB, free: 9.34 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.495e-05/0.2688, allocations: 82.89 kB / 335.9 MB, free: 9.258 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.483e-05/0.2689, allocations: 49.7 kB / 335.9 MB, free: 9.203 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001981/0.2691, allocations: 354.8 kB / 336.3 MB, free: 8.848 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001312/0.2692, allocations: 67.91 kB / 336.3 MB, free: 8.781 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002119/0.2695, allocations: 172 kB / 336.5 MB, free: 8.57 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002763/0.2697, allocations: 175.2 kB / 336.7 MB, free: 8.387 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.967e-06/0.2698, allocations: 7.938 kB / 336.7 MB, free: 8.379 MB / 270.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0004359/0.2702, allocations: 269.9 kB / 336.9 MB, free: 8.105 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.833e-05/0.2702, allocations: 4 kB / 336.9 MB, free: 8.102 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.603e-06/0.2702, allocations: 0 / 336.9 MB, free: 8.102 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000167/0.2704, allocations: 40.77 kB / 337 MB, free: 8.059 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002022/0.2706, allocations: 43.98 kB / 337 MB, free: 8.016 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001502/0.2721, allocations: 1.586 MB / 338.6 MB, free: 6.281 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000214/0.2724, allocations: 23.75 kB / 338.6 MB, free: 6.258 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.528e-05/0.2724, allocations: 4 kB / 338.6 MB, free: 6.254 MB / 270.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: 5 ($PRE.combiTimeTable.nextTimeEvent,$whenCondition1,combiTimeTable.nextTimeEventScaled,$PRE.combiTimeTable.nextTimeEventScaled,combiTimeTable.nextTimeEvent) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 26 * 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 {(3,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0001896/0.2726, allocations: 170 kB / 338.8 MB, free: 6.078 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.65e-05/0.2727, allocations: 43.52 kB / 338.8 MB, free: 6.035 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.973e-05/0.2727, allocations: 47.58 kB / 338.9 MB, free: 5.984 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.377e-06/0.2728, allocations: 3.938 kB / 338.9 MB, free: 5.98 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.967e-06/0.2728, allocations: 8 kB / 338.9 MB, free: 5.973 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005306/0.2733, allocations: 0.5796 MB / 339.5 MB, free: 5.289 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008728/0.2742, allocations: 0.6961 MB / 340.2 MB, free: 4.531 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.567e-06/0.2742, allocations: 96 / 340.2 MB, free: 4.531 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002037/0.2744, allocations: 55.84 kB / 340.2 MB, free: 4.477 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.478e-06/0.2744, allocations: 4 kB / 340.2 MB, free: 4.473 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.737e-05/0.2744, allocations: 4 kB / 340.2 MB, free: 4.469 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.2745, allocations: 0 / 340.2 MB, free: 4.469 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.71e-07/0.2745, allocations: 4 kB / 340.2 MB, free: 4.465 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005906/0.2751, allocations: 402.8 kB / 340.6 MB, free: 4.055 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001392/0.2752, allocations: 136.5 kB / 340.8 MB, free: 3.902 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.388e-05/0.2753, allocations: 8 kB / 340.8 MB, free: 3.895 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002081/0.2755, allocations: 19.98 kB / 340.8 MB, free: 3.875 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.734e-05/0.2755, allocations: 11.98 kB / 340.8 MB, free: 3.863 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.244e-05/0.2756, allocations: 4 kB / 340.8 MB, free: 3.859 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.000313/0.2759, allocations: 315.1 kB / 341.1 MB, free: 3.555 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2759, allocations: 0 / 341.1 MB, free: 3.555 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0003984/0.2763, allocations: 91.91 kB / 341.2 MB, free: 3.465 MB / 270.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (openTank.m,openTank.H) * Number of discrete variables: 3 ($whenCondition1,combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled) * Number of discrete states: 2 (combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (23): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009737/0.2773, allocations: 425.9 kB / 341.6 MB, free: 3.047 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0006116/0.2779, allocations: 310.6 kB / 341.9 MB, free: 2.73 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 4.809e-06/0.2779, allocations: 4 kB / 341.9 MB, free: 2.727 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001548/0.2781, allocations: 92.31 kB / 342 MB, free: 2.637 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005911/0.2787, allocations: 109.9 kB / 342.1 MB, free: 2.527 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001408/0.2801, allocations: 0.785 MB / 342.9 MB, free: 1.715 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004216/0.2805, allocations: 0.7958 MB / 343.7 MB, free: 0.8945 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 0.0001592/0.2807, allocations: 42.95 kB / 343.8 MB, free: 0.8516 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.922e-05/0.2808, allocations: 39.42 kB / 343.8 MB, free: 0.8125 MB / 270.1 MB Notification: Performance of SimCode: time 2.81e-07/0.2808, allocations: 0 / 343.8 MB, free: 0.8125 MB / 270.1 MB Notification: Performance of Templates: time 0.01167/0.2925, allocations: 6.098 MB / 349.9 MB, free: 10.7 MB / 286.1 MB make -j1 -f Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.makefile (rm -f Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe ; mkfifo Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe >> ../files/Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.sim & ./Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe 2>&1)