Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.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.TestValveDiscrete,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.TestValveDiscrete") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.002731/0.00273, allocations: 361.2 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.85/3.85, allocations: 388.9 MB / 405.6 MB, free: 9.586 MB / 346.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.003559/0.003559, allocations: 230.6 kB / 451 MB, free: 145 MB / 346.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.5072/0.5072, allocations: 80.02 MB / 0.5627 GB, free: 19.76 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004793/0.0004795, allocations: 16 kB / 0.6265 GB, free: 96.52 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09949/0.1, allocations: 54.87 MB / 0.6801 GB, free: 41.65 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.893/7.993, allocations: 2.588 GB / 3.268 GB, free: 58.01 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003196/7.993, allocations: 89.89 kB / 3.268 GB, free: 57.96 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.151/9.144, allocations: 216 MB / 3.479 GB, free: 43.44 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.555e-06/9.144, allocations: 0 / 3.479 GB, free: 43.44 MB / 490.7 MB Notification: Performance of Transformations before backend: time 3.137e-05/9.144, allocations: 12 kB / 3.479 GB, free: 43.43 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.005653/9.15, allocations: 1.205 MB / 3.48 GB, free: 42.17 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.115e-05/9.15, allocations: 8.031 kB / 3.48 GB, free: 42.16 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002436/9.152, allocations: 223.3 kB / 3.48 GB, free: 41.94 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007985/9.153, allocations: 390.6 kB / 3.481 GB, free: 41.52 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.415e-05/9.153, allocations: 29.17 kB / 3.481 GB, free: 41.49 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.973e-05/9.153, allocations: 28.28 kB / 3.481 GB, free: 41.46 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002199/9.155, allocations: 0.6026 MB / 3.481 GB, free: 40.82 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.154e-05/9.155, allocations: 0 / 3.481 GB, free: 40.82 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.23e-05/9.155, allocations: 12 kB / 3.481 GB, free: 40.81 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.271e-05/9.155, allocations: 11.98 kB / 3.481 GB, free: 40.8 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002436/9.158, allocations: 0.5562 MB / 3.482 GB, free: 40.24 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.003347/9.161, allocations: 2.531 MB / 3.484 GB, free: 37.47 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002206/9.164, allocations: 458.1 kB / 3.485 GB, free: 37.02 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006357/9.164, allocations: 176.7 kB / 3.485 GB, free: 36.84 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.5307/9.695, allocations: 51.34 MB / 3.535 GB, free: 72.33 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.946e-05/9.695, allocations: 40.25 kB / 3.535 GB, free: 72.29 MB / 490.7 MB Notification: Performance of pre-optimization done (n=25): time 3.016e-06/9.695, allocations: 2.031 kB / 3.535 GB, free: 72.29 MB / 490.7 MB Notification: Performance of matching and sorting (n=25): time 0.004169/9.699, allocations: 0.7777 MB / 3.536 GB, free: 72.26 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.387e-05/9.699, allocations: 112.5 kB / 3.536 GB, free: 72.14 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004517/9.7, allocations: 286 kB / 3.536 GB, free: 72.04 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 5.042e-05/9.7, allocations: 30.45 kB / 3.536 GB, free: 72.01 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001999/9.7, allocations: 218.5 kB / 3.536 GB, free: 71.89 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.178e-05/9.7, allocations: 87.7 kB / 3.537 GB, free: 71.85 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.531e-05/9.7, allocations: 3.75 kB / 3.537 GB, free: 71.85 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 8.898e-05/9.7, allocations: 348.3 kB / 3.537 GB, free: 71.54 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006052/9.701, allocations: 138 kB / 3.537 GB, free: 71.54 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007032/9.702, allocations: 271.5 kB / 3.537 GB, free: 71.39 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006586/9.702, allocations: 171 kB / 3.537 GB, free: 71.39 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.703e-06/9.702, allocations: 0 / 3.537 GB, free: 71.39 MB / 490.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001613/9.704, allocations: 457.2 kB / 3.538 GB, free: 71.35 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.682e-05/9.704, allocations: 4.844 kB / 3.538 GB, free: 71.35 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.199e-05/9.704, allocations: 7.188 kB / 3.538 GB, free: 71.35 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.151e-05/9.704, allocations: 7.562 kB / 3.538 GB, free: 71.35 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006321/9.705, allocations: 92.77 kB / 3.538 GB, free: 71.35 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.91e-05/9.705, allocations: 8.266 kB / 3.538 GB, free: 71.35 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006314/9.705, allocations: 65.78 kB / 3.538 GB, free: 71.34 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.691e-05/9.706, allocations: 19.53 kB / 3.538 GB, free: 71.34 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: 5 (SourceP1.medium.phase,SinkP1.medium.phase,Opening.y,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.0003078/9.706, allocations: 166.1 kB / 3.538 GB, free: 71.22 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.617e-05/9.706, allocations: 39.34 kB / 3.538 GB, free: 71.21 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003441/9.709, allocations: 1.893 MB / 3.54 GB, free: 71.03 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.893e-05/9.71, allocations: 30.05 kB / 3.54 GB, free: 71.03 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.476e-06/9.71, allocations: 0 / 3.54 GB, free: 71.03 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.117e-05/9.71, allocations: 6.266 kB / 3.54 GB, free: 71.03 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001534/9.711, allocations: 0.9839 MB / 3.541 GB, free: 70.8 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.105e-06/9.711, allocations: 0 / 3.541 GB, free: 70.8 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005774/9.712, allocations: 83.42 kB / 3.541 GB, free: 70.8 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.315e-06/9.712, allocations: 0 / 3.541 GB, free: 70.8 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.377e-05/9.712, allocations: 7.656 kB / 3.541 GB, free: 70.8 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.196e-06/9.712, allocations: 8.344 kB / 3.541 GB, free: 70.8 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.465e-06/9.712, allocations: 0 / 3.541 GB, free: 70.8 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002241/9.714, allocations: 1.068 MB / 3.542 GB, free: 70.57 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003131/9.714, allocations: 210.8 kB / 3.542 GB, free: 70.43 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000105/9.715, allocations: 10.94 kB / 3.542 GB, free: 70.43 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005262/9.715, allocations: 43.14 kB / 3.542 GB, free: 70.43 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000147/9.715, allocations: 33.03 kB / 3.543 GB, free: 70.43 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.337e-05/9.715, allocations: 12.92 kB / 3.543 GB, free: 70.43 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0004753/9.716, allocations: 266.6 kB / 3.543 GB, free: 70.35 MB / 490.7 MB Notification: Performance of sort global known variables: time 4.01e-07/9.716, allocations: 7.562 kB / 3.543 GB, free: 70.35 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.005878/9.722, allocations: 1.001 MB / 3.544 GB, free: 70.34 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: 19 ($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,Opening.y) * 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.01086/9.733, allocations: 1.36 MB / 3.545 GB, free: 70.25 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.002062/9.735, allocations: 0.6088 MB / 3.546 GB, free: 70.23 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 6.051e-06/9.735, allocations: 0 / 3.546 GB, free: 70.23 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001097/9.736, allocations: 0.5164 MB / 3.546 GB, free: 70.23 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001993/9.738, allocations: 171.3 kB / 3.546 GB, free: 70.22 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.105/9.843, allocations: 39.47 MB / 3.585 GB, free: 68.72 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004613/9.844, allocations: 0.9806 MB / 3.586 GB, free: 68.01 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.0007708/9.844, allocations: 244.9 kB / 3.586 GB, free: 68 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001554/9.844, allocations: 40.58 kB / 3.586 GB, free: 67.99 MB / 490.7 MB Notification: Performance of SimCode: time 1.282e-06/9.844, allocations: 0 / 3.586 GB, free: 67.99 MB / 490.7 MB Notification: Performance of Templates: time 0.06936/9.914, allocations: 33.12 MB / 3.618 GB, free: 66.18 MB / 490.7 MB