Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.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.TestValveIncompressible,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible") translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001168/0.001168, allocations: 100.1 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.001506/0.001507, allocations: 177.3 kB / 15.95 MB, free: 216 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.491/1.491, 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.3397/0.3397, allocations: 38.04 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.0005696/0.0005697, allocations: 12 kB / 376.4 MB, free: 15.19 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1287/0.1292, allocations: 57.52 MB / 433.9 MB, free: 5.57 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible): time 0.2844/0.4138, allocations: 53.82 MB / 487.8 MB, free: 23.8 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02597/0.4398, allocations: 21.33 MB / 0.4972 GB, free: 9.168 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001969/0.4418, allocations: 33.78 kB / 0.4972 GB, free: 9.148 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002841/0.4447, allocations: 0.7478 MB / 0.4979 GB, free: 8.723 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01433/0.459, allocations: 3.715 MB / 0.5015 GB, free: 6.816 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01872/0.4778, allocations: 5.13 MB / 0.5066 GB, free: 4.145 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.004336/0.4821, allocations: 1.667 MB / 0.5082 GB, free: 3.277 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001607/0.4838, allocations: 0.5957 MB / 0.5088 GB, free: 3.07 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002679/0.4865, allocations: 0.9421 MB / 0.5097 GB, free: 2.648 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001482/0.488, allocations: 0.5976 MB / 0.5103 GB, free: 2.395 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002028/0.4882, allocations: 47.22 kB / 0.5103 GB, free: 2.395 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01979/0.508, allocations: 7.909 MB / 0.518 GB, free: 0.5625 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006423/0.5087, allocations: 236.3 kB / 0.5183 GB, free: 404 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007697/0.5095, allocations: 259 kB / 0.5185 GB, free: 272 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01073/0.5202, allocations: 4.13 MB / 0.5225 GB, free: 13.8 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.5202, allocations: 3.938 kB / 0.5226 GB, free: 13.8 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.565e-06/0.5203, allocations: 4 kB / 0.5226 GB, free: 13.8 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.75e-05/0.5203, allocations: 0 / 0.5226 GB, free: 13.8 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 226 * Number of variables: 226 Notification: Performance of Generate backend data structure: time 0.007151/0.5274, allocations: 2.043 MB / 0.5245 GB, free: 12.4 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.744e-05/0.5275, allocations: 14.7 kB / 0.5246 GB, free: 12.4 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005337/0.5329, allocations: 0.6671 MB / 0.5252 GB, free: 12.13 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001609/0.5345, allocations: 0.7296 MB / 0.5259 GB, free: 11.52 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001068/0.5346, allocations: 79.19 kB / 0.526 GB, free: 11.48 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001315/0.5348, allocations: 85.75 kB / 0.5261 GB, free: 11.45 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00459/0.5394, allocations: 1.734 MB / 0.5278 GB, free: 10.37 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.784e-05/0.5394, allocations: 10.69 kB / 0.5278 GB, free: 10.36 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001214/0.5395, allocations: 44.38 kB / 0.5278 GB, free: 10.33 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.213e-05/0.5396, allocations: 27.33 kB / 0.5279 GB, free: 10.32 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004463/0.544, allocations: 1.667 MB / 0.5295 GB, free: 9.562 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01037/0.5544, allocations: 7.579 MB / 0.5369 GB, free: 2.672 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004199/0.5587, allocations: 1.322 MB / 0.5382 GB, free: 1.422 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04953/0.6083, allocations: 24.52 MB / 0.5621 GB, free: 5.977 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.235e-05/0.6083, allocations: 39.12 kB / 0.5622 GB, free: 5.93 MB / 430.1 MB Notification: Performance of pre-optimization done (n=67): time 3.958e-06/0.6084, allocations: 7.938 kB / 0.5622 GB, free: 5.922 MB / 430.1 MB Notification: Performance of matching and sorting (n=67): time 0.007853/0.6162, allocations: 2.234 MB / 0.5644 GB, free: 3.684 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001301/0.6164, allocations: 218.2 kB / 0.5646 GB, free: 3.418 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001253/0.6177, allocations: 0.8273 MB / 0.5654 GB, free: 2.566 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000101/0.6178, allocations: 37.7 kB / 0.5654 GB, free: 2.523 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000397/0.6182, allocations: 479.2 kB / 0.5659 GB, free: 2.051 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002243/0.6184, allocations: 224.8 kB / 0.5661 GB, free: 1.828 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.412e-05/0.6185, allocations: 20 kB / 0.5661 GB, free: 1.809 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001615/0.6186, allocations: 341.9 kB / 0.5664 GB, free: 1.469 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009964/0.6196, allocations: 393.7 kB / 0.5668 GB, free: 1.086 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001159/0.6208, allocations: 0.6945 MB / 0.5675 GB, free: 268 kB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001059/0.6219, allocations: 446.9 kB / 0.5679 GB, free: 15.82 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.3e-05/0.6219, allocations: 4 kB / 0.5679 GB, free: 15.82 MB / 446.1 MB Notification: Performance of matching and sorting (n=109) (initialization): time 0.002752/0.6247, allocations: 1.196 MB / 0.5691 GB, free: 14.62 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.001346/0.626, allocations: 3.226 MB / 0.5722 GB, free: 11.14 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.497e-05/0.626, allocations: 8 kB / 0.5722 GB, free: 11.13 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.777e-05/0.6261, allocations: 16 kB / 0.5722 GB, free: 11.12 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009723/0.627, allocations: 267.6 kB / 0.5725 GB, free: 10.86 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.398e-05/0.6271, allocations: 19.92 kB / 0.5725 GB, free: 10.84 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001281/0.6284, allocations: 190.7 kB / 0.5727 GB, free: 10.65 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.781e-05/0.6285, allocations: 55.91 kB / 0.5728 GB, free: 10.59 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.245e-05/0.6285, allocations: 7.953 kB / 0.5728 GB, free: 10.59 MB / 446.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002413/0.6309, allocations: 1.066 MB / 0.5738 GB, free: 9.52 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.347e-06/0.6309, allocations: 8 kB / 0.5738 GB, free: 9.512 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.286e-05/0.631, allocations: 16.09 kB / 0.5738 GB, free: 9.496 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000884/0.6318, allocations: 267.6 kB / 0.5741 GB, free: 9.234 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.78e-05/0.6319, allocations: 19.94 kB / 0.5741 GB, free: 9.215 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00108/0.633, allocations: 170.9 kB / 0.5743 GB, free: 9.047 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.474e-05/0.633, allocations: 47.98 kB / 0.5743 GB, free: 9 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 12 (SourceP1.medium.phase,SinkP1.medium.phase,SourceP2.medium.phase,SinkP2.medium.phase,SourceP3.medium.phase,SinkP3.medium.phase,V3.state_b.phase,V3.state_a.phase,V2.state_b.phase,V2.state_a.phase,V1.state_b.phase,V1.state_a.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (109): * Single equations (assignments): 109 * 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.0005939/0.6336, allocations: 340.8 kB / 0.5746 GB, free: 8.656 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001759/0.6338, allocations: 106.7 kB / 0.5747 GB, free: 8.551 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006062/0.6399, allocations: 5.128 MB / 0.5797 GB, free: 3.375 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.608e-05/0.64, allocations: 55.91 kB / 0.5798 GB, free: 3.32 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.628e-06/0.64, allocations: 3.984 kB / 0.5798 GB, free: 3.316 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.105e-05/0.64, allocations: 7.922 kB / 0.5798 GB, free: 3.309 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002988/0.643, allocations: 2.502 MB / 0.5823 GB, free: 0.7422 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.006e-05/0.643, allocations: 4 kB / 0.5823 GB, free: 0.7383 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008735/0.6439, allocations: 235.8 kB / 0.5825 GB, free: 0.5078 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.667e-05/0.6439, allocations: 7.938 kB / 0.5825 GB, free: 0.5 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.821e-05/0.644, allocations: 19.95 kB / 0.5825 GB, free: 492 kB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.855e-06/0.644, allocations: 7.984 kB / 0.5825 GB, free: 484 kB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.939e-06/0.644, allocations: 0 / 0.5825 GB, free: 484 kB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003456/0.6475, allocations: 2.383 MB / 0.5848 GB, free: 14.05 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001006/0.6485, allocations: 0.6875 MB / 0.5855 GB, free: 13.34 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002082/0.6487, allocations: 16 kB / 0.5855 GB, free: 13.32 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008703/0.6496, allocations: 111.7 kB / 0.5856 GB, free: 13.21 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001622/0.6498, allocations: 84.86 kB / 0.5857 GB, free: 13.13 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.893e-05/0.6498, allocations: 31.98 kB / 0.5857 GB, free: 13.1 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001489/0.6513, allocations: 1.191 MB / 0.5869 GB, free: 11.88 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.6513, allocations: 0 / 0.5869 GB, free: 11.88 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.006083/0.6574, allocations: 1.561 MB / 0.5884 GB, free: 10.32 MB / 462.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: 42 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse11.phase,$cse11.region,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,$cse18.phase,$cse18.region,$cse22.phase,$cse22.region,$cse25.phase,$cse25.region,$cse26.phase,$cse26.region,$cse29.phase,$cse29.region,$cse33.phase,$cse33.region,$cse36.phase,$cse36.region,$cse37.phase,$cse37.region,$cse40.phase,$cse40.region,SourceP1.medium.phase,SinkP1.medium.phase,SourceP2.medium.phase,SinkP2.medium.phase,SourceP3.medium.phase,SinkP3.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (91): * Single equations (assignments): 73 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 18 * 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.007132/0.6646, allocations: 1.32 MB / 0.5897 GB, free: 8.992 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004568/0.6692, allocations: 2.049 MB / 0.5917 GB, free: 6.941 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.313e-06/0.6692, allocations: 4 kB / 0.5917 GB, free: 6.938 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00168/0.6709, allocations: 1.164 MB / 0.5929 GB, free: 5.773 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003456/0.6744, allocations: 0.5954 MB / 0.5934 GB, free: 5.172 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006514/0.6809, allocations: 4.925 MB / 0.5983 GB, free: 216 kB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001024/0.682, allocations: 1.569 MB / 0.5998 GB, free: 14.61 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002457/0.6844, allocations: 1.592 MB / 0.6013 GB, free: 13.02 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002635/0.6847, allocations: 103.4 kB / 0.6014 GB, free: 12.91 MB / 478.1 MB Notification: Performance of SimCode: time 1.223e-06/0.6847, allocations: 4 kB / 0.6014 GB, free: 12.91 MB / 478.1 MB Notification: Performance of Templates: time 0.295/0.9798, allocations: 56.07 MB / 0.6562 GB, free: 147.9 MB / 494.1 MB make -j1 -f ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.makefile Environment - environmentSimulation: (rm -f ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.pipe ; mkfifo ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.pipe ; head -c 1048576 < ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.pipe >> ../files/ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.sim & ./ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.pipe 2>&1) Environment - environmentSimulation: