Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.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.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.1_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.002606/0.002611, allocations: 346.3 kB / 15.94 MB, free: 6.223 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.585/3.585, allocations: 341.5 MB / 358.2 MB, free: 12.61 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.003485/0.003485, allocations: 210.2 kB / 397.9 MB, free: 4.969 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.4649/0.4649, allocations: 76.09 MB / 0.5014 GB, free: 112.6 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004801/0.0004804, allocations: 16 kB / 0.5592 GB, free: 53.45 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08534/0.08584, allocations: 48.69 MB / 0.6067 GB, free: 4.652 MB / 362.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.598/7.684, allocations: 2.477 GB / 3.084 GB, free: 51.41 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003349/7.684, allocations: 92.27 kB / 3.084 GB, free: 51.36 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.149/8.833, allocations: 212.1 MB / 3.291 GB, free: 25.53 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.304e-06/8.833, allocations: 0 / 3.291 GB, free: 25.53 MB / 442.7 MB Notification: Performance of Transformations before backend: time 3.102e-05/8.833, allocations: 11.98 kB / 3.291 GB, free: 25.52 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.005584/8.839, allocations: 1.181 MB / 3.292 GB, free: 24.29 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.989e-05/8.839, allocations: 8.031 kB / 3.292 GB, free: 24.28 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002424/8.841, allocations: 207.6 kB / 3.292 GB, free: 24.07 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008721/8.842, allocations: 402.6 kB / 3.293 GB, free: 23.64 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.818e-05/8.842, allocations: 24.66 kB / 3.293 GB, free: 23.62 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.305e-05/8.842, allocations: 28 kB / 3.293 GB, free: 23.59 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002203/8.844, allocations: 0.5948 MB / 3.293 GB, free: 22.95 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.328e-05/8.844, allocations: 3.938 kB / 3.293 GB, free: 22.95 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.063e-05/8.844, allocations: 12 kB / 3.293 GB, free: 22.94 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.206e-05/8.844, allocations: 11.98 kB / 3.293 GB, free: 22.93 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002444/8.847, allocations: 0.5524 MB / 3.294 GB, free: 22.38 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.003439/8.85, allocations: 2.537 MB / 3.296 GB, free: 19.6 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002222/8.853, allocations: 460.3 kB / 3.297 GB, free: 19.14 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006312/8.853, allocations: 172.8 kB / 3.297 GB, free: 18.97 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.4957/9.349, allocations: 51.29 MB / 3.347 GB, free: 46.24 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.369e-05/9.349, allocations: 35.25 kB / 3.347 GB, free: 46.2 MB / 442.7 MB Notification: Performance of pre-optimization done (n=25): time 2.695e-06/9.349, allocations: 0 / 3.347 GB, free: 46.2 MB / 442.7 MB Notification: Performance of matching and sorting (n=25): time 0.004011/9.353, allocations: 0.7966 MB / 3.348 GB, free: 46.17 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.397e-05/9.353, allocations: 110.5 kB / 3.348 GB, free: 46.04 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003842/9.354, allocations: 284 kB / 3.348 GB, free: 45.94 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 3.601e-05/9.354, allocations: 32.8 kB / 3.348 GB, free: 45.91 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001398/9.354, allocations: 217.1 kB / 3.349 GB, free: 45.79 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.031e-05/9.354, allocations: 81.44 kB / 3.349 GB, free: 45.75 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.683e-05/9.354, allocations: 8.406 kB / 3.349 GB, free: 45.75 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 8.474e-05/9.354, allocations: 346.6 kB / 3.349 GB, free: 45.44 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006022/9.355, allocations: 138 kB / 3.349 GB, free: 45.44 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006689/9.355, allocations: 273.3 kB / 3.349 GB, free: 45.29 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000687/9.356, allocations: 160.6 kB / 3.349 GB, free: 45.29 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.779e-06/9.356, allocations: 1.125 kB / 3.349 GB, free: 45.29 MB / 442.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001515/9.358, allocations: 447.8 kB / 3.35 GB, free: 45.25 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.413e-05/9.358, allocations: 10.77 kB / 3.35 GB, free: 45.25 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.283e-05/9.358, allocations: 7.469 kB / 3.35 GB, free: 45.25 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.531e-05/9.358, allocations: 5.5 kB / 3.35 GB, free: 45.25 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006427/9.358, allocations: 97.44 kB / 3.35 GB, free: 45.25 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.844e-05/9.358, allocations: 10.19 kB / 3.35 GB, free: 45.25 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005369/9.359, allocations: 65.55 kB / 3.35 GB, free: 45.23 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.689e-05/9.359, allocations: 24.86 kB / 3.35 GB, free: 45.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: 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.0002383/9.359, allocations: 163.2 kB / 3.35 GB, free: 45.12 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.057e-05/9.359, allocations: 31.25 kB / 3.35 GB, free: 45.11 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003251/9.363, allocations: 1.909 MB / 3.352 GB, free: 44.93 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.471e-05/9.363, allocations: 25.84 kB / 3.352 GB, free: 44.93 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.543e-06/9.363, allocations: 0 / 3.352 GB, free: 44.93 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.438e-06/9.363, allocations: 3.703 kB / 3.352 GB, free: 44.93 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001309/9.364, allocations: 0.9814 MB / 3.353 GB, free: 44.7 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.39e-06/9.364, allocations: 0 / 3.353 GB, free: 44.7 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000543/9.365, allocations: 77.67 kB / 3.353 GB, free: 44.7 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.466e-06/9.365, allocations: 2.25 kB / 3.353 GB, free: 44.7 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.736e-05/9.365, allocations: 4.75 kB / 3.353 GB, free: 44.7 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.198e-06/9.365, allocations: 8.5 kB / 3.353 GB, free: 44.7 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.375e-06/9.365, allocations: 0 / 3.353 GB, free: 44.7 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001986/9.367, allocations: 1.073 MB / 3.354 GB, free: 44.48 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002079/9.367, allocations: 213.9 kB / 3.355 GB, free: 44.34 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.788e-05/9.367, allocations: 11.38 kB / 3.355 GB, free: 44.34 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004891/9.367, allocations: 47.88 kB / 3.355 GB, free: 44.34 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001114/9.368, allocations: 35.45 kB / 3.355 GB, free: 44.34 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.194e-05/9.368, allocations: 5.156 kB / 3.355 GB, free: 44.34 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0004118/9.368, allocations: 262 kB / 3.355 GB, free: 44.26 MB / 442.7 MB Notification: Performance of sort global known variables: time 4.51e-07/9.368, allocations: 3.812 kB / 3.355 GB, free: 44.26 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.005289/9.373, allocations: 1.003 MB / 3.356 GB, free: 44.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: 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.008309/9.382, allocations: 1.365 MB / 3.357 GB, free: 44.16 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.00188/9.384, allocations: 0.6005 MB / 3.358 GB, free: 44.15 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.659e-06/9.384, allocations: 1.219 kB / 3.358 GB, free: 44.15 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001059/9.385, allocations: 0.5146 MB / 3.358 GB, free: 44.14 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001789/9.387, allocations: 183 kB / 3.358 GB, free: 44.14 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09085/9.477, allocations: 39.23 MB / 3.397 GB, free: 42.22 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005151/9.478, allocations: 0.9821 MB / 3.398 GB, free: 41.52 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0007843/9.479, allocations: 244.5 kB / 3.398 GB, free: 41.51 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001545/9.479, allocations: 36.44 kB / 3.398 GB, free: 41.5 MB / 442.7 MB Notification: Performance of SimCode: time 1.512e-06/9.479, allocations: 0 / 3.398 GB, free: 41.5 MB / 442.7 MB Notification: Performance of Templates: time 0.06731/9.546, allocations: 32.86 MB / 3.43 GB, free: 39.73 MB / 442.7 MB