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.001111/0.001111, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00156/0.00156, allocations: 194.3 kB / 16.53 MB, free: 6.664 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.548/1.548, allocations: 205.1 MB / 222.4 MB, free: 4.594 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.00153/0.00153, allocations: 52.2 kB / 278.7 MB, free: 12.35 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2956/0.2971, allocations: 46.64 MB / 325.3 MB, free: 1.984 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank): time 0.005201/0.3024, allocations: 2.848 MB / 328.2 MB, free: 15.72 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002286/0.3047, allocations: 1.177 MB / 329.3 MB, free: 14.78 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002104/0.3049, allocations: 11.91 kB / 329.3 MB, free: 14.77 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000632/0.3056, allocations: 178.3 kB / 329.5 MB, free: 14.66 MB / 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.0006095/0.3062, allocations: 196.5 kB / 329.7 MB, free: 14.52 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004504/0.3067, allocations: 146.1 kB / 329.9 MB, free: 14.4 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006101/0.3073, allocations: 450.6 kB / 330.3 MB, free: 14.14 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002427/0.3076, allocations: 107.8 kB / 330.4 MB, free: 14.09 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002548/0.3078, allocations: 174.7 kB / 330.6 MB, free: 14 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003139/0.3082, allocations: 207.6 kB / 330.8 MB, free: 13.88 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 6.729e-05/0.3082, allocations: 30.56 kB / 330.8 MB, free: 13.88 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001997/0.3084, allocations: 77.2 kB / 330.9 MB, free: 13.85 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001316/0.3086, allocations: 84.95 kB / 331 MB, free: 13.79 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002455/0.3088, allocations: 190.9 kB / 331.1 MB, free: 13.66 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005979/0.3094, allocations: 482.3 kB / 331.6 MB, free: 13.32 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.252e-06/0.3095, allocations: 0 / 331.6 MB, free: 13.32 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.3095, allocations: 0 / 331.6 MB, free: 13.32 MB / 270.1 MB Notification: Performance of Transformations before backend: time 8.586e-06/0.3095, allocations: 0 / 331.6 MB, free: 13.32 MB / 270.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.001182/0.3107, allocations: 0.7065 MB / 332.3 MB, free: 12.69 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.915e-05/0.3107, allocations: 10.41 kB / 332.3 MB, free: 12.69 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001098/0.3108, allocations: 47.5 kB / 332.4 MB, free: 12.67 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004667/0.3113, allocations: 340.4 kB / 332.7 MB, free: 12.35 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.749e-05/0.3114, allocations: 15.84 kB / 332.7 MB, free: 12.34 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.733e-05/0.3114, allocations: 20.75 kB / 332.7 MB, free: 12.33 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005485/0.312, allocations: 291 kB / 333 MB, free: 12.1 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.863e-05/0.312, allocations: 0 / 333 MB, free: 12.1 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.945e-05/0.312, allocations: 11.44 kB / 333 MB, free: 12.09 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.281e-05/0.3121, allocations: 4.469 kB / 333 MB, free: 12.09 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003473/0.3124, allocations: 155 kB / 333.2 MB, free: 12 MB / 270.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.001485/0.3139, allocations: 0.8283 MB / 334 MB, free: 11.1 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004246/0.3144, allocations: 187.1 kB / 334.2 MB, free: 10.91 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001524/0.3145, allocations: 80.83 kB / 334.3 MB, free: 10.83 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.441e-05/0.3146, allocations: 7.938 kB / 334.3 MB, free: 10.82 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000395/0.315, allocations: 139.2 kB / 334.4 MB, free: 10.67 MB / 270.1 MB Notification: Performance of pre-optimization done (n=23): time 1.463e-06/0.315, allocations: 0 / 334.4 MB, free: 10.67 MB / 270.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008597/0.3158, allocations: 399 kB / 334.8 MB, free: 10.25 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002068/0.3161, allocations: 316.3 kB / 335.1 MB, free: 9.871 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005007/0.3166, allocations: 437.6 kB / 335.6 MB, free: 9.438 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 3.587e-05/0.3166, allocations: 41.64 kB / 335.6 MB, free: 9.391 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002125/0.3168, allocations: 196.2 kB / 335.8 MB, free: 9.195 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.405e-05/0.3169, allocations: 82.83 kB / 335.9 MB, free: 9.113 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001079/0.317, allocations: 57.7 kB / 335.9 MB, free: 9.051 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0002309/0.3173, allocations: 350.8 kB / 336.3 MB, free: 8.699 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001603/0.3175, allocations: 63.97 kB / 336.3 MB, free: 8.637 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003205/0.3178, allocations: 176 kB / 336.5 MB, free: 8.422 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003774/0.3182, allocations: 175.2 kB / 336.7 MB, free: 8.238 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.542e-06/0.3182, allocations: 3.938 kB / 336.7 MB, free: 8.234 MB / 270.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005032/0.3187, allocations: 269.8 kB / 336.9 MB, free: 7.961 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.202e-05/0.3187, allocations: 8 kB / 337 MB, free: 7.953 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.296e-06/0.3188, allocations: 0 / 337 MB, free: 7.953 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002035/0.319, allocations: 32.84 kB / 337 MB, free: 7.918 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002287/0.3192, allocations: 55.91 kB / 337 MB, free: 7.863 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00171/0.3209, allocations: 1.567 MB / 338.6 MB, free: 6.148 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002438/0.3212, allocations: 31.72 kB / 338.6 MB, free: 6.117 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.8e-05/0.3212, allocations: 12.09 kB / 338.6 MB, free: 6.105 MB / 270.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.0002184/0.3214, allocations: 161.8 kB / 338.8 MB, free: 5.938 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.252e-05/0.3215, allocations: 43.53 kB / 338.8 MB, free: 5.895 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.288e-05/0.3216, allocations: 47.59 kB / 338.9 MB, free: 5.844 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.609e-06/0.3216, allocations: 4.031 kB / 338.9 MB, free: 5.84 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.953e-06/0.3216, allocations: 7.922 kB / 338.9 MB, free: 5.832 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005675/0.3222, allocations: 0.5796 MB / 339.5 MB, free: 5.148 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009354/0.3231, allocations: 0.7038 MB / 340.2 MB, free: 4.383 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.749e-06/0.3232, allocations: 4 kB / 340.2 MB, free: 4.379 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002002/0.3234, allocations: 51.97 kB / 340.2 MB, free: 4.328 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.046e-06/0.3234, allocations: 0 / 340.2 MB, free: 4.328 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.84e-05/0.3234, allocations: 4 kB / 340.2 MB, free: 4.324 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.076e-06/0.3234, allocations: 0 / 340.2 MB, free: 4.324 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.3234, allocations: 3.938 kB / 340.3 MB, free: 4.32 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005389/0.324, allocations: 402.8 kB / 340.6 MB, free: 3.91 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001302/0.3241, allocations: 140.6 kB / 340.8 MB, free: 3.754 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.819e-05/0.3242, allocations: 8.062 kB / 340.8 MB, free: 3.746 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000204/0.3244, allocations: 15.98 kB / 340.8 MB, free: 3.73 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.65e-05/0.3244, allocations: 11.98 kB / 340.8 MB, free: 3.719 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.583e-05/0.3245, allocations: 8 kB / 340.8 MB, free: 3.711 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0003157/0.3248, allocations: 311.1 kB / 341.1 MB, free: 3.41 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3248, allocations: 4 kB / 341.1 MB, free: 3.406 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0003854/0.3252, allocations: 87.84 kB / 341.2 MB, free: 3.32 MB / 270.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.0009766/0.3262, allocations: 414.1 kB / 341.6 MB, free: 2.914 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0006184/0.3268, allocations: 322.5 kB / 341.9 MB, free: 2.586 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 3.666e-06/0.3268, allocations: 0 / 341.9 MB, free: 2.586 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001588/0.327, allocations: 84.38 kB / 342 MB, free: 2.504 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005856/0.3276, allocations: 113.9 kB / 342.1 MB, free: 2.391 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001449/0.3291, allocations: 0.7849 MB / 342.9 MB, free: 1.578 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003747/0.3294, allocations: 0.7998 MB / 343.7 MB, free: 0.7539 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 0.0001627/0.3296, allocations: 42.95 kB / 343.8 MB, free: 0.7109 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.195e-05/0.3297, allocations: 35.42 kB / 343.8 MB, free: 0.6758 MB / 270.1 MB Notification: Performance of SimCode: time 2.31e-07/0.3297, allocations: 0 / 343.8 MB, free: 0.6758 MB / 270.1 MB Notification: Performance of Templates: time 0.0122/0.3419, allocations: 6.11 MB / 349.9 MB, free: 10.55 MB / 286.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)