Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.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.1_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank") translateModel(Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.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.005946/0.005946, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.001082/0.001082, allocations: 201.3 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.518/1.518, allocations: 205.1 MB / 222.6 MB, free: 4.555 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.001217/0.001217, allocations: 49.56 kB / 326.5 MB, free: 14.29 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1247/0.126, allocations: 46.63 MB / 373.2 MB, free: 1.336 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank): time 0.004422/0.1304, allocations: 2.836 MB / 376 MB, free: 14.48 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001985/0.1325, allocations: 1.185 MB / 377.2 MB, free: 13.29 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001651/0.1326, allocations: 7.938 kB / 377.2 MB, free: 13.28 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005331/0.1332, allocations: 175.2 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.1337, allocations: 206.8 kB / 377.6 MB, free: 12.9 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003755/0.1341, allocations: 147.6 kB / 377.7 MB, free: 12.76 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005082/0.1346, allocations: 446 kB / 378.1 MB, free: 12.32 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002078/0.1348, allocations: 107.4 kB / 378.2 MB, free: 12.21 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002249/0.135, allocations: 179.3 kB / 378.4 MB, free: 12.04 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002788/0.1353, allocations: 211.2 kB / 378.6 MB, free: 11.83 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.932e-05/0.1354, allocations: 35.94 kB / 378.7 MB, free: 11.8 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001542/0.1355, allocations: 67.98 kB / 378.7 MB, free: 11.73 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001165/0.1357, allocations: 87.67 kB / 378.8 MB, free: 11.64 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002064/0.1359, allocations: 198.9 kB / 379 MB, free: 11.45 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005763/0.1365, allocations: 474.1 kB / 379.5 MB, free: 10.98 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.744e-06/0.1365, allocations: 0 / 379.5 MB, free: 10.98 MB / 318.1 MB Notification: Performance of FrontEnd: time 5.34e-06/0.1365, allocations: 0 / 379.5 MB, free: 10.98 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.455e-05/0.1365, allocations: 3.938 kB / 379.5 MB, free: 10.98 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.001136/0.1377, allocations: 0.7198 MB / 380.2 MB, free: 10.21 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.671e-05/0.1377, allocations: 8.031 kB / 380.2 MB, free: 10.2 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001076/0.1378, allocations: 48.66 kB / 380.2 MB, free: 10.16 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005826/0.1384, allocations: 350.9 kB / 380.6 MB, free: 9.773 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.494e-05/0.1385, allocations: 12.81 kB / 380.6 MB, free: 9.762 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.069e-05/0.1385, allocations: 24.12 kB / 380.6 MB, free: 9.738 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005293/0.139, allocations: 289.5 kB / 380.9 MB, free: 9.414 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.671e-05/0.1391, allocations: 0 / 380.9 MB, free: 9.414 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.925e-05/0.1391, allocations: 12 kB / 380.9 MB, free: 9.402 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.226e-05/0.1391, allocations: 7.984 kB / 380.9 MB, free: 9.395 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003122/0.1394, allocations: 153.6 kB / 381.1 MB, free: 9.242 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.001461/0.1409, allocations: 0.8205 MB / 381.9 MB, free: 8.355 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004212/0.1413, allocations: 187.1 kB / 382.1 MB, free: 8.164 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001619/0.1415, allocations: 84.77 kB / 382.2 MB, free: 8.078 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.509e-05/0.1416, allocations: 4 kB / 382.2 MB, free: 8.074 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002999/0.1419, allocations: 139.1 kB / 382.3 MB, free: 7.926 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 2.074e-06/0.1419, allocations: 4 kB / 382.3 MB, free: 7.922 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.0009334/0.1428, allocations: 399.2 kB / 382.7 MB, free: 7.504 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002091/0.143, allocations: 316.4 kB / 383 MB, free: 7.121 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004745/0.1435, allocations: 437.5 kB / 383.4 MB, free: 6.684 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.876e-05/0.1436, allocations: 37.64 kB / 383.5 MB, free: 6.641 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001688/0.1437, allocations: 208.4 kB / 383.7 MB, free: 6.434 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.012e-05/0.1438, allocations: 87.27 kB / 383.8 MB, free: 6.348 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001151/0.1439, allocations: 61.7 kB / 383.8 MB, free: 6.281 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000166/0.1441, allocations: 346.8 kB / 384.2 MB, free: 5.934 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001315/0.1443, allocations: 59.97 kB / 384.2 MB, free: 5.875 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002406/0.1445, allocations: 176 kB / 384.4 MB, free: 5.66 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002958/0.1448, allocations: 175.2 kB / 384.6 MB, free: 5.477 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.298e-06/0.1448, allocations: 3.938 kB / 384.6 MB, free: 5.473 MB / 318.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0004575/0.1453, allocations: 282 kB / 384.8 MB, free: 5.188 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.924e-05/0.1453, allocations: 4 kB / 384.8 MB, free: 5.184 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.832e-06/0.1453, allocations: 0 / 384.8 MB, free: 5.184 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001631/0.1455, allocations: 32.84 kB / 384.9 MB, free: 5.148 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002042/0.1457, allocations: 51.91 kB / 384.9 MB, free: 5.098 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001658/0.1474, allocations: 1.578 MB / 386.5 MB, free: 3.379 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000233/0.1476, allocations: 27.88 kB / 386.5 MB, free: 3.352 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.09e-05/0.1477, allocations: 12 kB / 386.5 MB, free: 3.34 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.0002621/0.1479, allocations: 161.8 kB / 386.7 MB, free: 3.172 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.682e-05/0.148, allocations: 43.7 kB / 386.7 MB, free: 3.129 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.608e-05/0.1481, allocations: 39.59 kB / 386.8 MB, free: 3.086 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.811e-06/0.1481, allocations: 7.938 kB / 386.8 MB, free: 3.078 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.073e-06/0.1481, allocations: 3.984 kB / 386.8 MB, free: 3.074 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006117/0.1487, allocations: 0.575 MB / 387.4 MB, free: 2.395 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009505/0.1497, allocations: 0.7088 MB / 388.1 MB, free: 1.621 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.1497, allocations: 4 kB / 388.1 MB, free: 1.617 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001946/0.1499, allocations: 39.97 kB / 388.1 MB, free: 1.578 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.976e-06/0.1499, allocations: 4 kB / 388.1 MB, free: 1.574 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.199e-05/0.15, allocations: 8 kB / 388.1 MB, free: 1.566 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.157e-06/0.15, allocations: 4 kB / 388.1 MB, free: 1.562 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.038e-06/0.15, allocations: 0 / 388.1 MB, free: 1.562 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005836/0.1506, allocations: 407.1 kB / 388.5 MB, free: 1.148 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001412/0.1507, allocations: 140.8 kB / 388.7 MB, free: 0.9922 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.576e-05/0.1508, allocations: 8 kB / 388.7 MB, free: 0.9844 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002176/0.151, allocations: 11.98 kB / 388.7 MB, free: 0.9727 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.457e-05/0.1511, allocations: 11.98 kB / 388.7 MB, free: 0.9609 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.905e-05/0.1511, allocations: 11.94 kB / 388.7 MB, free: 0.9492 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003549/0.1515, allocations: 315.1 kB / 389 MB, free: 0.6406 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1515, allocations: 0 / 389 MB, free: 0.6406 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003822/0.1518, allocations: 91.89 kB / 389.1 MB, free: 0.5508 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.0009988/0.1529, allocations: 420.5 kB / 389.5 MB, free: 132 kB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0007962/0.1537, allocations: 318.8 kB / 389.8 MB, free: 15.8 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.22e-06/0.1537, allocations: 0 / 389.8 MB, free: 15.8 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001828/0.1539, allocations: 79.91 kB / 389.9 MB, free: 15.72 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000599/0.1545, allocations: 105.5 kB / 390 MB, free: 15.62 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001469/0.156, allocations: 0.8022 MB / 390.8 MB, free: 14.79 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00041/0.1564, allocations: 0.796 MB / 391.6 MB, free: 13.97 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001697/0.1566, allocations: 46.94 kB / 391.7 MB, free: 13.93 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.449e-05/0.1566, allocations: 35.38 kB / 391.7 MB, free: 13.89 MB / 334.1 MB Notification: Performance of SimCode: time 4.51e-07/0.1567, allocations: 0 / 391.7 MB, free: 13.89 MB / 334.1 MB Notification: Performance of Templates: time 0.01153/0.1682, allocations: 6.141 MB / 397.8 MB, free: 7.742 MB / 334.1 MB make -j1 -f Modelica_3.1_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.makefile (rm -f Modelica_3.1_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe ; mkfifo Modelica_3.1_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe >> ../files/Modelica_3.1_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.sim & ./Modelica_3.1_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe 2>&1)