Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.conf.json Using package ModelicaTest with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|SourceP1.ports.1..m_flow|SourceP1.ports.1..p|SourceP1.ports.1..h_outflow|V1.port_b.m_flow|V1.port_b.p|V1.port_b.h_outflow|V1.minLimiter.y|SinkP1.ports.1..m_flow|SinkP1.ports.1..p|SinkP1.ports.1..h_outflow|Opening.y|SourceP2.ports.1..m_flow|SourceP2.ports.1..p|SourceP2.ports.1..h_outflow|V2.port_b.m_flow|V2.port_b.p|V2.port_b.h_outflow|V2.minLimiter.y|SinkP2.ports.1..m_flow|SinkP2.ports.1..p|SinkP2.ports.1..h_outflow|SourceP3.ports.1..m_flow|SourceP3.ports.1..p|SourceP3.ports.1..h_outflow|V3.port_b.m_flow|V3.port_b.p|V3.port_b.h_outflow|V3.minLimiter.y|SinkP3.ports.1..m_flow|SinkP3.ports.1..p|SinkP3.ports.1..h_outflow",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.004218/0.004225, allocations: 363.1 kB / 15.95 MB, free: 6.203 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 3.648/3.648, allocations: 388.9 MB / 405.6 MB, free: 47.91 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.003769/0.003769, allocations: 232.8 kB / 451 MB, free: 2.383 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.747/0.747, allocations: 80.02 MB / 0.5627 GB, free: 5.98 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000487/0.0004874, allocations: 19.94 kB / 0.6265 GB, free: 4.543 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1175/0.118, allocations: 54.88 MB / 0.6801 GB, free: 13.53 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.11/8.228, allocations: 2.608 GB / 3.288 GB, free: 41.84 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003367/8.229, allocations: 89.89 kB / 3.288 GB, free: 41.79 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.796/11.02, allocations: 0.4959 GB / 3.784 GB, free: 36.71 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.134e-06/11.02, allocations: 0 / 3.784 GB, free: 36.71 MB / 490.7 MB Notification: Performance of Transformations before backend: time 9.928e-05/11.02, allocations: 35.38 kB / 3.784 GB, free: 36.7 MB / 490.7 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.009528/11.03, allocations: 2.164 MB / 3.786 GB, free: 35.62 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.573e-05/11.03, allocations: 10.31 kB / 3.786 GB, free: 35.62 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008147/11.04, allocations: 0.7166 MB / 3.786 GB, free: 35.56 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002326/11.04, allocations: 0.8533 MB / 3.787 GB, free: 35.26 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001107/11.05, allocations: 80.44 kB / 3.787 GB, free: 35.25 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001817/11.05, allocations: 90.86 kB / 3.787 GB, free: 35.25 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00623/11.05, allocations: 1.746 MB / 3.789 GB, free: 34.92 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.324e-05/11.05, allocations: 5.875 kB / 3.789 GB, free: 34.92 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001615/11.05, allocations: 46.03 kB / 3.789 GB, free: 34.92 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.439e-05/11.05, allocations: 22.34 kB / 3.789 GB, free: 34.92 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007049/11.06, allocations: 1.641 MB / 3.791 GB, free: 34.91 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01067/11.07, allocations: 7.371 MB / 3.798 GB, free: 29.91 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005512/11.08, allocations: 1.207 MB / 3.799 GB, free: 29.88 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001401/11.08, allocations: 414 kB / 3.8 GB, free: 29.87 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07031/11.15, allocations: 17.61 MB / 3.817 GB, free: 21.12 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.184e-05/11.15, allocations: 41.28 kB / 3.817 GB, free: 21.08 MB / 490.7 MB Notification: Performance of pre-optimization done (n=67): time 4.058e-06/11.15, allocations: 0 / 3.817 GB, free: 21.08 MB / 490.7 MB Notification: Performance of matching and sorting (n=67): time 0.01057/11.16, allocations: 2.084 MB / 3.819 GB, free: 20.98 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.266e-05/11.16, allocations: 217.7 kB / 3.819 GB, free: 20.73 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001162/11.16, allocations: 0.6872 MB / 3.82 GB, free: 20.59 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00017/11.16, allocations: 38.33 kB / 3.82 GB, free: 20.56 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003938/11.16, allocations: 0.5281 MB / 3.82 GB, free: 20.28 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002675/11.16, allocations: 228.5 kB / 3.821 GB, free: 20.14 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.528e-05/11.16, allocations: 17.44 kB / 3.821 GB, free: 20.14 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001468/11.16, allocations: 399.1 kB / 3.821 GB, free: 19.82 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001574/11.16, allocations: 378.4 kB / 3.821 GB, free: 19.82 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001754/11.16, allocations: 0.7888 MB / 3.822 GB, free: 19.3 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001758/11.17, allocations: 474.3 kB / 3.822 GB, free: 19.27 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.969e-06/11.17, allocations: 7.906 kB / 3.823 GB, free: 19.27 MB / 490.7 MB Notification: Performance of matching and sorting (n=127) (initialization): time 0.004334/11.17, allocations: 1.236 MB / 3.824 GB, free: 19.07 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008743/11.17, allocations: 468.5 kB / 3.824 GB, free: 34.51 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.415e-05/11.17, allocations: 11.44 kB / 3.824 GB, free: 34.51 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.196e-05/11.17, allocations: 25.67 kB / 3.824 GB, free: 34.51 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001948/11.17, allocations: 297.2 kB / 3.824 GB, free: 34.47 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.332e-05/11.17, allocations: 28.84 kB / 3.825 GB, free: 34.47 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001822/11.17, allocations: 184.2 kB / 3.825 GB, free: 34.39 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001592/11.17, allocations: 62.5 kB / 3.825 GB, free: 34.38 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 1.425e-05/11.17, allocations: 3.281 kB / 3.825 GB, free: 34.38 MB / 0.4949 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003881/11.18, allocations: 1.115 MB / 3.826 GB, free: 33.99 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.945e-05/11.18, allocations: 15.06 kB / 3.826 GB, free: 33.99 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.493e-05/11.18, allocations: 19.09 kB / 3.826 GB, free: 33.99 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001785/11.18, allocations: 305.8 kB / 3.826 GB, free: 33.95 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.76e-05/11.18, allocations: 26.31 kB / 3.826 GB, free: 33.95 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001615/11.18, allocations: 164.2 kB / 3.826 GB, free: 33.88 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001459/11.18, allocations: 62.8 kB / 3.826 GB, free: 33.87 MB / 0.4949 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 58 * 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 (127): * Single equations (assignments): 127 * 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.0007772/11.18, allocations: 349.2 kB / 3.827 GB, free: 33.58 MB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002831/11.18, allocations: 93.28 kB / 3.827 GB, free: 33.54 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008124/11.19, allocations: 4.65 MB / 3.831 GB, free: 31.43 MB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.035e-05/11.19, allocations: 67.08 kB / 3.831 GB, free: 31.41 MB / 0.4949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.817e-06/11.19, allocations: 0 / 3.831 GB, free: 31.41 MB / 0.4949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.557e-05/11.19, allocations: 3.047 kB / 3.831 GB, free: 31.41 MB / 0.4949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003181/11.19, allocations: 2.155 MB / 3.834 GB, free: 30.34 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.039e-05/11.19, allocations: 0 / 3.834 GB, free: 30.34 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001416/11.2, allocations: 221 kB / 3.834 GB, free: 30.32 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.213e-05/11.2, allocations: 6.812 kB / 3.834 GB, free: 30.32 MB / 0.4949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001018/11.2, allocations: 21.84 kB / 3.834 GB, free: 30.3 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.988e-06/11.2, allocations: 5.469 kB / 3.834 GB, free: 30.3 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/11.2, allocations: 3.938 kB / 3.834 GB, free: 30.3 MB / 0.4949 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004521/11.2, allocations: 2.281 MB / 3.836 GB, free: 29.26 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008265/11.2, allocations: 455 kB / 3.836 GB, free: 28.94 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002227/11.2, allocations: 19.3 kB / 3.836 GB, free: 28.92 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001122/11.2, allocations: 107.3 kB / 3.837 GB, free: 28.89 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000185/11.2, allocations: 75.8 kB / 3.837 GB, free: 28.88 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.27e-05/11.2, allocations: 21.19 kB / 3.837 GB, free: 28.88 MB / 0.4949 GB Notification: Performance of sorting global known variables: time 0.00105/11.2, allocations: 0.5675 MB / 3.837 GB, free: 28.64 MB / 0.4949 GB Notification: Performance of sort global known variables: time 3.71e-07/11.2, allocations: 0 / 3.837 GB, free: 28.64 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.007554/11.21, allocations: 1.55 MB / 3.839 GB, free: 28.32 MB / 0.4949 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 42 ($cse3.phase,$cse3.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse13.phase,$cse13.region,$cse15.phase,$cse15.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse20.phase,$cse20.region,$cse21.phase,$cse21.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,$cse30.phase,$cse30.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.01101/11.22, allocations: 1.778 MB / 3.84 GB, free: 27.88 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.006174/11.23, allocations: 2.048 MB / 3.842 GB, free: 27.21 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 6.973e-06/11.23, allocations: 7.938 kB / 3.842 GB, free: 27.2 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.002289/11.23, allocations: 1.142 MB / 3.844 GB, free: 26.7 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004539/11.24, allocations: 459.8 kB / 3.844 GB, free: 26.58 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5879/11.82, allocations: 78.44 MB / 3.921 GB, free: 49.68 MB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001047/11.83, allocations: 1.433 MB / 3.922 GB, free: 48.96 MB / 0.4949 GB Notification: Performance of simCode: alias equations: time 0.003905/11.83, allocations: 1.475 MB / 3.923 GB, free: 48.95 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004637/11.83, allocations: 106.3 kB / 3.924 GB, free: 48.94 MB / 0.4949 GB Notification: Performance of SimCode: time 2.224e-06/11.83, allocations: 0 / 3.924 GB, free: 48.94 MB / 0.4949 GB Notification: Performance of Templates: time 0.1175/11.95, allocations: 50.24 MB / 3.973 GB, free: 46.82 MB / 0.4949 GB