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.008317/0.008317, allocations: 102.7 kB / 15.73 MB, free: 6.488 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.001247/0.001247, allocations: 195.2 kB / 16.68 MB, free: 6.375 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.587/1.587, allocations: 205.1 MB / 222.6 MB, free: 4.52 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.001291/0.001291, allocations: 54.67 kB / 326.5 MB, free: 14.34 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1143/0.1156, allocations: 46.61 MB / 373.1 MB, free: 1.352 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank): time 0.00529/0.121, allocations: 2.843 MB / 376 MB, free: 14.49 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002106/0.1231, allocations: 1.197 MB / 377.2 MB, free: 13.28 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001733/0.1233, allocations: 7.938 kB / 377.2 MB, free: 13.27 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005819/0.1239, allocations: 179.1 kB / 377.4 MB, free: 13.1 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.0005337/0.1245, allocations: 202.8 kB / 377.6 MB, free: 12.9 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004053/0.1249, allocations: 143.6 kB / 377.7 MB, free: 12.76 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007788/0.1257, allocations: 446 kB / 378.1 MB, free: 12.32 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002674/0.126, allocations: 107.5 kB / 378.2 MB, free: 12.21 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002415/0.1262, allocations: 187.3 kB / 378.4 MB, free: 12.03 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003071/0.1265, allocations: 211.1 kB / 378.6 MB, free: 11.82 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.459e-05/0.1266, allocations: 32 kB / 378.7 MB, free: 11.79 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000154/0.1267, allocations: 71.92 kB / 378.7 MB, free: 11.72 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001196/0.1269, allocations: 83.75 kB / 378.8 MB, free: 11.64 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00023/0.1271, allocations: 202.9 kB / 379 MB, free: 11.44 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000622/0.1277, allocations: 470.4 kB / 379.5 MB, free: 10.98 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.05e-06/0.1278, allocations: 0 / 379.5 MB, free: 10.98 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.485e-06/0.1278, allocations: 0 / 379.5 MB, free: 10.98 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.669e-05/0.1278, allocations: 0 / 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.001255/0.1291, allocations: 0.7008 MB / 380.2 MB, free: 10.23 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.278e-05/0.1291, allocations: 8.031 kB / 380.2 MB, free: 10.22 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001112/0.1292, allocations: 48.38 kB / 380.2 MB, free: 10.18 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000536/0.1298, allocations: 342.7 kB / 380.6 MB, free: 9.801 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.865e-05/0.1298, allocations: 16.8 kB / 380.6 MB, free: 9.785 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.515e-05/0.1299, allocations: 32.06 kB / 380.6 MB, free: 9.754 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004836/0.1304, allocations: 285.5 kB / 380.9 MB, free: 9.434 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.83e-05/0.1304, allocations: 8 kB / 380.9 MB, free: 9.426 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.764e-05/0.1304, allocations: 4 kB / 380.9 MB, free: 9.422 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.041e-05/0.1304, allocations: 8 kB / 380.9 MB, free: 9.414 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003881/0.1308, allocations: 145.7 kB / 381.1 MB, free: 9.27 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.001365/0.1322, allocations: 0.8241 MB / 381.9 MB, free: 8.379 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000394/0.1326, allocations: 191.1 kB / 382.1 MB, free: 8.184 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002239/0.1329, allocations: 76.84 kB / 382.1 MB, free: 8.105 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.909e-05/0.1329, allocations: 7.984 kB / 382.2 MB, free: 8.098 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000253/0.1332, allocations: 147.1 kB / 382.3 MB, free: 7.941 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 2.084e-06/0.1332, allocations: 0 / 382.3 MB, free: 7.941 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.00084/0.134, allocations: 398.9 kB / 382.7 MB, free: 7.523 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001587/0.1342, allocations: 316.4 kB / 383 MB, free: 7.141 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000485/0.1347, allocations: 429.7 kB / 383.4 MB, free: 6.711 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.089e-05/0.1347, allocations: 29.7 kB / 383.4 MB, free: 6.676 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001529/0.1349, allocations: 216.1 kB / 383.7 MB, free: 6.461 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.401e-05/0.1349, allocations: 78.84 kB / 383.7 MB, free: 6.383 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.586e-05/0.135, allocations: 57.7 kB / 383.8 MB, free: 6.32 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001669/0.1352, allocations: 350.8 kB / 384.1 MB, free: 5.969 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001397/0.1354, allocations: 59.97 kB / 384.2 MB, free: 5.91 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002334/0.1356, allocations: 175.9 kB / 384.4 MB, free: 5.695 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003056/0.1359, allocations: 175.2 kB / 384.5 MB, free: 5.512 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.34e-06/0.1359, allocations: 3.938 kB / 384.5 MB, free: 5.508 MB / 318.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.000456/0.1364, allocations: 277.9 kB / 384.8 MB, free: 5.227 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.028e-05/0.1364, allocations: 5.094 kB / 384.8 MB, free: 5.223 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.477e-06/0.1364, allocations: 4 kB / 384.8 MB, free: 5.219 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001404/0.1366, allocations: 32.84 kB / 384.8 MB, free: 5.184 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002104/0.1368, allocations: 51.91 kB / 384.9 MB, free: 5.133 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001642/0.1385, allocations: 1.57 MB / 386.5 MB, free: 3.422 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002089/0.1387, allocations: 27.81 kB / 386.5 MB, free: 3.395 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.75e-05/0.1387, allocations: 12 kB / 386.5 MB, free: 3.383 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.0002252/0.1389, allocations: 165.8 kB / 386.7 MB, free: 3.211 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.898e-05/0.139, allocations: 39.53 kB / 386.7 MB, free: 3.172 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.918e-05/0.1391, allocations: 39.59 kB / 386.7 MB, free: 3.129 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.189e-06/0.1391, allocations: 7.938 kB / 386.8 MB, free: 3.121 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.635e-06/0.1391, allocations: 0 / 386.8 MB, free: 3.121 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006006/0.1397, allocations: 0.5827 MB / 387.3 MB, free: 2.434 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009353/0.1407, allocations: 0.7088 MB / 388 MB, free: 1.66 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.1407, allocations: 0 / 388 MB, free: 1.66 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001965/0.1409, allocations: 43.92 kB / 388.1 MB, free: 1.617 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.394e-06/0.1409, allocations: 0 / 388.1 MB, free: 1.617 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.412e-05/0.1409, allocations: 11.98 kB / 388.1 MB, free: 1.605 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.1409, allocations: 0 / 388.1 MB, free: 1.605 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.1409, allocations: 3.984 kB / 388.1 MB, free: 1.602 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005446/0.1415, allocations: 402.9 kB / 388.5 MB, free: 1.191 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000146/0.1416, allocations: 144.6 kB / 388.6 MB, free: 1.031 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.744e-05/0.1417, allocations: 4 kB / 388.6 MB, free: 1.027 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002042/0.1419, allocations: 16.23 kB / 388.7 MB, free: 1.012 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.736e-05/0.142, allocations: 15.91 kB / 388.7 MB, free: 0.9961 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.249e-05/0.142, allocations: 8 kB / 388.7 MB, free: 0.9883 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003128/0.1423, allocations: 319.2 kB / 389 MB, free: 0.6758 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.1423, allocations: 3.938 kB / 389 MB, free: 0.6719 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003774/0.1427, allocations: 84.06 kB / 389.1 MB, free: 0.5898 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.0009296/0.1436, allocations: 412.4 kB / 389.5 MB, free: 180 kB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0006114/0.1443, allocations: 326.4 kB / 389.8 MB, free: 15.84 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.1443, allocations: 4 kB / 389.8 MB, free: 15.84 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001616/0.1444, allocations: 75.92 kB / 389.9 MB, free: 15.77 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005657/0.145, allocations: 105.5 kB / 390 MB, free: 15.66 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001455/0.1465, allocations: 0.7838 MB / 390.8 MB, free: 14.86 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004065/0.1469, allocations: 0.8037 MB / 391.6 MB, free: 14.03 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001631/0.1471, allocations: 54.94 kB / 391.6 MB, free: 13.97 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.625e-05/0.1472, allocations: 27.44 kB / 391.6 MB, free: 13.95 MB / 334.1 MB Notification: Performance of SimCode: time 3e-07/0.1472, allocations: 3.938 kB / 391.7 MB, free: 13.94 MB / 334.1 MB Notification: Performance of Templates: time 0.01159/0.1588, allocations: 6.133 MB / 397.8 MB, free: 7.797 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)