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.001169/0.001169, allocations: 112.4 kB / 17.06 MB, free: 5.809 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.001087/0.001087, allocations: 200 kB / 18 MB, free: 4.949 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.565/1.565, allocations: 205.1 MB / 223.9 MB, free: 12.23 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.001344/0.001344, allocations: 55.92 kB / 327.8 MB, free: 3.309 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1028/0.1041, allocations: 46.61 MB / 374.5 MB, free: 4.59 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank): time 0.004928/0.1091, allocations: 2.858 MB / 377.3 MB, free: 1.715 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002457/0.1116, allocations: 1.177 MB / 378.5 MB, free: 0.5273 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003588/0.112, allocations: 0 / 378.5 MB, free: 0.5273 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006954/0.1128, allocations: 187.1 kB / 378.7 MB, free: 352 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.0007832/0.1136, allocations: 206.8 kB / 378.9 MB, free: 144 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.2187/0.3323, allocations: 145.2 kB / 379 MB, free: 9.902 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001057/0.3334, allocations: 450.2 kB / 379.5 MB, free: 9.902 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002899/0.3337, allocations: 104.2 kB / 379.6 MB, free: 9.891 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002778/0.334, allocations: 188.2 kB / 379.7 MB, free: 9.871 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003307/0.3343, allocations: 204.4 kB / 379.9 MB, free: 9.828 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.49e-05/0.3344, allocations: 30.25 kB / 380 MB, free: 9.828 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002155/0.3346, allocations: 74.67 kB / 380 MB, free: 9.828 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001286/0.3348, allocations: 86.72 kB / 380.1 MB, free: 9.812 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002045/0.335, allocations: 191 kB / 380.3 MB, free: 9.754 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000661/0.3356, allocations: 488 kB / 380.8 MB, free: 9.695 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.3356, allocations: 0.5312 kB / 380.8 MB, free: 9.695 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.993e-06/0.3357, allocations: 0.5312 kB / 380.8 MB, free: 9.695 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.52e-05/0.3357, allocations: 0 / 380.8 MB, free: 9.695 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.001055/0.3367, allocations: 0.6986 MB / 381.5 MB, free: 9.188 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.767e-05/0.3368, allocations: 8.469 kB / 381.5 MB, free: 9.188 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001202/0.3369, allocations: 48.45 kB / 381.6 MB, free: 9.164 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004912/0.3374, allocations: 342.2 kB / 381.9 MB, free: 8.914 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.011e-05/0.3375, allocations: 16.22 kB / 381.9 MB, free: 8.914 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.841e-05/0.3375, allocations: 28.45 kB / 381.9 MB, free: 8.914 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005221/0.338, allocations: 293.9 kB / 382.2 MB, free: 8.785 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.649e-05/0.3381, allocations: 0 / 382.2 MB, free: 8.785 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.934e-05/0.3381, allocations: 11.88 kB / 382.2 MB, free: 8.785 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.999e-06/0.3381, allocations: 5.625 kB / 382.2 MB, free: 8.785 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003258/0.3384, allocations: 147.5 kB / 382.4 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.00139/0.3398, allocations: 0.8234 MB / 383.2 MB, free: 8.383 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004149/0.3403, allocations: 186.4 kB / 383.4 MB, free: 8.359 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001471/0.3404, allocations: 80.55 kB / 383.5 MB, free: 8.352 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.546e-05/0.3405, allocations: 7.641 kB / 383.5 MB, free: 8.352 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002471/0.3407, allocations: 141.4 kB / 383.6 MB, free: 8.297 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 1.533e-06/0.3407, allocations: 4 kB / 383.6 MB, free: 8.293 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008571/0.3416, allocations: 408.3 kB / 384 MB, free: 8.133 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001005/0.3417, allocations: 311.5 kB / 384.3 MB, free: 7.758 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004958/0.3422, allocations: 430.9 kB / 384.7 MB, free: 7.645 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.309e-05/0.3422, allocations: 31.48 kB / 384.8 MB, free: 7.613 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001428/0.3424, allocations: 210.7 kB / 385 MB, free: 7.5 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.548e-05/0.3425, allocations: 78.95 kB / 385 MB, free: 7.441 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.843e-05/0.3426, allocations: 56.77 kB / 385.1 MB, free: 7.406 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.887e-05/0.3426, allocations: 349.3 kB / 385.4 MB, free: 7.078 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001394/0.3428, allocations: 59.27 kB / 385.5 MB, free: 7.059 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002112/0.343, allocations: 176 kB / 385.7 MB, free: 6.91 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002829/0.3433, allocations: 175.2 kB / 385.8 MB, free: 6.809 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.3433, allocations: 1.25 kB / 385.8 MB, free: 6.809 MB / 318.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0004284/0.3437, allocations: 277 kB / 386.1 MB, free: 6.676 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.833e-05/0.3438, allocations: 5.656 kB / 386.1 MB, free: 6.676 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.603e-06/0.3438, allocations: 0.5625 kB / 386.1 MB, free: 6.676 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001345/0.3439, allocations: 34.08 kB / 386.2 MB, free: 6.66 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002093/0.3441, allocations: 54.66 kB / 386.2 MB, free: 6.656 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001109/0.3453, allocations: 1.572 MB / 387.8 MB, free: 5.164 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002047/0.3455, allocations: 21.98 kB / 387.8 MB, free: 5.152 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.869e-05/0.3455, allocations: 11.2 kB / 387.8 MB, free: 5.148 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.0001522/0.3457, allocations: 164.9 kB / 388 MB, free: 5.012 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.722e-05/0.3457, allocations: 40.89 kB / 388 MB, free: 4.992 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.482e-05/0.3458, allocations: 43.19 kB / 388.1 MB, free: 4.969 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.166e-06/0.3458, allocations: 2.5 kB / 388.1 MB, free: 4.969 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.16e-06/0.3458, allocations: 5.25 kB / 388.1 MB, free: 4.965 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0003889/0.3462, allocations: 0.5854 MB / 388.6 MB, free: 4.379 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008513/0.3471, allocations: 0.7035 MB / 389.4 MB, free: 3.891 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.585e-06/0.3471, allocations: 0.6562 kB / 389.4 MB, free: 3.891 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001993/0.3473, allocations: 49.45 kB / 389.4 MB, free: 3.887 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.945e-06/0.3473, allocations: 2.031 kB / 389.4 MB, free: 3.887 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.711e-05/0.3473, allocations: 3.453 kB / 389.4 MB, free: 3.887 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.836e-06/0.3473, allocations: 1.531 kB / 389.4 MB, free: 3.887 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.636e-06/0.3474, allocations: 0.6094 kB / 389.4 MB, free: 3.887 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005168/0.3479, allocations: 411.4 kB / 389.8 MB, free: 3.637 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001194/0.348, allocations: 139.5 kB / 389.9 MB, free: 3.504 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.198e-05/0.3481, allocations: 7.406 kB / 390 MB, free: 3.5 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002033/0.3483, allocations: 12.73 kB / 390 MB, free: 3.496 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.283e-05/0.3483, allocations: 13.09 kB / 390 MB, free: 3.496 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.566e-05/0.3484, allocations: 10.42 kB / 390 MB, free: 3.492 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003207/0.3487, allocations: 313.6 kB / 390.3 MB, free: 3.344 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3487, allocations: 0 / 390.3 MB, free: 3.344 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004052/0.3491, allocations: 88.64 kB / 390.4 MB, free: 3.332 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.0008625/0.35, allocations: 421.5 kB / 390.8 MB, free: 3.004 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0005682/0.3506, allocations: 318.9 kB / 391.1 MB, free: 2.824 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.376e-06/0.3506, allocations: 1.25 kB / 391.1 MB, free: 2.824 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001502/0.3507, allocations: 83.08 kB / 391.2 MB, free: 2.805 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005577/0.3513, allocations: 115.6 kB / 391.3 MB, free: 2.75 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001364/0.3527, allocations: 0.7799 MB / 392.1 MB, free: 2.305 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002773/0.353, allocations: 0.7995 MB / 392.9 MB, free: 1.598 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001876/0.3532, allocations: 44 kB / 392.9 MB, free: 1.586 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.511e-05/0.3532, allocations: 32.62 kB / 393 MB, free: 1.582 MB / 318.1 MB Notification: Performance of SimCode: time 3.21e-07/0.3532, allocations: 0 / 393 MB, free: 1.582 MB / 318.1 MB Notification: Performance of Templates: time 0.01501/0.3683, allocations: 6.145 MB / 399.1 MB, free: 476 kB / 318.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)