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/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) 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 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(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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001142/0.001143, allocations: 100 kB / 15.05 MB, free: 1.105 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.001086/0.001086, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.544/1.544, allocations: 205.4 MB / 222.1 MB, free: 5.645 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.3433/0.3433, allocations: 38.02 MB / 308.4 MB, free: 10.44 MB / 254.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: ModelicaTest requested package Modelica of version 3.2.1. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005104/0.0005104, allocations: 12 kB / 376.4 MB, free: 15.18 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1054/0.1059, allocations: 57.51 MB / 433.9 MB, free: 5.562 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics): time 0.2388/0.3447, allocations: 68.67 MB / 0.4908 GB, free: 13.64 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02799/0.3728, allocations: 24.65 MB / 0.5149 GB, free: 12.63 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002116/0.3749, allocations: 48.09 kB / 0.5149 GB, free: 12.6 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003486/0.3784, allocations: 0.9765 MB / 0.5159 GB, free: 12.05 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01513/0.3936, allocations: 4.095 MB / 0.5199 GB, free: 9.887 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.02042/0.414, allocations: 6.228 MB / 0.526 GB, free: 6.602 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.005615/0.4197, allocations: 2.202 MB / 0.5281 GB, free: 5.402 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001908/0.4216, allocations: 0.8141 MB / 0.5289 GB, free: 4.883 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003294/0.4249, allocations: 1.213 MB / 0.5301 GB, free: 4.184 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001802/0.4267, allocations: 0.7781 MB / 0.5309 GB, free: 3.742 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002339/0.427, allocations: 61.69 kB / 0.5309 GB, free: 3.742 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02157/0.4486, allocations: 8.272 MB / 0.539 GB, free: 64 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007595/0.4494, allocations: 308 kB / 0.5393 GB, free: 15.84 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009541/0.4503, allocations: 330.5 kB / 0.5396 GB, free: 15.68 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01088/0.4612, allocations: 4.665 MB / 0.5442 GB, free: 12.06 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.416e-06/0.4613, allocations: 0 / 0.5442 GB, free: 12.06 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.494e-06/0.4613, allocations: 0 / 0.5442 GB, free: 12.06 MB / 414.1 MB Notification: Performance of Transformations before backend: time 4.208e-05/0.4613, allocations: 0 / 0.5442 GB, free: 12.06 MB / 414.1 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.007016/0.4683, allocations: 2.441 MB / 0.5465 GB, free: 9.566 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.365e-05/0.4684, allocations: 12.56 kB / 0.5466 GB, free: 9.555 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007073/0.4755, allocations: 0.8801 MB / 0.5474 GB, free: 8.672 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001875/0.4774, allocations: 0.8924 MB / 0.5483 GB, free: 7.738 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001128/0.4775, allocations: 110.3 kB / 0.5484 GB, free: 7.629 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001598/0.4777, allocations: 112 kB / 0.5485 GB, free: 7.52 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005682/0.4834, allocations: 2.294 MB / 0.5507 GB, free: 5.066 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.755e-05/0.4834, allocations: 7.938 kB / 0.5507 GB, free: 5.059 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001383/0.4836, allocations: 56 kB / 0.5508 GB, free: 5.004 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.655e-05/0.4836, allocations: 32 kB / 0.5508 GB, free: 4.973 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00617/0.4898, allocations: 2.209 MB / 0.553 GB, free: 2.754 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0129/0.5027, allocations: 10.05 MB / 0.5628 GB, free: 7.941 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005349/0.5081, allocations: 1.762 MB / 0.5645 GB, free: 6.172 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05266/0.5608, allocations: 26.33 MB / 0.5902 GB, free: 8.871 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.133e-05/0.5609, allocations: 47.56 kB / 0.5903 GB, free: 8.816 MB / 462.1 MB Notification: Performance of pre-optimization done (n=88): time 2.705e-06/0.5609, allocations: 0 / 0.5903 GB, free: 8.816 MB / 462.1 MB Notification: Performance of matching and sorting (n=88): time 0.009785/0.5707, allocations: 2.934 MB / 0.5931 GB, free: 5.871 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000127/0.5709, allocations: 274 kB / 0.5934 GB, free: 5.543 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001459/0.5723, allocations: 1.049 MB / 0.5944 GB, free: 4.484 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001295/0.5725, allocations: 45.7 kB / 0.5945 GB, free: 4.434 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005008/0.573, allocations: 0.6085 MB / 0.5951 GB, free: 3.816 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002843/0.5733, allocations: 307.7 kB / 0.5954 GB, free: 3.512 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.177e-05/0.5733, allocations: 20 kB / 0.5954 GB, free: 3.492 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001419/0.5735, allocations: 353.8 kB / 0.5957 GB, free: 3.141 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001354/0.5749, allocations: 0.5022 MB / 0.5962 GB, free: 2.641 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001657/0.5765, allocations: 0.9047 MB / 0.5971 GB, free: 1.555 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001452/0.578, allocations: 0.5818 MB / 0.5977 GB, free: 0.9727 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.118e-06/0.578, allocations: 0 / 0.5977 GB, free: 0.9727 MB / 462.1 MB Notification: Performance of matching and sorting (n=141) (initialization): time 0.003805/0.5818, allocations: 1.55 MB / 0.5992 GB, free: 15.41 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.001798/0.5836, allocations: 4.465 MB / 0.6035 GB, free: 10.62 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.561e-05/0.5837, allocations: 12 kB / 0.6036 GB, free: 10.61 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.382e-05/0.5837, allocations: 20 kB / 0.6036 GB, free: 10.59 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001269/0.585, allocations: 359.5 kB / 0.6039 GB, free: 10.24 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.381e-05/0.585, allocations: 23.92 kB / 0.6039 GB, free: 10.21 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001402/0.5865, allocations: 246.2 kB / 0.6042 GB, free: 9.973 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001321/0.5866, allocations: 63.98 kB / 0.6042 GB, free: 9.91 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.01e-05/0.5866, allocations: 4 kB / 0.6042 GB, free: 9.906 MB / 478.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003306/0.5899, allocations: 1.385 MB / 0.6056 GB, free: 8.52 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.889e-05/0.59, allocations: 12 kB / 0.6056 GB, free: 8.508 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.085e-05/0.59, allocations: 23.95 kB / 0.6056 GB, free: 8.484 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001173/0.5912, allocations: 352.1 kB / 0.606 GB, free: 8.141 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.773e-05/0.5912, allocations: 23.92 kB / 0.606 GB, free: 8.117 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001328/0.5926, allocations: 226.6 kB / 0.6062 GB, free: 7.895 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001268/0.5927, allocations: 63.97 kB / 0.6063 GB, free: 7.832 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 51 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (141): * Single equations (assignments): 141 * 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.0006931/0.5934, allocations: 390.4 kB / 0.6066 GB, free: 7.441 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003475/0.5938, allocations: 134.4 kB / 0.6068 GB, free: 7.309 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009026/0.6028, allocations: 6.803 MB / 0.6134 GB, free: 480 kB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.083e-05/0.6029, allocations: 87.81 kB / 0.6135 GB, free: 392 kB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.358e-05/0.6029, allocations: 0 / 0.6135 GB, free: 392 kB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.886e-05/0.603, allocations: 7.969 kB / 0.6135 GB, free: 384 kB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004395/0.6074, allocations: 3.285 MB / 0.6167 GB, free: 13.03 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.118e-05/0.6074, allocations: 4 kB / 0.6167 GB, free: 13.03 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001076/0.6085, allocations: 303.6 kB / 0.617 GB, free: 12.73 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.561e-05/0.6085, allocations: 4 kB / 0.617 GB, free: 12.73 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.376e-05/0.6086, allocations: 28 kB / 0.617 GB, free: 12.7 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.917e-06/0.6086, allocations: 7.938 kB / 0.617 GB, free: 12.69 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/0.6086, allocations: 3.781 kB / 0.617 GB, free: 12.69 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004828/0.6135, allocations: 3.12 MB / 0.6201 GB, free: 9.543 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001619/0.6151, allocations: 0.885 MB / 0.6209 GB, free: 8.633 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004706/0.6156, allocations: 23.98 kB / 0.621 GB, free: 8.609 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001256/0.6169, allocations: 143.6 kB / 0.6211 GB, free: 8.469 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002183/0.6171, allocations: 124.8 kB / 0.6212 GB, free: 8.348 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.128e-05/0.6172, allocations: 43.97 kB / 0.6213 GB, free: 8.305 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.002555/0.6198, allocations: 1.538 MB / 0.6228 GB, free: 6.758 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.6198, allocations: 0 / 0.6228 GB, free: 6.758 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.006448/0.6262, allocations: 1.752 MB / 0.6245 GB, free: 5.004 MB / 494.1 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 ($cse3.phase,$cse3.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse10.phase,$cse10.region,$cse13.phase,$cse13.region,$cse14.phase,$cse14.region,$cse16.phase,$cse16.region,$cse17.phase,$cse17.region,$cse20.phase,$cse20.region,$cse24.phase,$cse24.region,$cse28.phase,$cse28.region,$cse32.phase,$cse32.region,$cse35.phase,$cse35.region,$cse36.phase,$cse36.region,$cse39.phase,$cse39.region,$cse43.phase,$cse43.region,$cse46.phase,$cse46.region,$cse47.phase,$cse47.region,$cse49.phase,$cse49.region,$cse50.phase,$cse50.region,$cse52.phase,$cse52.region,$cse53.phase,$cse53.region,$cse55.phase,$cse55.region,$cse56.phase,$cse56.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 () * Number of clocked 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.006181/0.6324, allocations: 1.372 MB / 0.6258 GB, free: 3.637 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.005842/0.6383, allocations: 2.677 MB / 0.6284 GB, free: 0.9609 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 7.113e-06/0.6383, allocations: 0 / 0.6284 GB, free: 0.9609 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.1762/0.8146, allocations: 1.535 MB / 0.6299 GB, free: 151.2 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003824/0.8184, allocations: 0.7851 MB / 0.6307 GB, free: 151.2 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00689/0.8253, allocations: 6.542 MB / 0.6371 GB, free: 148.3 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009123/0.8263, allocations: 1.87 MB / 0.6389 GB, free: 147.6 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.002807/0.8291, allocations: 2.117 MB / 0.641 GB, free: 147.6 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003002/0.8294, allocations: 143.3 kB / 0.6411 GB, free: 147.6 MB / 494.1 MB Notification: Performance of SimCode: time 7.72e-07/0.8294, allocations: 0 / 0.6411 GB, free: 147.6 MB / 494.1 MB Notification: Performance of Templates: time 0.1059/0.9354, allocations: 63.74 MB / 0.7034 GB, free: 113.8 MB / 494.1 MB make -j1 -f ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: