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.0076/0.0076, allocations: 97.36 kB / 15.73 MB, free: 6.035 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.001719/0.001719, allocations: 201.7 kB / 16.68 MB, free: 5.961 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.579/1.579, allocations: 205.1 MB / 222.5 MB, free: 4.516 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.002061/0.002061, allocations: 46.31 kB / 326.5 MB, free: 14.42 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1376/0.1397, allocations: 46.63 MB / 373.2 MB, free: 1.34 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank): time 0.004575/0.1443, allocations: 2.836 MB / 376 MB, free: 14.48 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00198/0.1464, allocations: 1.189 MB / 377.2 MB, free: 13.29 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001652/0.1465, allocations: 7.938 kB / 377.2 MB, free: 13.28 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005501/0.1471, allocations: 171.1 kB / 377.4 MB, free: 13.11 MB / 318.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.0004739/0.1476, allocations: 210.8 kB / 377.6 MB, free: 12.9 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003887/0.148, allocations: 147.7 kB / 377.7 MB, free: 12.76 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000565/0.1486, allocations: 449.9 kB / 378.1 MB, free: 12.32 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002312/0.1488, allocations: 111.4 kB / 378.3 MB, free: 12.21 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002086/0.149, allocations: 183.3 kB / 378.4 MB, free: 12.03 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002487/0.1493, allocations: 203.2 kB / 378.6 MB, free: 11.83 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.469e-05/0.1493, allocations: 32 kB / 378.7 MB, free: 11.8 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002057/0.1496, allocations: 75.86 kB / 378.7 MB, free: 11.72 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001094/0.1497, allocations: 79.73 kB / 378.8 MB, free: 11.64 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000201/0.1499, allocations: 198.9 kB / 379 MB, free: 11.45 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006224/0.1505, allocations: 486 kB / 379.5 MB, free: 10.97 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.1505, allocations: 0 / 379.5 MB, free: 10.97 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.1505, allocations: 4 kB / 379.5 MB, free: 10.97 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.245e-06/0.1505, allocations: 0 / 379.5 MB, free: 10.97 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: 47 * Number of variables: 47 Notification: Performance of Generate backend data structure: time 0.001274/0.1518, allocations: 0.712 MB / 380.2 MB, free: 10.21 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.712e-05/0.1519, allocations: 8.031 kB / 380.2 MB, free: 10.2 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001121/0.152, allocations: 52.59 kB / 380.3 MB, free: 10.15 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005935/0.1526, allocations: 354.9 kB / 380.6 MB, free: 9.762 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.219e-05/0.1527, allocations: 16.81 kB / 380.6 MB, free: 9.746 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.684e-05/0.1527, allocations: 20.12 kB / 380.6 MB, free: 9.727 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005007/0.1532, allocations: 293.5 kB / 380.9 MB, free: 9.398 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.655e-05/0.1532, allocations: 0 / 380.9 MB, free: 9.398 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.128e-05/0.1533, allocations: 15.98 kB / 380.9 MB, free: 9.383 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.274e-06/0.1533, allocations: 4 kB / 380.9 MB, free: 9.379 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002873/0.1536, allocations: 149.7 kB / 381.1 MB, free: 9.23 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.001395/0.155, allocations: 0.8244 MB / 381.9 MB, free: 8.34 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003932/0.1554, allocations: 183.1 kB / 382.1 MB, free: 8.152 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002028/0.1556, allocations: 76.83 kB / 382.2 MB, free: 8.074 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.319e-05/0.1556, allocations: 7.984 kB / 382.2 MB, free: 8.066 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002528/0.1559, allocations: 139.1 kB / 382.3 MB, free: 7.918 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 2.024e-06/0.1559, allocations: 0 / 382.3 MB, free: 7.918 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008574/0.1568, allocations: 403.1 kB / 382.7 MB, free: 7.496 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001637/0.157, allocations: 324.4 kB / 383 MB, free: 7.105 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004469/0.1574, allocations: 433.6 kB / 383.4 MB, free: 6.672 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.095e-05/0.1575, allocations: 33.7 kB / 383.5 MB, free: 6.633 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000164/0.1576, allocations: 204.3 kB / 383.7 MB, free: 6.43 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.074e-05/0.1577, allocations: 83.27 kB / 383.8 MB, free: 6.348 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.53e-05/0.1578, allocations: 61.7 kB / 383.8 MB, free: 6.281 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001761/0.158, allocations: 346.8 kB / 384.2 MB, free: 5.934 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001323/0.1581, allocations: 63.97 kB / 384.2 MB, free: 5.871 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002294/0.1584, allocations: 179.9 kB / 384.4 MB, free: 5.652 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002885/0.1587, allocations: 171.3 kB / 384.6 MB, free: 5.473 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.52e-06/0.1587, allocations: 3.938 kB / 384.6 MB, free: 5.469 MB / 318.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0004693/0.1592, allocations: 282 kB / 384.8 MB, free: 5.184 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.952e-05/0.1592, allocations: 4 kB / 384.8 MB, free: 5.18 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.558e-06/0.1592, allocations: 0 / 384.8 MB, free: 5.18 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001517/0.1594, allocations: 32.84 kB / 384.9 MB, free: 5.145 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002016/0.1596, allocations: 60 kB / 384.9 MB, free: 5.086 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001748/0.1613, allocations: 1.57 MB / 386.5 MB, free: 3.375 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002147/0.1616, allocations: 27.88 kB / 386.5 MB, free: 3.348 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.069e-05/0.1616, allocations: 12 kB / 386.5 MB, free: 3.336 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: 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.000235/0.1618, allocations: 165.8 kB / 386.7 MB, free: 3.164 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.515e-05/0.1619, allocations: 39.77 kB / 386.8 MB, free: 3.125 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.583e-05/0.162, allocations: 39.59 kB / 386.8 MB, free: 3.082 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.45e-06/0.162, allocations: 7.938 kB / 386.8 MB, free: 3.074 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.507e-06/0.162, allocations: 0 / 386.8 MB, free: 3.074 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005658/0.1626, allocations: 0.5789 MB / 387.4 MB, free: 2.391 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008902/0.1635, allocations: 0.7127 MB / 388.1 MB, free: 1.613 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.01e-06/0.1635, allocations: 3.984 kB / 388.1 MB, free: 1.609 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001955/0.1637, allocations: 43.92 kB / 388.1 MB, free: 1.566 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.344e-06/0.1637, allocations: 0 / 388.1 MB, free: 1.566 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.069e-05/0.1637, allocations: 4 kB / 388.1 MB, free: 1.562 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.539e-06/0.1637, allocations: 7.984 kB / 388.1 MB, free: 1.555 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.866e-06/0.1637, allocations: 3.984 kB / 388.2 MB, free: 1.551 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005435/0.1643, allocations: 403.1 kB / 388.5 MB, free: 1.141 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001757/0.1645, allocations: 132.8 kB / 388.7 MB, free: 0.9922 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.766e-05/0.1645, allocations: 11.98 kB / 388.7 MB, free: 0.9805 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002045/0.1647, allocations: 8 kB / 388.7 MB, free: 0.9727 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.635e-05/0.1648, allocations: 15.98 kB / 388.7 MB, free: 0.957 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.582e-05/0.1648, allocations: 11.98 kB / 388.7 MB, free: 0.9453 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003058/0.1651, allocations: 319.1 kB / 389 MB, free: 0.6328 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.313e-06/0.1652, allocations: 0 / 389 MB, free: 0.6328 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003907/0.1655, allocations: 99.83 kB / 389.1 MB, free: 0.5352 MB / 318.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.001052/0.1666, allocations: 412.5 kB / 389.5 MB, free: 124 kB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0006387/0.1673, allocations: 306.5 kB / 389.8 MB, free: 15.81 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.467e-06/0.1673, allocations: 192 / 389.8 MB, free: 15.81 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001571/0.1674, allocations: 95.84 kB / 389.9 MB, free: 15.71 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000556/0.168, allocations: 101.3 kB / 390 MB, free: 15.62 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001447/0.1695, allocations: 0.7944 MB / 390.8 MB, free: 14.8 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006143/0.1701, allocations: 0.796 MB / 391.6 MB, free: 13.98 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001424/0.1702, allocations: 50.92 kB / 391.7 MB, free: 13.93 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.463e-05/0.1703, allocations: 39.44 kB / 391.7 MB, free: 13.89 MB / 334.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1703, allocations: 3.938 kB / 391.7 MB, free: 13.88 MB / 334.1 MB Notification: Performance of Templates: time 0.0123/0.1826, allocations: 6.133 MB / 397.8 MB, free: 7.738 MB / 334.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)