Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.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.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.1_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.002768/0.002767, allocations: 347.2 kB / 15.93 MB, free: 6.219 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.48/3.48, allocations: 341.5 MB / 358.2 MB, free: 12.55 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.003655/0.003655, allocations: 210.2 kB / 397.8 MB, free: 4.895 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.4804/0.4804, allocations: 76.1 MB / 0.5014 GB, free: 112.6 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004484/0.0004485, allocations: 16 kB / 0.5592 GB, free: 53.45 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08666/0.08713, allocations: 48.7 MB / 0.6067 GB, free: 4.629 MB / 362.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.736/7.823, allocations: 2.497 GB / 3.104 GB, free: 30.87 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003405/7.824, allocations: 88.08 kB / 3.104 GB, free: 30.82 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.845/10.67, allocations: 497.4 MB / 3.589 GB, free: 27.25 MB / 442.7 MB Notification: Performance of FrontEnd: time 3.467e-06/10.67, allocations: 0 / 3.589 GB, free: 27.25 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001769/10.67, allocations: 29.62 kB / 3.589 GB, free: 27.24 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: 226 * Number of variables: 226 Notification: Performance of Generate backend data structure: time 0.01385/10.68, allocations: 2.105 MB / 3.591 GB, free: 26.04 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.417e-05/10.68, allocations: 6.906 kB / 3.591 GB, free: 26.04 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01411/10.7, allocations: 0.682 MB / 3.592 GB, free: 25.92 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003468/10.7, allocations: 0.8538 MB / 3.593 GB, free: 25.43 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002127/10.7, allocations: 76.62 kB / 3.593 GB, free: 25.39 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003667/10.7, allocations: 89.12 kB / 3.593 GB, free: 25.37 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01019/10.71, allocations: 1.746 MB / 3.595 GB, free: 24.65 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.352e-05/10.71, allocations: 11.58 kB / 3.595 GB, free: 24.64 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003093/10.71, allocations: 46.34 kB / 3.595 GB, free: 24.61 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.815e-05/10.71, allocations: 30.11 kB / 3.595 GB, free: 24.61 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01081/10.72, allocations: 1.641 MB / 3.597 GB, free: 24.22 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01747/10.74, allocations: 7.359 MB / 3.604 GB, free: 18.33 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007878/10.75, allocations: 1.22 MB / 3.605 GB, free: 18.06 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001596/10.75, allocations: 416 kB / 3.605 GB, free: 17.93 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07251/10.82, allocations: 17.58 MB / 3.622 GB, free: 8.551 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.055e-05/10.82, allocations: 43.09 kB / 3.623 GB, free: 8.504 MB / 442.7 MB Notification: Performance of pre-optimization done (n=67): time 3.717e-06/10.82, allocations: 0 / 3.623 GB, free: 8.504 MB / 442.7 MB Notification: Performance of matching and sorting (n=67): time 0.01078/10.83, allocations: 2.077 MB / 3.625 GB, free: 7.984 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.69e-05/10.83, allocations: 218.2 kB / 3.625 GB, free: 7.723 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001196/10.83, allocations: 0.6938 MB / 3.625 GB, free: 7.129 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001921/10.83, allocations: 37.7 kB / 3.625 GB, free: 7.086 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004115/10.84, allocations: 0.526 MB / 3.626 GB, free: 6.598 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002725/10.84, allocations: 233 kB / 3.626 GB, free: 6.395 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.716e-05/10.84, allocations: 20 kB / 3.626 GB, free: 6.375 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.000149/10.84, allocations: 397.1 kB / 3.627 GB, free: 6.004 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001623/10.84, allocations: 375.8 kB / 3.627 GB, free: 5.699 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001853/10.84, allocations: 0.7822 MB / 3.628 GB, free: 4.801 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001699/10.84, allocations: 470 kB / 3.628 GB, free: 4.387 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.162e-05/10.84, allocations: 4 kB / 3.628 GB, free: 4.383 MB / 442.7 MB Notification: Performance of matching and sorting (n=127) (initialization): time 0.004365/10.85, allocations: 1.242 MB / 3.629 GB, free: 3.277 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002677/10.85, allocations: 472.4 kB / 3.63 GB, free: 2.637 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.951e-05/10.85, allocations: 16 kB / 3.63 GB, free: 2.621 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.811e-05/10.85, allocations: 20 kB / 3.63 GB, free: 2.602 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001879/10.85, allocations: 300.5 kB / 3.63 GB, free: 2.352 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.383e-05/10.85, allocations: 27.83 kB / 3.63 GB, free: 2.328 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002142/10.85, allocations: 181.2 kB / 3.63 GB, free: 2.168 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000427/10.85, allocations: 59.66 kB / 3.63 GB, free: 2.113 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.774e-05/10.85, allocations: 4 kB / 3.63 GB, free: 2.109 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004118/10.85, allocations: 1.114 MB / 3.632 GB, free: 1.121 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.731e-05/10.85, allocations: 12.97 kB / 3.632 GB, free: 1.109 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.419e-05/10.85, allocations: 20 kB / 3.632 GB, free: 1.09 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001766/10.86, allocations: 303.5 kB / 3.632 GB, free: 0.793 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.027e-05/10.86, allocations: 27.86 kB / 3.632 GB, free: 0.7656 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001647/10.86, allocations: 155.2 kB / 3.632 GB, free: 0.6133 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001522/10.86, allocations: 59.98 kB / 3.632 GB, free: 0.5547 MB / 442.7 MB 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.0007572/10.86, allocations: 366.5 kB / 3.632 GB, free: 196 kB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002661/10.86, allocations: 90.88 kB / 3.633 GB, free: 104 kB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009977/10.87, allocations: 4.64 MB / 3.637 GB, free: 11.42 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.301e-05/10.87, allocations: 71.78 kB / 3.637 GB, free: 11.35 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.066e-05/10.87, allocations: 3.438 kB / 3.637 GB, free: 11.35 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.201e-05/10.87, allocations: 3.984 kB / 3.637 GB, free: 11.35 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003887/10.87, allocations: 2.166 MB / 3.639 GB, free: 9.156 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.118e-05/10.87, allocations: 0 / 3.639 GB, free: 9.156 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001532/10.88, allocations: 223.7 kB / 3.639 GB, free: 8.938 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.255e-05/10.88, allocations: 4 kB / 3.639 GB, free: 8.934 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.636e-05/10.88, allocations: 23.98 kB / 3.639 GB, free: 8.91 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.909e-06/10.88, allocations: 4 kB / 3.639 GB, free: 8.906 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.337e-06/10.88, allocations: 3.953 kB / 3.639 GB, free: 8.902 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005326/10.88, allocations: 2.279 MB / 3.642 GB, free: 6.582 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009556/10.88, allocations: 445.4 kB / 3.642 GB, free: 6.125 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002287/10.88, allocations: 19.98 kB / 3.642 GB, free: 6.105 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001181/10.88, allocations: 103.8 kB / 3.642 GB, free: 6.004 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002082/10.88, allocations: 68.89 kB / 3.642 GB, free: 5.938 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.452e-05/10.88, allocations: 35.94 kB / 3.642 GB, free: 5.902 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001169/10.88, allocations: 0.5667 MB / 3.643 GB, free: 5.328 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.705e-06/10.88, allocations: 0 / 3.643 GB, free: 5.328 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.007783/10.89, allocations: 1.54 MB / 3.644 GB, free: 3.789 MB / 458.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: 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.0109/10.9, allocations: 1.766 MB / 3.646 GB, free: 2.273 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.006619/10.91, allocations: 2.05 MB / 3.648 GB, free: 228 kB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 5.74e-06/10.91, allocations: 0 / 3.648 GB, free: 228 kB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.3458/11.26, allocations: 1.139 MB / 3.649 GB, free: 46.05 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004632/11.26, allocations: 469.6 kB / 3.65 GB, free: 46.05 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2035/11.46, allocations: 77.97 MB / 3.726 GB, free: 40.46 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009308/11.47, allocations: 1.425 MB / 3.727 GB, free: 39.71 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.003683/11.47, allocations: 1.478 MB / 3.729 GB, free: 39.66 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004095/11.47, allocations: 98.44 kB / 3.729 GB, free: 39.65 MB / 458.7 MB Notification: Performance of SimCode: time 1.704e-06/11.47, allocations: 0 / 3.729 GB, free: 39.65 MB / 458.7 MB Notification: Performance of Templates: time 0.1073/11.58, allocations: 49.99 MB / 3.778 GB, free: 31.14 MB / 458.7 MB