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.001572/0.001572, allocations: 113.2 kB / 17.06 MB, free: 6.004 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.001789/0.00179, allocations: 198.9 kB / 18 MB, free: 5.082 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.513/1.513, allocations: 205.1 MB / 223.9 MB, free: 12.24 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.001382/0.001382, allocations: 48.41 kB / 327.8 MB, free: 3.309 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0966/0.09799, allocations: 46.62 MB / 374.5 MB, free: 4.574 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank): time 0.004697/0.1027, allocations: 2.839 MB / 377.3 MB, free: 1.719 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002026/0.1048, allocations: 1.181 MB / 378.5 MB, free: 0.5273 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002595/0.1051, allocations: 4 kB / 378.5 MB, free: 0.5234 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005729/0.1057, allocations: 191.1 kB / 378.7 MB, free: 344 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.0005597/0.1062, allocations: 202.8 kB / 378.9 MB, free: 140 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.2285/0.3347, allocations: 146.5 kB / 379 MB, free: 9.887 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001152/0.3359, allocations: 446.6 kB / 379.5 MB, free: 9.887 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002864/0.3362, allocations: 106.5 kB / 379.6 MB, free: 9.875 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002754/0.3365, allocations: 179.6 kB / 379.7 MB, free: 9.855 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003131/0.3368, allocations: 213.8 kB / 379.9 MB, free: 9.812 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.416e-05/0.3369, allocations: 29.19 kB / 380 MB, free: 9.812 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002514/0.3372, allocations: 70.17 kB / 380 MB, free: 9.812 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001408/0.3373, allocations: 88.77 kB / 380.1 MB, free: 9.797 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002429/0.3376, allocations: 190.3 kB / 380.3 MB, free: 9.738 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007659/0.3383, allocations: 485.6 kB / 380.8 MB, free: 9.68 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.069e-05/0.3384, allocations: 1.328 kB / 380.8 MB, free: 9.68 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.355e-06/0.3384, allocations: 3.969 kB / 380.8 MB, free: 9.68 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.628e-06/0.3384, allocations: 1.062 kB / 380.8 MB, free: 9.68 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.001124/0.3395, allocations: 0.692 MB / 381.5 MB, free: 9.172 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.855e-05/0.3396, allocations: 10.06 kB / 381.5 MB, free: 9.172 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001298/0.3397, allocations: 48.97 kB / 381.5 MB, free: 9.148 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005751/0.3403, allocations: 341.1 kB / 381.9 MB, free: 8.898 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.024e-05/0.3403, allocations: 15.92 kB / 381.9 MB, free: 8.898 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.589e-05/0.3404, allocations: 22 kB / 381.9 MB, free: 8.898 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005225/0.3409, allocations: 297.6 kB / 382.2 MB, free: 8.77 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.309e-05/0.3409, allocations: 4.031 kB / 382.2 MB, free: 8.77 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.773e-05/0.341, allocations: 12.5 kB / 382.2 MB, free: 8.77 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.506e-06/0.341, allocations: 3.906 kB / 382.2 MB, free: 8.77 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003223/0.3413, allocations: 144.3 kB / 382.4 MB, free: 8.77 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.001421/0.3427, allocations: 0.8273 MB / 383.2 MB, free: 8.367 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004433/0.3432, allocations: 191.5 kB / 383.4 MB, free: 8.34 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001672/0.3434, allocations: 79.55 kB / 383.5 MB, free: 8.332 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.537e-05/0.3434, allocations: 7.141 kB / 383.5 MB, free: 8.332 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002836/0.3437, allocations: 131.6 kB / 383.6 MB, free: 8.281 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 2.495e-06/0.3437, allocations: 8.078 kB / 383.6 MB, free: 8.277 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008756/0.3446, allocations: 410.9 kB / 384 MB, free: 8.113 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.346e-05/0.3447, allocations: 317.4 kB / 384.3 MB, free: 7.738 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005541/0.3453, allocations: 427.4 kB / 384.7 MB, free: 7.625 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.201e-05/0.3453, allocations: 33.86 kB / 384.8 MB, free: 7.594 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001693/0.3455, allocations: 205.3 kB / 385 MB, free: 7.473 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.878e-05/0.3456, allocations: 75.94 kB / 385 MB, free: 7.414 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001076/0.3457, allocations: 61.81 kB / 385.1 MB, free: 7.375 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.862e-05/0.3458, allocations: 348.8 kB / 385.4 MB, free: 7.047 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000143/0.3459, allocations: 59.41 kB / 385.5 MB, free: 7.027 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002342/0.3462, allocations: 174.2 kB / 385.7 MB, free: 6.879 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003203/0.3465, allocations: 178.3 kB / 385.8 MB, free: 6.777 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.925e-06/0.3465, allocations: 0 / 385.8 MB, free: 6.777 MB / 318.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0004825/0.347, allocations: 274.1 kB / 386.1 MB, free: 6.645 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.951e-05/0.347, allocations: 6.422 kB / 386.1 MB, free: 6.645 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.562e-06/0.3471, allocations: 1.031 kB / 386.1 MB, free: 6.645 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001551/0.3472, allocations: 36.39 kB / 386.2 MB, free: 6.629 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002128/0.3474, allocations: 48.38 kB / 386.2 MB, free: 6.629 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001283/0.3487, allocations: 1.58 MB / 387.8 MB, free: 5.133 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002508/0.349, allocations: 23.67 kB / 387.8 MB, free: 5.121 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.783e-05/0.349, allocations: 7.141 kB / 387.8 MB, free: 5.121 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.0001821/0.3492, allocations: 170.4 kB / 388 MB, free: 4.98 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.144e-05/0.3493, allocations: 39.59 kB / 388 MB, free: 4.961 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.804e-05/0.3494, allocations: 42.17 kB / 388.1 MB, free: 4.938 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.658e-06/0.3494, allocations: 2.688 kB / 388.1 MB, free: 4.938 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.3494, allocations: 3.938 kB / 388.1 MB, free: 4.934 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004849/0.3499, allocations: 0.5802 MB / 388.6 MB, free: 4.352 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001203/0.3511, allocations: 0.7002 MB / 389.3 MB, free: 3.867 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-06/0.3511, allocations: 0 / 389.3 MB, free: 3.867 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002136/0.3513, allocations: 50.52 kB / 389.4 MB, free: 3.863 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.37e-06/0.3513, allocations: 1.875 kB / 389.4 MB, free: 3.863 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.193e-05/0.3514, allocations: 5.844 kB / 389.4 MB, free: 3.859 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.547e-06/0.3514, allocations: 1.562 kB / 389.4 MB, free: 3.859 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.943e-06/0.3514, allocations: 4.734 kB / 389.4 MB, free: 3.855 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006275/0.352, allocations: 400.5 kB / 389.8 MB, free: 3.613 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001636/0.3522, allocations: 144.2 kB / 389.9 MB, free: 3.477 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.165e-05/0.3522, allocations: 12.58 kB / 389.9 MB, free: 3.469 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002346/0.3525, allocations: 15.34 kB / 390 MB, free: 3.465 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.968e-05/0.3526, allocations: 12.17 kB / 390 MB, free: 3.465 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.922e-05/0.3526, allocations: 7.25 kB / 390 MB, free: 3.465 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003807/0.353, allocations: 315.4 kB / 390.3 MB, free: 3.312 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.353, allocations: 1.062 kB / 390.3 MB, free: 3.312 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004488/0.3534, allocations: 88.11 kB / 390.4 MB, free: 3.301 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.0009851/0.3544, allocations: 428.9 kB / 390.8 MB, free: 2.973 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0006212/0.3551, allocations: 320.7 kB / 391.1 MB, free: 2.793 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.408e-06/0.3551, allocations: 1.5 kB / 391.1 MB, free: 2.793 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001595/0.3552, allocations: 79.11 kB / 391.2 MB, free: 2.773 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006031/0.3559, allocations: 108.4 kB / 391.3 MB, free: 2.727 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001538/0.3574, allocations: 0.7816 MB / 392.1 MB, free: 2.281 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002835/0.3577, allocations: 0.7996 MB / 392.9 MB, free: 1.574 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001917/0.3579, allocations: 47.42 kB / 392.9 MB, free: 1.559 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.04e-05/0.358, allocations: 33.27 kB / 393 MB, free: 1.555 MB / 318.1 MB Notification: Performance of SimCode: time 4.41e-07/0.358, allocations: 0 / 393 MB, free: 1.555 MB / 318.1 MB Notification: Performance of Templates: time 0.01573/0.3737, allocations: 6.279 MB / 399.2 MB, free: 336 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)