Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics") translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001241/0.001241, allocations: 181.7 kB / 12.74 MB, free: 2.582 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.705/1.705, allocations: 194.3 MB / 207.5 MB, free: 3.457 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001619/0.001619, allocations: 109.1 kB / 252.6 MB, free: 4.836 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.2113/0.2113, allocations: 39.94 MB / 337.6 MB, free: 468 kB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.844e-05/3.847e-05, allocations: 7.984 kB / 400.3 MB, free: 69.87 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1537/0.1537, allocations: 54.86 MB / 455.1 MB, free: 14.98 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.065/6.219, allocations: 2.608 GB / 3.053 GB, free: 61.37 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002951/6.219, allocations: 84.14 kB / 3.053 GB, free: 61.32 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.738/8.957, allocations: 0.6323 GB / 3.685 GB, free: 38.93 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.803e-06/8.957, allocations: 0 / 3.685 GB, free: 38.93 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0001031/8.958, allocations: 40.77 kB / 3.685 GB, free: 38.93 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 301 * Number of variables: 301 Notification: Performance of Generate backend data structure: time 0.01013/8.968, allocations: 2.447 MB / 3.687 GB, free: 37.99 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.486e-05/8.968, allocations: 13.16 kB / 3.687 GB, free: 37.99 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007973/8.976, allocations: 0.9547 MB / 3.688 GB, free: 37.91 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002752/8.979, allocations: 1.048 MB / 3.689 GB, free: 37.58 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001145/8.979, allocations: 103.2 kB / 3.689 GB, free: 37.57 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001729/8.979, allocations: 117.5 kB / 3.689 GB, free: 37.57 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004886/8.984, allocations: 2.254 MB / 3.692 GB, free: 37.12 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.138e-05/8.984, allocations: 10.5 kB / 3.692 GB, free: 37.12 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001477/8.984, allocations: 56.31 kB / 3.692 GB, free: 37.12 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.176e-05/8.984, allocations: 30.75 kB / 3.692 GB, free: 37.12 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004441/8.988, allocations: 1.971 MB / 3.694 GB, free: 37.11 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01197/9, allocations: 9.777 MB / 3.703 GB, free: 30.56 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004531/9.005, allocations: 1.493 MB / 3.705 GB, free: 30.53 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007181/9.006, allocations: 407 kB / 3.705 GB, free: 30.52 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04259/9.048, allocations: 18.98 MB / 3.724 GB, free: 21.35 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.637e-05/9.048, allocations: 38.62 kB / 3.724 GB, free: 21.31 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=88): time 2.856e-06/9.048, allocations: 0 / 3.724 GB, free: 21.31 MB / 0.4948 GB Notification: Performance of matching and sorting (n=88): time 0.006251/9.055, allocations: 2.261 MB / 3.726 GB, free: 21.2 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000138/9.055, allocations: 274.8 kB / 3.726 GB, free: 20.88 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001163/9.056, allocations: 0.7323 MB / 3.727 GB, free: 20.71 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 7.412e-05/9.056, allocations: 40.36 kB / 3.727 GB, free: 20.68 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004758/9.057, allocations: 0.682 MB / 3.728 GB, free: 20.34 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002863/9.057, allocations: 299.9 kB / 3.728 GB, free: 20.15 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.411e-05/9.057, allocations: 29.28 kB / 3.728 GB, free: 20.15 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001467/9.057, allocations: 358.1 kB / 3.728 GB, free: 19.84 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005299/9.058, allocations: 332.6 kB / 3.729 GB, free: 19.84 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008233/9.059, allocations: 0.8911 MB / 3.729 GB, free: 19.12 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006528/9.059, allocations: 462.3 kB / 3.73 GB, free: 19.09 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.099e-05/9.059, allocations: 6.469 kB / 3.73 GB, free: 19.09 MB / 0.4948 GB Notification: Performance of matching and sorting (n=165) (initialization): time 0.001951/9.061, allocations: 1.301 MB / 3.731 GB, free: 18.98 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.003016/9.064, allocations: 6.882 MB / 3.738 GB, free: 27.76 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.621e-05/9.064, allocations: 19.06 kB / 3.738 GB, free: 27.76 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.946e-05/9.064, allocations: 29.06 kB / 3.738 GB, free: 27.76 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001416/9.066, allocations: 391.1 kB / 3.738 GB, free: 27.76 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.657e-05/9.066, allocations: 39.33 kB / 3.738 GB, free: 27.76 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001821/9.068, allocations: 243.2 kB / 3.739 GB, free: 27.67 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001284/9.068, allocations: 81.05 kB / 3.739 GB, free: 27.67 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.554e-05/9.068, allocations: 3.781 kB / 3.739 GB, free: 27.67 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002044/9.07, allocations: 1.165 MB / 3.74 GB, free: 27.65 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.178e-05/9.07, allocations: 16.41 kB / 3.74 GB, free: 27.65 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.297e-05/9.07, allocations: 25.91 kB / 3.74 GB, free: 27.65 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001155/9.071, allocations: 383.6 kB / 3.74 GB, free: 27.64 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.916e-05/9.071, allocations: 41.14 kB / 3.74 GB, free: 27.64 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001425/9.073, allocations: 203.9 kB / 3.74 GB, free: 27.59 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001111/9.073, allocations: 85.36 kB / 3.74 GB, free: 27.59 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 79 * Number of states: 0 () * Number of discrete variables: 16 (source2.medium.phase,sink2.medium.phase,source1.medium.phase,sink1.medium.phase,source3.medium.phase,sink3.medium.phase,source4.medium.phase,sink4.medium.phase,valve_equalPercentage.state_b.phase,valve_equalPercentage.state_a.phase,valve_quadratic.state_b.phase,valve_quadratic.state_a.phase,valve_constant.state_b.phase,valve_constant.state_a.phase,valve_linear.state_b.phase,valve_linear.state_a.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (165): * Single equations (assignments): 165 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004142/9.073, allocations: 206.1 kB / 3.741 GB, free: 27.46 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002264/9.073, allocations: 125.1 kB / 3.741 GB, free: 27.4 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005736/9.079, allocations: 5.809 MB / 3.746 GB, free: 26.78 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.501e-05/9.079, allocations: 88.98 kB / 3.747 GB, free: 26.78 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.236e-06/9.079, allocations: 0 / 3.747 GB, free: 26.78 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.643e-05/9.079, allocations: 6.516 kB / 3.747 GB, free: 26.78 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00344/9.083, allocations: 2.797 MB / 3.749 GB, free: 26.39 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.436e-06/9.083, allocations: 0 / 3.749 GB, free: 26.39 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009246/9.084, allocations: 291.1 kB / 3.75 GB, free: 26.38 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.349e-05/9.084, allocations: 3.938 kB / 3.75 GB, free: 26.38 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.98e-05/9.084, allocations: 30.7 kB / 3.75 GB, free: 26.38 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.787e-06/9.084, allocations: 3.812 kB / 3.75 GB, free: 26.38 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.395e-06/9.084, allocations: 0 / 3.75 GB, free: 26.38 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003012/9.087, allocations: 2.677 MB / 3.752 GB, free: 25.96 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008514/9.088, allocations: 0.5299 MB / 3.753 GB, free: 25.64 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000155/9.088, allocations: 24.56 kB / 3.753 GB, free: 25.64 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008024/9.089, allocations: 137.3 kB / 3.753 GB, free: 25.62 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001871/9.089, allocations: 90.55 kB / 3.753 GB, free: 25.62 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.058e-05/9.089, allocations: 36.08 kB / 3.753 GB, free: 25.62 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0009167/9.09, allocations: 0.6553 MB / 3.754 GB, free: 25.51 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.4e-07/9.09, allocations: 0 / 3.754 GB, free: 25.51 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0105/9.1, allocations: 1.722 MB / 3.755 GB, free: 25.28 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 56 ($cse2.phase,$cse2.region,$cse6.phase,$cse6.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse12.phase,$cse12.region,$cse13.phase,$cse13.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse20.phase,$cse20.region,$cse22.phase,$cse22.region,$cse23.phase,$cse23.region,$cse25.phase,$cse25.region,$cse26.phase,$cse26.region,$cse28.phase,$cse28.region,$cse29.phase,$cse29.region,$cse31.phase,$cse31.region,$cse32.phase,$cse32.region,$cse33.phase,$cse33.region,$cse35.phase,$cse35.region,$cse36.phase,$cse36.region,$cse38.phase,$cse38.region,source1.medium.phase,sink1.medium.phase,source2.medium.phase,sink2.medium.phase,source3.medium.phase,sink3.medium.phase,source4.medium.phase,sink4.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (120): * Single equations (assignments): 96 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 24 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01047/9.111, allocations: 1.944 MB / 3.757 GB, free: 24.84 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.003894/9.115, allocations: 2.28 MB / 3.759 GB, free: 24.77 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 6.702e-06/9.115, allocations: 0 / 3.759 GB, free: 24.77 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.001503/9.116, allocations: 1.36 MB / 3.761 GB, free: 24.76 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003306/9.12, allocations: 0.5855 MB / 3.761 GB, free: 24.71 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6484/9.768, allocations: 125.3 MB / 3.884 GB, free: 65.12 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001634/9.77, allocations: 1.667 MB / 3.885 GB, free: 64.38 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.006027/9.776, allocations: 2.004 MB / 3.887 GB, free: 64.35 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005272/9.776, allocations: 115.6 kB / 3.887 GB, free: 64.34 MB / 0.5261 GB Notification: Performance of SimCode: time 1.442e-06/9.776, allocations: 0 / 3.887 GB, free: 64.34 MB / 0.5261 GB Notification: Performance of Templates: time 0.1614/9.938, allocations: 59.92 MB / 3.946 GB, free: 62.28 MB / 0.5261 GB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.makefile (rm -f ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.pipe ; mkfifo ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.pipe ; head -c 1048576 < ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.pipe >> ../files/ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.sim & ./ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.pipe 2>&1)