Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.conf.json Using package ModelicaTest with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo) Using package ModelicaServices with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+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.1_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.002639/0.002638, allocations: 350.6 kB / 15.94 MB, free: 6.215 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 3.512/3.512, allocations: 341.5 MB / 358.2 MB, free: 12.63 MB / 298.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.003641/0.003642, allocations: 218.1 kB / 397.9 MB, free: 4.973 MB / 330.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.4591/0.4591, allocations: 76.09 MB / 0.5014 GB, free: 112.6 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006573/0.0006576, allocations: 16 kB / 0.5592 GB, free: 53.47 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08779/0.08849, allocations: 48.7 MB / 0.6067 GB, free: 4.652 MB / 362.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.784/7.872, allocations: 2.477 GB / 3.083 GB, free: 51.5 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003149/7.873, allocations: 86.64 kB / 3.084 GB, free: 51.45 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.092/8.965, allocations: 212.2 MB / 3.291 GB, free: 24.41 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.565e-06/8.965, allocations: 4 kB / 3.291 GB, free: 24.41 MB / 442.7 MB Notification: Performance of Transformations before backend: time 2.828e-05/8.965, allocations: 4 kB / 3.291 GB, free: 24.41 MB / 442.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.005712/8.971, allocations: 1.204 MB / 3.292 GB, free: 23.15 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.082e-05/8.971, allocations: 8.031 kB / 3.292 GB, free: 23.14 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00303/8.974, allocations: 215.6 kB / 3.292 GB, free: 22.93 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001234/8.975, allocations: 394.6 kB / 3.293 GB, free: 22.51 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.928e-05/8.975, allocations: 28.66 kB / 3.293 GB, free: 22.48 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.733e-05/8.975, allocations: 24 kB / 3.293 GB, free: 22.46 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003652/8.979, allocations: 0.6143 MB / 3.293 GB, free: 21.8 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.123e-05/8.979, allocations: 4 kB / 3.293 GB, free: 21.8 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.939e-05/8.979, allocations: 15.98 kB / 3.293 GB, free: 21.78 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.576e-05/8.979, allocations: 8 kB / 3.293 GB, free: 21.77 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003816/8.983, allocations: 0.5758 MB / 3.294 GB, free: 21.2 MB / 442.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.004634/8.988, allocations: 2.545 MB / 3.296 GB, free: 18.42 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002931/8.991, allocations: 468.4 kB / 3.297 GB, free: 17.95 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007067/8.991, allocations: 189.2 kB / 3.297 GB, free: 17.77 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.4859/9.477, allocations: 51.29 MB / 3.347 GB, free: 44.24 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.531e-05/9.477, allocations: 37.22 kB / 3.347 GB, free: 44.2 MB / 442.7 MB Notification: Performance of pre-optimization done (n=25): time 2.765e-06/9.477, allocations: 0.9375 kB / 3.347 GB, free: 44.2 MB / 442.7 MB Notification: Performance of matching and sorting (n=25): time 0.004266/9.482, allocations: 0.8269 MB / 3.348 GB, free: 44.17 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.537e-05/9.482, allocations: 106.7 kB / 3.348 GB, free: 44.04 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004175/9.482, allocations: 288.8 kB / 3.348 GB, free: 43.94 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 3.973e-05/9.482, allocations: 28.95 kB / 3.348 GB, free: 43.91 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001638/9.482, allocations: 224.5 kB / 3.348 GB, free: 43.79 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001/9.482, allocations: 83.88 kB / 3.349 GB, free: 43.75 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.789e-05/9.482, allocations: 9.344 kB / 3.349 GB, free: 43.75 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 8.905e-05/9.483, allocations: 348.2 kB / 3.349 GB, free: 43.44 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006807/9.483, allocations: 152.7 kB / 3.349 GB, free: 43.43 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007531/9.484, allocations: 278.9 kB / 3.349 GB, free: 43.29 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007669/9.485, allocations: 179.1 kB / 3.349 GB, free: 43.29 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.962e-06/9.485, allocations: 4.625 kB / 3.349 GB, free: 43.29 MB / 442.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001757/9.487, allocations: 477.8 kB / 3.35 GB, free: 43.25 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.66e-05/9.487, allocations: 15.14 kB / 3.35 GB, free: 43.24 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.028e-05/9.487, allocations: 5.812 kB / 3.35 GB, free: 43.24 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.557e-05/9.487, allocations: 6.656 kB / 3.35 GB, free: 43.24 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006768/9.487, allocations: 104.9 kB / 3.35 GB, free: 43.24 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.627e-05/9.487, allocations: 9.719 kB / 3.35 GB, free: 43.24 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005983/9.488, allocations: 70.58 kB / 3.35 GB, free: 43.23 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.771e-05/9.488, allocations: 17.78 kB / 3.35 GB, free: 43.23 MB / 442.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.0002995/9.488, allocations: 165.5 kB / 3.35 GB, free: 43.12 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.334e-05/9.488, allocations: 33.34 kB / 3.35 GB, free: 43.11 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003464/9.492, allocations: 1.938 MB / 3.352 GB, free: 42.93 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.839e-05/9.492, allocations: 31.5 kB / 3.352 GB, free: 42.93 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/9.492, allocations: 1.859 kB / 3.352 GB, free: 42.93 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.025e-06/9.492, allocations: 0.8438 kB / 3.352 GB, free: 42.93 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001357/9.493, allocations: 0.9795 MB / 3.353 GB, free: 42.7 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.524e-06/9.493, allocations: 3.328 kB / 3.353 GB, free: 42.7 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006226/9.494, allocations: 91 kB / 3.353 GB, free: 42.7 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.594e-06/9.494, allocations: 0 / 3.353 GB, free: 42.7 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.233e-05/9.494, allocations: 11.69 kB / 3.353 GB, free: 42.7 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.863e-06/9.494, allocations: 3.953 kB / 3.353 GB, free: 42.69 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/9.494, allocations: 3.703 kB / 3.353 GB, free: 42.69 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002264/9.496, allocations: 1.103 MB / 3.354 GB, free: 42.47 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002701/9.497, allocations: 204.2 kB / 3.355 GB, free: 42.34 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.92e-05/9.497, allocations: 12.08 kB / 3.355 GB, free: 42.34 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005615/9.497, allocations: 52.92 kB / 3.355 GB, free: 42.34 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001285/9.498, allocations: 33.86 kB / 3.355 GB, free: 42.33 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.122e-05/9.498, allocations: 17.53 kB / 3.355 GB, free: 42.33 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0004012/9.498, allocations: 263.2 kB / 3.355 GB, free: 42.25 MB / 442.7 MB Notification: Performance of sort global known variables: time 4.11e-07/9.498, allocations: 0 / 3.355 GB, free: 42.25 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.005335/9.503, allocations: 1.005 MB / 3.356 GB, free: 42.25 MB / 442.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.01012/9.514, allocations: 1.372 MB / 3.357 GB, free: 42.14 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002071/9.516, allocations: 0.6246 MB / 3.358 GB, free: 42.14 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.619e-06/9.516, allocations: 1.125 kB / 3.358 GB, free: 42.14 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001169/9.517, allocations: 0.5298 MB / 3.358 GB, free: 42.13 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001865/9.519, allocations: 183.5 kB / 3.359 GB, free: 42.13 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09686/9.616, allocations: 39.23 MB / 3.397 GB, free: 40.21 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004926/9.616, allocations: 0.9799 MB / 3.398 GB, free: 39.51 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0007917/9.617, allocations: 246.2 kB / 3.398 GB, free: 39.5 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001577/9.617, allocations: 38.91 kB / 3.398 GB, free: 39.49 MB / 442.7 MB Notification: Performance of SimCode: time 1.192e-06/9.617, allocations: 0 / 3.398 GB, free: 39.49 MB / 442.7 MB Notification: Performance of Templates: time 0.06705/9.684, allocations: 32.98 MB / 3.43 GB, free: 37.71 MB / 442.7 MB