Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Media.Examples.WaterIF97.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.Media.Examples.WaterIF97,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Media.Examples.WaterIF97") translateModel(Modelica.Media.Examples.WaterIF97,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Media.Examples.WaterIF97") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001448/0.001448, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.002307/0.002307, allocations: 193 kB / 16.25 MB, free: 6.617 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.373/1.373, allocations: 205.1 MB / 222.1 MB, free: 4.742 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.001207/0.001207, allocations: 51.88 kB / 278.2 MB, free: 12.66 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2066/0.2078, allocations: 46.62 MB / 324.8 MB, free: 1.883 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.01577/0.2236, allocations: 13.03 MB / 337.9 MB, free: 7.035 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01247/0.2362, allocations: 11.62 MB / 349.5 MB, free: 11.38 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001141/0.2363, allocations: 0 / 349.5 MB, free: 11.38 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003757/0.2367, allocations: 71.67 kB / 349.6 MB, free: 11.31 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003033/0.2371, allocations: 79.48 kB / 349.6 MB, free: 11.23 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01594/0.253, allocations: 4.442 MB / 354.1 MB, free: 6.777 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004006/0.2534, allocations: 238.9 kB / 354.3 MB, free: 6.543 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.012e-05/0.2535, allocations: 13.39 kB / 354.3 MB, free: 6.531 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005274/0.254, allocations: 191.5 kB / 354.5 MB, free: 6.344 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001635/0.2542, allocations: 71.64 kB / 354.6 MB, free: 6.273 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.688e-05/0.2542, allocations: 8 kB / 354.6 MB, free: 6.266 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01493/0.2692, allocations: 6.88 MB / 361.5 MB, free: 15.38 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001101/0.2693, allocations: 31.91 kB / 361.5 MB, free: 15.35 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001489/0.2695, allocations: 71.72 kB / 361.6 MB, free: 15.28 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009937/0.2794, allocations: 3.883 MB / 365.4 MB, free: 11.39 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.494e-06/0.2795, allocations: 4 kB / 365.5 MB, free: 11.38 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.2795, allocations: 0 / 365.5 MB, free: 11.38 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.906e-06/0.2795, allocations: 0 / 365.5 MB, free: 11.38 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.004949/0.2845, allocations: 1.143 MB / 366.6 MB, free: 10.19 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.876e-05/0.2845, allocations: 8.031 kB / 366.6 MB, free: 10.18 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004842/0.285, allocations: 52.7 kB / 366.7 MB, free: 10.13 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002539/0.2853, allocations: 220.2 kB / 366.9 MB, free: 9.879 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.11e-05/0.2853, allocations: 12.36 kB / 366.9 MB, free: 9.867 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.054e-05/0.2854, allocations: 20.28 kB / 366.9 MB, free: 9.848 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001298/0.2867, allocations: 384 kB / 367.3 MB, free: 9.441 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.629e-05/0.2867, allocations: 0 / 367.3 MB, free: 9.441 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.66e-05/0.2868, allocations: 8 kB / 367.3 MB, free: 9.434 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.953e-06/0.2868, allocations: 4 kB / 367.3 MB, free: 9.43 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001414/0.2882, allocations: 355.5 kB / 367.6 MB, free: 9.082 MB / 302.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.001407/0.2896, allocations: 1.199 MB / 368.8 MB, free: 7.781 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008416/0.2905, allocations: 279.7 kB / 369.1 MB, free: 7.48 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002706/0.2907, allocations: 110.9 kB / 369.2 MB, free: 7.363 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.09165/0.3824, allocations: 47.44 MB / 416.7 MB, free: 2.293 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.78e-05/0.3825, allocations: 34.56 kB / 416.7 MB, free: 2.25 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.784e-06/0.3825, allocations: 4 kB / 416.7 MB, free: 2.246 MB / 350.1 MB Notification: Performance of matching and sorting (n=33): time 0.00686/0.3894, allocations: 1.581 MB / 418.3 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.729e-05/0.3894, allocations: 110.8 kB / 418.4 MB, free: 488 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.198e-05/0.3895, allocations: 125.8 kB / 418.5 MB, free: 352 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.788e-05/0.3896, allocations: 33.77 kB / 418.5 MB, free: 312 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.998e-05/0.3896, allocations: 104.5 kB / 418.6 MB, free: 204 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.545e-05/0.3897, allocations: 114.4 kB / 418.8 MB, free: 88 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001159/0.3899, allocations: 69.59 kB / 418.8 MB, free: 12 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001139/0.39, allocations: 326.8 kB / 419.1 MB, free: 15.68 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003742/0.3904, allocations: 135.7 kB / 419.3 MB, free: 15.55 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004056/0.3908, allocations: 202.5 kB / 419.5 MB, free: 15.33 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007789/0.3916, allocations: 350.5 kB / 419.8 MB, free: 14.96 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.3916, allocations: 0 / 419.8 MB, free: 14.96 MB / 366.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001041/0.3926, allocations: 422 kB / 420.2 MB, free: 14.54 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.597e-05/0.3927, allocations: 4 kB / 420.2 MB, free: 14.54 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.312e-06/0.3927, allocations: 4 kB / 420.2 MB, free: 14.53 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002404/0.3929, allocations: 40.83 kB / 420.3 MB, free: 14.49 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000464/0.3934, allocations: 92.03 kB / 420.4 MB, free: 14.4 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003512/0.3938, allocations: 0.5561 MB / 420.9 MB, free: 13.82 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003011/0.3941, allocations: 23.92 kB / 420.9 MB, free: 13.79 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.74e-05/0.3941, allocations: 20.09 kB / 421 MB, free: 13.77 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 3 (medium.phase,state.phase,state2.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 39 * 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 {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0001548/0.3943, allocations: 137.8 kB / 421.1 MB, free: 13.63 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.634e-05/0.3944, allocations: 15.81 kB / 421.1 MB, free: 13.61 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002057/0.3964, allocations: 1.449 MB / 422.6 MB, free: 12.16 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.466e-05/0.3965, allocations: 19.97 kB / 422.6 MB, free: 12.14 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.971e-06/0.3965, allocations: 0 / 422.6 MB, free: 12.14 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.127e-05/0.3965, allocations: 11.97 kB / 422.6 MB, free: 12.12 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002811/0.3993, allocations: 1.979 MB / 424.6 MB, free: 10.07 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.736e-06/0.3993, allocations: 8 kB / 424.6 MB, free: 10.06 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004433/0.3998, allocations: 83.86 kB / 424.7 MB, free: 9.98 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003091/0.4001, allocations: 72.83 kB / 424.7 MB, free: 9.906 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.381e-05/0.4002, allocations: 16.36 kB / 424.7 MB, free: 9.891 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003596/0.4005, allocations: 0.5797 MB / 425.3 MB, free: 9.285 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.749e-06/0.4005, allocations: 7.938 kB / 425.3 MB, free: 9.277 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002153/0.4027, allocations: 1.693 MB / 427 MB, free: 7.555 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.127e-05/0.4028, allocations: 128.4 kB / 427.2 MB, free: 7.41 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.133e-05/0.4029, allocations: 12 kB / 427.2 MB, free: 7.398 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003941/0.4033, allocations: 35.84 kB / 427.2 MB, free: 7.363 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.517e-05/0.4033, allocations: 27.95 kB / 427.2 MB, free: 7.336 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.66e-05/0.4034, allocations: 19.98 kB / 427.2 MB, free: 7.316 MB / 366.1 MB Notification: Performance of sorting global known variables: time 5.74e-05/0.4034, allocations: 91.27 kB / 427.3 MB, free: 7.227 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4035, allocations: 0 / 427.3 MB, free: 7.227 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002802/0.4063, allocations: 0.9527 MB / 428.3 MB, free: 6.273 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (medium.p,medium.h,V) * Number of discrete variables: 11 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.region3boundary,$cse6.region3boundary,medium.phase,$cse1.phase,$cse1.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * 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 {(1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004291/0.4106, allocations: 1.139 MB / 429.4 MB, free: 5.125 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00155/0.4121, allocations: 0.6395 MB / 430.1 MB, free: 4.484 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.528e-06/0.4121, allocations: 4.125 kB / 430.1 MB, free: 4.48 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007484/0.4129, allocations: 0.5046 MB / 430.6 MB, free: 3.973 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007695/0.4137, allocations: 84.44 kB / 430.7 MB, free: 3.891 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002302/0.416, allocations: 1.491 MB / 432.2 MB, free: 2.355 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003293/0.4163, allocations: 0.8139 MB / 433 MB, free: 1.52 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003925/0.4167, allocations: 137.8 kB / 433.1 MB, free: 1.383 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001345/0.4169, allocations: 35.42 kB / 433.1 MB, free: 1.348 MB / 366.1 MB Notification: Performance of SimCode: time 6.02e-07/0.4169, allocations: 4 kB / 433.1 MB, free: 1.344 MB / 366.1 MB Notification: Performance of Templates: time 0.2148/0.6317, allocations: 36.22 MB / 469.4 MB, free: 108 MB / 382.1 MB make -j1 -f Modelica_3.2.1_Modelica.Media.Examples.WaterIF97.makefile (rm -f Modelica_3.2.1_Modelica.Media.Examples.WaterIF97.pipe ; mkfifo Modelica_3.2.1_Modelica.Media.Examples.WaterIF97.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Media.Examples.WaterIF97.pipe >> ../files/Modelica_3.2.1_Modelica.Media.Examples.WaterIF97.sim & ./Modelica_3.2.1_Modelica.Media.Examples.WaterIF97 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Media.Examples.WaterIF97.pipe 2>&1)