Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.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.TestValveLinear,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|SinkP1.ports.1..m_flow|SinkP1.ports.1..p|SinkP1.ports.1..h_outflow|Opening.y|downstreamPressure.y",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.002748/0.002752, allocations: 361.6 kB / 15.95 MB, free: 6.207 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.684/3.684, allocations: 388.9 MB / 405.6 MB, free: 47.9 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.005092/0.005092, allocations: 220.8 kB / 451 MB, free: 2.375 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.7904/0.7904, allocations: 80.01 MB / 0.5627 GB, free: 5.988 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006353/0.0006355, allocations: 12 kB / 0.6265 GB, free: 4.551 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1188/0.1195, allocations: 54.88 MB / 0.6801 GB, free: 13.54 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.129/8.249, allocations: 2.587 GB / 3.268 GB, free: 65.8 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003213/8.249, allocations: 88.45 kB / 3.268 GB, free: 65.75 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.117/9.366, allocations: 216.1 MB / 3.479 GB, free: 51.32 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.103e-06/9.366, allocations: 0 / 3.479 GB, free: 51.32 MB / 490.7 MB Notification: Performance of Transformations before backend: time 2.995e-05/9.366, allocations: 11.05 kB / 3.479 GB, free: 51.31 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.005511/9.371, allocations: 1.223 MB / 3.48 GB, free: 50.04 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.913e-05/9.371, allocations: 8.031 kB / 3.48 GB, free: 50.04 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00246/9.374, allocations: 224.9 kB / 3.48 GB, free: 49.82 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008148/9.375, allocations: 389.7 kB / 3.48 GB, free: 49.4 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.562e-05/9.375, allocations: 29.34 kB / 3.48 GB, free: 49.38 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.355e-05/9.375, allocations: 28 kB / 3.481 GB, free: 49.35 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002262/9.377, allocations: 0.6107 MB / 3.481 GB, free: 48.7 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.14e-05/9.377, allocations: 7.938 kB / 3.481 GB, free: 48.69 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.972e-05/9.377, allocations: 16 kB / 3.481 GB, free: 48.67 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.271e-05/9.377, allocations: 11.98 kB / 3.481 GB, free: 48.66 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00253/9.38, allocations: 0.5758 MB / 3.482 GB, free: 48.08 MB / 490.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003269/9.383, allocations: 2.546 MB / 3.484 GB, free: 45.32 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002323/9.385, allocations: 466.2 kB / 3.485 GB, free: 44.85 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007157/9.386, allocations: 188.8 kB / 3.485 GB, free: 44.66 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.52/9.906, allocations: 51.34 MB / 3.535 GB, free: 69.62 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.19e-05/9.906, allocations: 36.91 kB / 3.535 GB, free: 69.58 MB / 490.7 MB Notification: Performance of pre-optimization done (n=25): time 2.775e-06/9.906, allocations: 0 / 3.535 GB, free: 69.58 MB / 490.7 MB Notification: Performance of matching and sorting (n=25): time 0.004405/9.911, allocations: 0.8259 MB / 3.536 GB, free: 69.55 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.795e-05/9.911, allocations: 108.7 kB / 3.536 GB, free: 69.43 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004454/9.911, allocations: 291.3 kB / 3.536 GB, free: 69.33 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 6.721e-05/9.911, allocations: 33.58 kB / 3.536 GB, free: 69.3 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000149/9.912, allocations: 219.8 kB / 3.536 GB, free: 69.18 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.63e-05/9.912, allocations: 83.91 kB / 3.537 GB, free: 69.14 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.675e-05/9.912, allocations: 7.375 kB / 3.537 GB, free: 69.14 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 9.124e-05/9.912, allocations: 342.6 kB / 3.537 GB, free: 68.83 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007013/9.912, allocations: 153.8 kB / 3.537 GB, free: 68.82 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008118/9.913, allocations: 280.8 kB / 3.537 GB, free: 68.68 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007502/9.914, allocations: 188.6 kB / 3.537 GB, free: 68.68 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.371e-06/9.914, allocations: 2.625 kB / 3.537 GB, free: 68.68 MB / 490.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001833/9.916, allocations: 477.5 kB / 3.538 GB, free: 68.64 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.925e-05/9.916, allocations: 10.86 kB / 3.538 GB, free: 68.64 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.229e-05/9.916, allocations: 3.906 kB / 3.538 GB, free: 68.64 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.338e-05/9.916, allocations: 4.844 kB / 3.538 GB, free: 68.64 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006984/9.917, allocations: 103.9 kB / 3.538 GB, free: 68.64 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.862e-05/9.917, allocations: 13.5 kB / 3.538 GB, free: 68.64 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000679/9.918, allocations: 73.42 kB / 3.538 GB, free: 68.63 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.539e-05/9.918, allocations: 23.3 kB / 3.538 GB, free: 68.63 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 4 (SourceP1.medium.phase,SinkP1.medium.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 (40): * Single equations (assignments): 40 * 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.0002881/9.918, allocations: 161.8 kB / 3.538 GB, free: 68.51 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.827e-05/9.918, allocations: 32.06 kB / 3.538 GB, free: 68.5 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003597/9.922, allocations: 1.925 MB / 3.54 GB, free: 68.32 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.425e-05/9.922, allocations: 34.36 kB / 3.54 GB, free: 68.32 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.935e-06/9.922, allocations: 5.312 kB / 3.54 GB, free: 68.32 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.442e-05/9.922, allocations: 0 / 3.54 GB, free: 68.32 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001421/9.923, allocations: 0.9854 MB / 3.541 GB, free: 68.09 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.893e-06/9.923, allocations: 7.453 kB / 3.541 GB, free: 68.09 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006174/9.924, allocations: 84.17 kB / 3.541 GB, free: 68.09 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.576e-06/9.924, allocations: 7.875 kB / 3.541 GB, free: 68.09 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.098e-05/9.924, allocations: 9.062 kB / 3.541 GB, free: 68.09 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.24e-06/9.924, allocations: 0 / 3.541 GB, free: 68.09 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/9.924, allocations: 0 / 3.541 GB, free: 68.09 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002292/9.926, allocations: 1.101 MB / 3.542 GB, free: 67.87 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002679/9.927, allocations: 216.9 kB / 3.543 GB, free: 67.73 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.555e-05/9.927, allocations: 2.938 kB / 3.543 GB, free: 67.73 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005326/9.927, allocations: 49.5 kB / 3.543 GB, free: 67.73 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001007/9.927, allocations: 30.55 kB / 3.543 GB, free: 67.73 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.518e-05/9.927, allocations: 14.39 kB / 3.543 GB, free: 67.73 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0003885/9.928, allocations: 258.8 kB / 3.543 GB, free: 67.64 MB / 490.7 MB Notification: Performance of sort global known variables: time 3.81e-07/9.928, allocations: 3.812 kB / 3.543 GB, free: 67.64 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.005171/9.933, allocations: 1.012 MB / 3.544 GB, free: 67.64 MB / 490.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: 18 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.region3boundary,$cse4.region3boundary,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse11.phase,$cse11.region,SourceP1.medium.phase,SinkP1.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 9 * 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.009847/9.943, allocations: 1.367 MB / 3.545 GB, free: 67.54 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.001948/9.945, allocations: 0.6293 MB / 3.546 GB, free: 67.52 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 4.498e-06/9.945, allocations: 0 / 3.546 GB, free: 67.52 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001125/9.946, allocations: 0.5342 MB / 3.546 GB, free: 67.52 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001887/9.948, allocations: 175.7 kB / 3.547 GB, free: 67.52 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1066/10.05, allocations: 39.47 MB / 3.585 GB, free: 66.12 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004576/10.06, allocations: 0.9793 MB / 3.586 GB, free: 65.41 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.0007689/10.06, allocations: 237.3 kB / 3.586 GB, free: 65.4 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001652/10.06, allocations: 37.75 kB / 3.586 GB, free: 65.39 MB / 490.7 MB Notification: Performance of SimCode: time 1.332e-06/10.06, allocations: 7.172 kB / 3.586 GB, free: 65.39 MB / 490.7 MB Notification: Performance of Templates: time 0.0743/10.13, allocations: 33.24 MB / 3.619 GB, free: 63.61 MB / 490.7 MB