Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics") translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.001576/0.001577, allocations: 170.2 kB / 12.72 MB, free: 2.594 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.138/1.138, allocations: 170.6 MB / 183.8 MB, free: 11.5 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001616/0.001616, allocations: 106.8 kB / 223.2 MB, free: 4.113 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.1599/0.1599, allocations: 37.99 MB / 300.4 MB, free: 5.348 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.986e-05/2.989e-05, allocations: 4 kB / 357 MB, free: 32.32 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07498/0.07503, allocations: 48.71 MB / 405.7 MB, free: 15.65 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.819/4.894, allocations: 2.497 GB / 2.894 GB, free: 98.78 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002627/4.895, allocations: 78.75 kB / 2.894 GB, free: 98.78 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.921/6.816, allocations: 0.6185 GB / 3.512 GB, free: 7.551 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.573e-06/6.816, allocations: 0 / 3.512 GB, free: 7.551 MB / 458.7 MB Notification: Performance of Transformations before backend: time 9.604e-05/6.816, allocations: 48.7 kB / 3.512 GB, free: 7.508 MB / 458.7 MB 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.007868/6.824, allocations: 2.36 MB / 3.514 GB, free: 5.125 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.506e-05/6.824, allocations: 12.03 kB / 3.514 GB, free: 5.113 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007621/6.832, allocations: 0.9041 MB / 3.515 GB, free: 4.219 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002563/6.834, allocations: 1.044 MB / 3.516 GB, free: 3.152 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001224/6.834, allocations: 106.4 kB / 3.516 GB, free: 3.047 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001889/6.834, allocations: 121.4 kB / 3.517 GB, free: 2.93 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005672/6.84, allocations: 2.247 MB / 3.519 GB, free: 0.5312 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.817e-05/6.84, allocations: 10.39 kB / 3.519 GB, free: 0.5234 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002472/6.84, allocations: 56 kB / 3.519 GB, free: 480 kB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.603e-05/6.841, allocations: 31.95 kB / 3.519 GB, free: 448 kB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2702/7.111, allocations: 1.972 MB / 3.521 GB, free: 33.96 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009673/7.12, allocations: 9.775 MB / 3.53 GB, free: 27.52 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003781/7.124, allocations: 1.494 MB / 3.532 GB, free: 27.49 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006085/7.125, allocations: 405.6 kB / 3.532 GB, free: 27.48 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03956/7.164, allocations: 18.93 MB / 3.551 GB, free: 18.36 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.231e-05/7.165, allocations: 46.2 kB / 3.551 GB, free: 18.32 MB / 458.7 MB Notification: Performance of pre-optimization done (n=88): time 2.275e-06/7.165, allocations: 2.562 kB / 3.551 GB, free: 18.32 MB / 458.7 MB Notification: Performance of matching and sorting (n=88): time 0.005917/7.17, allocations: 2.263 MB / 3.553 GB, free: 18.21 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.741e-05/7.171, allocations: 265 kB / 3.553 GB, free: 17.89 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007938/7.171, allocations: 0.7405 MB / 3.554 GB, free: 17.73 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 5.597e-05/7.171, allocations: 43.89 kB / 3.554 GB, free: 17.7 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003478/7.172, allocations: 0.6674 MB / 3.555 GB, free: 17.43 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000182/7.172, allocations: 312.9 kB / 3.555 GB, free: 17.28 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.181e-05/7.172, allocations: 24.06 kB / 3.555 GB, free: 17.28 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.000649/7.173, allocations: 350.7 kB / 3.555 GB, free: 32.98 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004733/7.173, allocations: 336.6 kB / 3.556 GB, free: 32.98 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006682/7.174, allocations: 0.8875 MB / 3.556 GB, free: 32.29 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006083/7.174, allocations: 465.6 kB / 3.557 GB, free: 32.27 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.775e-06/7.174, allocations: 6.375 kB / 3.557 GB, free: 32.27 MB / 474.7 MB Notification: Performance of matching and sorting (n=165) (initialization): time 0.001774/7.176, allocations: 1.309 MB / 3.558 GB, free: 32.18 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00235/7.179, allocations: 6.88 MB / 3.565 GB, free: 25.02 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.992e-05/7.179, allocations: 16.86 kB / 3.565 GB, free: 25.02 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.161e-05/7.179, allocations: 34.11 kB / 3.565 GB, free: 25.02 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001161/7.18, allocations: 393 kB / 3.565 GB, free: 25.02 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.966e-05/7.18, allocations: 37.83 kB / 3.565 GB, free: 25.02 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001243/7.181, allocations: 232.3 kB / 3.566 GB, free: 24.98 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001018/7.181, allocations: 81.14 kB / 3.566 GB, free: 24.98 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.694e-06/7.181, allocations: 3.5 kB / 3.566 GB, free: 24.98 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001552/7.183, allocations: 1.163 MB / 3.567 GB, free: 24.97 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.419e-05/7.183, allocations: 14.28 kB / 3.567 GB, free: 24.97 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.2e-05/7.183, allocations: 29.91 kB / 3.567 GB, free: 24.97 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001075/7.184, allocations: 389 kB / 3.567 GB, free: 24.97 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.509e-05/7.184, allocations: 32.06 kB / 3.567 GB, free: 24.97 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001041/7.185, allocations: 215.1 kB / 3.567 GB, free: 24.94 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.91e-05/7.185, allocations: 79.19 kB / 3.567 GB, free: 24.94 MB / 474.7 MB 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.0002613/7.185, allocations: 203.2 kB / 3.568 GB, free: 24.84 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001619/7.186, allocations: 128.4 kB / 3.568 GB, free: 24.77 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004942/7.191, allocations: 5.815 MB / 3.573 GB, free: 24.23 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.973e-05/7.191, allocations: 80.97 kB / 3.574 GB, free: 24.23 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.516e-06/7.191, allocations: 6.391 kB / 3.574 GB, free: 24.23 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.382e-05/7.191, allocations: 6.453 kB / 3.574 GB, free: 24.23 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002781/7.193, allocations: 2.795 MB / 3.576 GB, free: 23.85 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.072e-06/7.193, allocations: 0 / 3.576 GB, free: 23.85 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008808/7.194, allocations: 293.5 kB / 3.577 GB, free: 23.85 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.356e-05/7.194, allocations: 13.58 kB / 3.577 GB, free: 23.84 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.062e-05/7.194, allocations: 24.69 kB / 3.577 GB, free: 23.84 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.925e-06/7.194, allocations: 5.531 kB / 3.577 GB, free: 23.84 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.345e-06/7.194, allocations: 3.281 kB / 3.577 GB, free: 23.84 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002437/7.197, allocations: 2.675 MB / 3.579 GB, free: 23.43 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005788/7.197, allocations: 0.523 MB / 3.58 GB, free: 23.12 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001379/7.198, allocations: 25.95 kB / 3.58 GB, free: 23.12 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007528/7.198, allocations: 137.5 kB / 3.58 GB, free: 23.11 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001421/7.199, allocations: 92.25 kB / 3.58 GB, free: 23.11 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.068e-05/7.199, allocations: 34.2 kB / 3.58 GB, free: 23.11 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0006721/7.199, allocations: 0.6582 MB / 3.581 GB, free: 22.99 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.5e-07/7.199, allocations: 0 / 3.581 GB, free: 22.99 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.006138/7.205, allocations: 1.719 MB / 3.582 GB, free: 22.88 MB / 474.7 MB 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.006454/7.212, allocations: 1.951 MB / 3.584 GB, free: 22.65 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.002929/7.215, allocations: 2.275 MB / 3.586 GB, free: 22.59 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 3.566e-06/7.215, allocations: 4 kB / 3.586 GB, free: 22.58 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001178/7.216, allocations: 1.358 MB / 3.588 GB, free: 22.58 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003009/7.219, allocations: 0.5713 MB / 3.588 GB, free: 22.54 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4798/7.699, allocations: 123.2 MB / 3.709 GB, free: 61.15 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001459/7.7, allocations: 1.662 MB / 3.71 GB, free: 60.41 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.004078/7.705, allocations: 2 MB / 3.712 GB, free: 60.38 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004247/7.705, allocations: 120.3 kB / 3.712 GB, free: 60.37 MB / 490.7 MB Notification: Performance of SimCode: time 1.232e-06/7.705, allocations: 0.75 kB / 3.712 GB, free: 60.37 MB / 490.7 MB Notification: Performance of Templates: time 0.07864/7.784, allocations: 59.76 MB / 3.771 GB, free: 58.14 MB / 490.7 MB make -j1 -f ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.makefile (rm -f ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.pipe ; mkfifo ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.pipe ; head -c 1048576 < ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.pipe >> ../files/ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.sim & ./ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.pipe 2>&1)