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.01162/0.01162, allocations: 102.3 kB / 15.73 MB, free: 5.578 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.001509/0.001509, allocations: 195.4 kB / 16.67 MB, free: 5.52 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.507/1.507, allocations: 205.1 MB / 222.5 MB, free: 12.26 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.001168/0.001168, allocations: 47.92 kB / 326.5 MB, free: 3.332 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1191/0.1203, allocations: 46.61 MB / 373.1 MB, free: 4.609 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank): time 0.004823/0.1252, allocations: 2.846 MB / 376 MB, free: 1.746 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002381/0.1276, allocations: 1.181 MB / 377.2 MB, free: 0.5547 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002257/0.1279, allocations: 4 kB / 377.2 MB, free: 0.5508 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006265/0.1285, allocations: 183.1 kB / 377.3 MB, free: 380 kB / 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.0005796/0.1291, allocations: 206.8 kB / 377.6 MB, free: 172 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004695/0.1296, allocations: 147.6 kB / 377.7 MB, free: 24 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.2659/0.3956, allocations: 448.3 kB / 378.1 MB, free: 9.91 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003509/0.3959, allocations: 113.9 kB / 378.2 MB, free: 9.898 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005427/0.3965, allocations: 177 kB / 378.4 MB, free: 9.879 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005182/0.397, allocations: 214.6 kB / 378.6 MB, free: 9.836 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001242/0.3972, allocations: 30.72 kB / 378.7 MB, free: 9.836 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003139/0.3975, allocations: 66.28 kB / 378.7 MB, free: 9.836 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001388/0.3977, allocations: 85 kB / 378.8 MB, free: 9.82 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003808/0.3981, allocations: 204.4 kB / 379 MB, free: 9.762 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001023/0.3991, allocations: 479.4 kB / 379.5 MB, free: 9.699 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.992e-06/0.3991, allocations: 0.6094 kB / 379.5 MB, free: 9.699 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.3991, allocations: 1.375 kB / 379.5 MB, free: 9.699 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.63e-05/0.3991, allocations: 0 / 379.5 MB, free: 9.699 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.001721/0.4009, allocations: 0.6932 MB / 380.2 MB, free: 9.188 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.121e-05/0.4009, allocations: 12 kB / 380.2 MB, free: 9.188 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002152/0.4012, allocations: 49.28 kB / 380.2 MB, free: 9.164 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008919/0.4021, allocations: 341.3 kB / 380.6 MB, free: 8.914 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.944e-05/0.4021, allocations: 15.73 kB / 380.6 MB, free: 8.914 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.37e-05/0.4022, allocations: 19.84 kB / 380.6 MB, free: 8.914 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007558/0.403, allocations: 300.1 kB / 380.9 MB, free: 8.785 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.354e-05/0.403, allocations: 0 / 380.9 MB, free: 8.785 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.853e-05/0.403, allocations: 10.53 kB / 380.9 MB, free: 8.785 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.278e-05/0.4031, allocations: 4.594 kB / 380.9 MB, free: 8.785 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003926/0.4035, allocations: 152.5 kB / 381.1 MB, free: 8.785 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.001764/0.4052, allocations: 0.8249 MB / 381.9 MB, free: 8.383 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004534/0.4057, allocations: 190.2 kB / 382.1 MB, free: 8.355 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001624/0.4059, allocations: 76.22 kB / 382.1 MB, free: 8.348 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.437e-05/0.4059, allocations: 9.297 kB / 382.1 MB, free: 8.344 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003272/0.4063, allocations: 140.1 kB / 382.3 MB, free: 8.289 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 1.914e-06/0.4063, allocations: 0 / 382.3 MB, free: 8.289 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.00109/0.4074, allocations: 405.8 kB / 382.7 MB, free: 8.129 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001598/0.4075, allocations: 313.8 kB / 383 MB, free: 7.754 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007088/0.4083, allocations: 433.1 kB / 383.4 MB, free: 7.641 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.066e-05/0.4083, allocations: 36.59 kB / 383.4 MB, free: 7.605 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001969/0.4085, allocations: 207.9 kB / 383.6 MB, free: 7.492 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.354e-05/0.4086, allocations: 75.55 kB / 383.7 MB, free: 7.434 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001369/0.4088, allocations: 56.44 kB / 383.8 MB, free: 7.398 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001539/0.4089, allocations: 348.8 kB / 384.1 MB, free: 7.07 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001736/0.4091, allocations: 60.16 kB / 384.2 MB, free: 7.051 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002628/0.4094, allocations: 174.8 kB / 384.3 MB, free: 6.902 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003231/0.4097, allocations: 183.2 kB / 384.5 MB, free: 6.797 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.155e-06/0.4097, allocations: 0 / 384.5 MB, free: 6.797 MB / 318.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005573/0.4103, allocations: 271.7 kB / 384.8 MB, free: 6.668 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.221e-05/0.4103, allocations: 5.625 kB / 384.8 MB, free: 6.668 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.576e-06/0.4103, allocations: 2.047 kB / 384.8 MB, free: 6.668 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001483/0.4105, allocations: 34.78 kB / 384.8 MB, free: 6.652 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002168/0.4107, allocations: 50.03 kB / 384.9 MB, free: 6.652 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001665/0.4124, allocations: 1.575 MB / 386.5 MB, free: 5.156 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002909/0.4127, allocations: 28.72 kB / 386.5 MB, free: 5.141 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.124e-05/0.4127, allocations: 7.188 kB / 386.5 MB, free: 5.141 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.0002335/0.413, allocations: 165.7 kB / 386.7 MB, free: 5.004 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.357e-05/0.4131, allocations: 43.03 kB / 386.7 MB, free: 4.984 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.801e-05/0.4132, allocations: 43.64 kB / 386.7 MB, free: 4.961 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.631e-06/0.4132, allocations: 2.562 kB / 386.7 MB, free: 4.961 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.907e-06/0.4132, allocations: 3.938 kB / 386.7 MB, free: 4.957 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005276/0.4137, allocations: 0.5829 MB / 387.3 MB, free: 4.371 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00119/0.4149, allocations: 0.702 MB / 388 MB, free: 3.887 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.267e-06/0.415, allocations: 3.562 kB / 388 MB, free: 3.887 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002281/0.4152, allocations: 46.16 kB / 388.1 MB, free: 3.887 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.561e-06/0.4152, allocations: 1.469 kB / 388.1 MB, free: 3.887 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.683e-05/0.4152, allocations: 6.797 kB / 388.1 MB, free: 3.883 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.843e-06/0.4152, allocations: 1.5 kB / 388.1 MB, free: 3.883 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.4153, allocations: 3.938 kB / 388.1 MB, free: 3.879 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000644/0.4159, allocations: 408.2 kB / 388.5 MB, free: 3.633 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001631/0.4161, allocations: 139.3 kB / 388.6 MB, free: 3.5 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.844e-05/0.4161, allocations: 7.812 kB / 388.6 MB, free: 3.496 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000216/0.4164, allocations: 12 kB / 388.6 MB, free: 3.492 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.335e-05/0.4164, allocations: 15.44 kB / 388.7 MB, free: 3.492 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.064e-05/0.4165, allocations: 11.47 kB / 388.7 MB, free: 3.488 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0004069/0.4169, allocations: 312.3 kB / 389 MB, free: 3.34 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4169, allocations: 4.062 kB / 389 MB, free: 3.336 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004687/0.4174, allocations: 84.44 kB / 389.1 MB, free: 3.328 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.001019/0.4184, allocations: 413.2 kB / 389.5 MB, free: 3.004 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0006293/0.419, allocations: 323.2 kB / 389.8 MB, free: 2.824 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.58e-06/0.4191, allocations: 1.125 kB / 389.8 MB, free: 2.824 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001761/0.4192, allocations: 83.06 kB / 389.9 MB, free: 2.801 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006174/0.4199, allocations: 115.5 kB / 390 MB, free: 2.746 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001541/0.4214, allocations: 0.7797 MB / 390.8 MB, free: 2.301 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003128/0.4217, allocations: 0.7991 MB / 391.6 MB, free: 1.594 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002198/0.422, allocations: 45.64 kB / 391.6 MB, free: 1.582 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.902e-05/0.4221, allocations: 30.09 kB / 391.6 MB, free: 1.578 MB / 318.1 MB Notification: Performance of SimCode: time 2.2e-07/0.4221, allocations: 5.438 kB / 391.6 MB, free: 1.574 MB / 318.1 MB Notification: Performance of Templates: time 0.0162/0.4383, allocations: 6.146 MB / 397.8 MB, free: 464 kB / 318.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)