Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_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.2_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank") translateModel(Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.001353/0.001353, allocations: 103.4 kB / 16.92 MB, free: 6.145 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.001576/0.001576, allocations: 191.5 kB / 17.85 MB, free: 5.309 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.584/1.584, allocations: 205.1 MB / 223.7 MB, free: 12.3 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.001299/0.001299, allocations: 52.14 kB / 280 MB, free: 3.195 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.104/0.1053, allocations: 46.64 MB / 326.6 MB, free: 4.488 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank): time 0.004486/0.1098, allocations: 2.851 MB / 329.5 MB, free: 1.609 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002034/0.1119, allocations: 1.174 MB / 330.6 MB, free: 436 kB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000209/0.1121, allocations: 7.938 kB / 330.6 MB, free: 428 kB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005339/0.1127, allocations: 183.1 kB / 330.8 MB, free: 244 kB / 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.0004385/0.1132, allocations: 202.8 kB / 331 MB, free: 40 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003963/0.1136, allocations: 143.6 kB / 331.2 MB, free: 15.9 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006216/0.1142, allocations: 454 kB / 331.6 MB, free: 15.45 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002008/0.1144, allocations: 99.48 kB / 331.7 MB, free: 15.36 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001951/0.1146, allocations: 183.3 kB / 331.9 MB, free: 15.18 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002597/0.1149, allocations: 207.2 kB / 332.1 MB, free: 14.98 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.665e-05/0.115, allocations: 28 kB / 332.1 MB, free: 14.95 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000157/0.1151, allocations: 71.97 kB / 332.2 MB, free: 14.88 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001047/0.1152, allocations: 87.64 kB / 332.3 MB, free: 14.79 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001889/0.1154, allocations: 195 kB / 332.5 MB, free: 14.6 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005077/0.1159, allocations: 478.6 kB / 332.9 MB, free: 14.13 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.1159, allocations: 0 / 332.9 MB, free: 14.13 MB / 286.1 MB Notification: Performance of FrontEnd: time 4.649e-06/0.116, allocations: 0 / 332.9 MB, free: 14.13 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.336e-06/0.116, allocations: 11.94 kB / 332.9 MB, free: 14.12 MB / 286.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.0009584/0.1169, allocations: 0.6929 MB / 333.6 MB, free: 13.38 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.665e-05/0.117, allocations: 8.031 kB / 333.6 MB, free: 13.37 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.481e-05/0.1171, allocations: 48.45 kB / 333.7 MB, free: 13.32 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004333/0.1175, allocations: 342.6 kB / 334 MB, free: 12.95 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.342e-05/0.1176, allocations: 16.81 kB / 334 MB, free: 12.93 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.048e-05/0.1176, allocations: 24.12 kB / 334.1 MB, free: 12.91 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004651/0.1181, allocations: 285.5 kB / 334.3 MB, free: 12.59 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.512e-05/0.1181, allocations: 4 kB / 334.3 MB, free: 12.58 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.844e-05/0.1182, allocations: 12 kB / 334.4 MB, free: 12.57 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.564e-06/0.1182, allocations: 4 kB / 334.4 MB, free: 12.57 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000274/0.1185, allocations: 149.6 kB / 334.5 MB, free: 12.42 MB / 286.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.001255/0.1197, allocations: 0.8359 MB / 335.3 MB, free: 11.52 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003818/0.1201, allocations: 187.1 kB / 335.5 MB, free: 11.32 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001496/0.1203, allocations: 84.83 kB / 335.6 MB, free: 11.24 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.763e-05/0.1203, allocations: 4 kB / 335.6 MB, free: 11.23 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000353/0.1207, allocations: 135.2 kB / 335.7 MB, free: 11.09 MB / 286.1 MB Notification: Performance of pre-optimization done (n=23): time 2.124e-06/0.1207, allocations: 0 / 335.7 MB, free: 11.09 MB / 286.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008891/0.1216, allocations: 403.6 kB / 336.1 MB, free: 10.67 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001838/0.1218, allocations: 320.3 kB / 336.4 MB, free: 10.28 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004188/0.1222, allocations: 433.6 kB / 336.9 MB, free: 9.852 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.845e-05/0.1222, allocations: 33.7 kB / 336.9 MB, free: 9.812 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001453/0.1224, allocations: 196.3 kB / 337.1 MB, free: 9.617 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.182e-05/0.1225, allocations: 78.8 kB / 337.2 MB, free: 9.539 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.813e-05/0.1226, allocations: 65.69 kB / 337.2 MB, free: 9.469 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001314/0.1227, allocations: 350.8 kB / 337.6 MB, free: 9.117 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001309/0.1228, allocations: 63.98 kB / 337.6 MB, free: 9.055 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002176/0.1231, allocations: 168 kB / 337.8 MB, free: 8.848 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002968/0.1234, allocations: 179.2 kB / 338 MB, free: 8.66 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.697e-06/0.1234, allocations: 3.938 kB / 338 MB, free: 8.656 MB / 286.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0004585/0.1238, allocations: 269.9 kB / 338.2 MB, free: 8.383 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.188e-05/0.1239, allocations: 11.98 kB / 338.3 MB, free: 8.371 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.2e-06/0.1239, allocations: 4.094 kB / 338.3 MB, free: 8.367 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001397/0.124, allocations: 28.84 kB / 338.3 MB, free: 8.336 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002187/0.1243, allocations: 51.97 kB / 338.3 MB, free: 8.285 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001491/0.1258, allocations: 1.574 MB / 339.9 MB, free: 6.562 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000213/0.126, allocations: 27.75 kB / 339.9 MB, free: 6.535 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.933e-05/0.126, allocations: 12 kB / 340 MB, free: 6.523 MB / 286.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.000194/0.1262, allocations: 165.8 kB / 340.1 MB, free: 6.352 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.984e-05/0.1263, allocations: 39.53 kB / 340.2 MB, free: 6.312 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.861e-05/0.1264, allocations: 47.58 kB / 340.2 MB, free: 6.262 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.206e-06/0.1264, allocations: 3.938 kB / 340.2 MB, free: 6.258 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.805e-06/0.1264, allocations: 0 / 340.2 MB, free: 6.258 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005431/0.1269, allocations: 0.579 MB / 340.8 MB, free: 5.574 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009535/0.1279, allocations: 0.7039 MB / 341.5 MB, free: 4.809 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.395e-06/0.1279, allocations: 3.938 kB / 341.5 MB, free: 4.805 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002051/0.1281, allocations: 47.97 kB / 341.5 MB, free: 4.758 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.394e-06/0.1281, allocations: 3.938 kB / 341.5 MB, free: 4.754 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.325e-05/0.1282, allocations: 8 kB / 341.6 MB, free: 4.746 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.774e-06/0.1282, allocations: 0 / 341.6 MB, free: 4.746 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.1282, allocations: 0 / 341.6 MB, free: 4.746 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005427/0.1287, allocations: 406.7 kB / 341.9 MB, free: 4.332 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001381/0.1289, allocations: 136.6 kB / 342.1 MB, free: 4.18 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.732e-05/0.1289, allocations: 8 kB / 342.1 MB, free: 4.172 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002013/0.1291, allocations: 11.98 kB / 342.1 MB, free: 4.16 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.303e-05/0.1292, allocations: 15.98 kB / 342.1 MB, free: 4.145 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.848e-05/0.1292, allocations: 4.188 kB / 342.1 MB, free: 4.141 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0003876/0.1296, allocations: 311.1 kB / 342.4 MB, free: 3.84 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1297, allocations: 8.062 kB / 342.4 MB, free: 3.832 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.000392/0.1301, allocations: 91.83 kB / 342.5 MB, free: 3.742 MB / 286.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.0009391/0.131, allocations: 426.1 kB / 342.9 MB, free: 3.332 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0005804/0.1316, allocations: 311.2 kB / 343.2 MB, free: 3.016 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 4.388e-06/0.1316, allocations: 7.875 kB / 343.3 MB, free: 3.008 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001479/0.1318, allocations: 87.81 kB / 343.3 MB, free: 2.922 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005256/0.1323, allocations: 109.3 kB / 343.4 MB, free: 2.812 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001427/0.1337, allocations: 0.7878 MB / 344.2 MB, free: 1.996 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000416/0.1342, allocations: 0.8037 MB / 345 MB, free: 1.168 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001678/0.1343, allocations: 46.94 kB / 345.1 MB, free: 1.121 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.123e-05/0.1344, allocations: 35.44 kB / 345.1 MB, free: 1.086 MB / 286.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1344, allocations: 0 / 345.1 MB, free: 1.086 MB / 286.1 MB Notification: Performance of Templates: time 0.01127/0.1457, allocations: 6.09 MB / 351.2 MB, free: 10.98 MB / 302.1 MB make -j1 -f Modelica_3.2.2_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.makefile (rm -f Modelica_3.2.2_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe ; mkfifo Modelica_3.2.2_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe >> ../files/Modelica_3.2.2_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.sim & ./Modelica_3.2.2_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe 2>&1)