Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.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.TestPipesAndValves.SeriesPipes2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe1.mediums.1..h|pipe1.mediums.1..p|pipe3.mediums.1..h|pipe3.mediums.1..p|valveIncompressible1.filter.x.1.|valveIncompressible1.filter.x.2.|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.004017/0.004024, allocations: 348.7 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.133/3.133, allocations: 341.5 MB / 358.2 MB, free: 28.73 MB / 170.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.004288/0.004288, allocations: 216.4 kB / 397.8 MB, free: 6.168 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.4829/0.4829, allocations: 76.09 MB / 0.5014 GB, free: 0.8203 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004486/0.0004487, allocations: 12 kB / 0.5592 GB, free: 60.27 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08269/0.08316, allocations: 48.71 MB / 0.6067 GB, free: 11.55 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.492/7.575, allocations: 2.545 GB / 3.152 GB, free: 41.86 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002356/7.576, allocations: 83.89 kB / 3.152 GB, free: 41.82 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.3/10.88, allocations: 0.5382 GB / 3.69 GB, free: 7.133 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.995e-06/10.88, allocations: 0 / 3.69 GB, free: 7.133 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001821/10.88, allocations: 39.05 kB / 3.69 GB, free: 7.098 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: 320 * Number of variables: 320 Notification: Performance of Generate backend data structure: time 0.01321/10.89, allocations: 2.967 MB / 3.693 GB, free: 4.09 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.324e-05/10.89, allocations: 12.02 kB / 3.693 GB, free: 4.078 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005615/10.89, allocations: 0.5281 MB / 3.693 GB, free: 3.551 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05766/10.95, allocations: 9.257 MB / 3.702 GB, free: 10.52 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002591/10.95, allocations: 114.3 kB / 3.703 GB, free: 10.41 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005074/10.95, allocations: 124.3 kB / 3.703 GB, free: 10.29 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01166/10.96, allocations: 2.295 MB / 3.705 GB, free: 7.848 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.715e-05/10.96, allocations: 3.938 kB / 3.705 GB, free: 7.844 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004273/10.97, allocations: 55.97 kB / 3.705 GB, free: 7.789 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003233/10.97, allocations: 94.27 kB / 3.705 GB, free: 7.695 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01224/10.98, allocations: 2.062 MB / 3.707 GB, free: 5.625 MB / 458.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.4101/11.39, allocations: 9.603 MB / 3.716 GB, free: 32.65 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005597/11.39, allocations: 1.378 MB / 3.718 GB, free: 32.63 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002083/11.4, allocations: 0.6629 MB / 3.718 GB, free: 32.62 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07543/11.47, allocations: 18.78 MB / 3.737 GB, free: 20.89 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00462/11.48, allocations: 1.029 MB / 3.738 GB, free: 20.8 MB / 458.7 MB Notification: Performance of pre-optimization done (n=94): time 5.431e-06/11.48, allocations: 0 / 3.738 GB, free: 20.8 MB / 458.7 MB Notification: Performance of matching and sorting (n=102): time 0.02266/11.5, allocations: 5.094 MB / 3.743 GB, free: 20.23 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001148/11.5, allocations: 272.2 kB / 3.743 GB, free: 19.91 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003539/11.5, allocations: 1.102 MB / 3.744 GB, free: 19.75 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003753/11.5, allocations: 45.7 kB / 3.744 GB, free: 19.72 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008627/11.5, allocations: 0.6585 MB / 3.745 GB, free: 19.5 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006645/11.5, allocations: 352 kB / 3.745 GB, free: 19.32 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001595/11.5, allocations: 22.91 kB / 3.745 GB, free: 19.32 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001431/11.5, allocations: 362.1 kB / 3.745 GB, free: 19.02 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002245/11.51, allocations: 0.6771 MB / 3.746 GB, free: 19.02 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002649/11.51, allocations: 1.002 MB / 3.747 GB, free: 18.67 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002628/11.51, allocations: 0.8262 MB / 3.748 GB, free: 18.62 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.437e-05/11.51, allocations: 3.219 kB / 3.748 GB, free: 18.62 MB / 458.7 MB Notification: Performance of matching and sorting (n=160) (initialization): time 0.006789/11.52, allocations: 2.015 MB / 3.75 GB, free: 18.46 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002512/11.52, allocations: 380.1 kB / 3.75 GB, free: 18.05 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.468e-05/11.52, allocations: 7.812 kB / 3.75 GB, free: 18.05 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007701/11.52, allocations: 140.8 kB / 3.75 GB, free: 18.04 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002612/11.52, allocations: 323.3 kB / 3.751 GB, free: 18.04 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001001/11.52, allocations: 1.258 MB / 3.752 GB, free: 17 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002408/11.53, allocations: 158.5 kB / 3.752 GB, free: 16.99 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002472/11.53, allocations: 67.83 kB / 3.752 GB, free: 16.99 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.343e-05/11.53, allocations: 5.656 kB / 3.752 GB, free: 16.99 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005617/11.53, allocations: 1.842 MB / 3.754 GB, free: 16.92 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.393e-05/11.53, allocations: 12.31 kB / 3.754 GB, free: 16.92 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007522/11.53, allocations: 139.4 kB / 3.754 GB, free: 16.9 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0025/11.54, allocations: 319.5 kB / 3.754 GB, free: 16.9 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009304/11.54, allocations: 1.256 MB / 3.756 GB, free: 15.87 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002459/11.54, allocations: 155.2 kB / 3.756 GB, free: 15.86 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003716/11.54, allocations: 65.95 kB / 3.756 GB, free: 15.86 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 16 (pipe3.state_a.phase,valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,pipe1.state_a.phase,$whenCondition1,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,pipe3.state_b.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (152): * Single equations (assignments): 147 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.00136/11.54, allocations: 0.5374 MB / 3.756 GB, free: 15.64 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00042/11.54, allocations: 136.7 kB / 3.757 GB, free: 15.57 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01024/11.55, allocations: 4.754 MB / 3.761 GB, free: 15.13 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.75e-05/11.55, allocations: 58.95 kB / 3.761 GB, free: 15.13 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.066e-05/11.55, allocations: 0 / 3.761 GB, free: 15.13 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007903/11.56, allocations: 3.981 MB / 3.765 GB, free: 14.69 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01384/11.57, allocations: 6.726 MB / 3.772 GB, free: 14.17 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.42e-05/11.57, allocations: 0 / 3.772 GB, free: 14.17 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002031/11.58, allocations: 246.9 kB / 3.772 GB, free: 14.17 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001203/11.58, allocations: 194.6 kB / 3.772 GB, free: 14.14 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002823/11.58, allocations: 44.92 kB / 3.772 GB, free: 14.14 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001809/11.58, allocations: 1.283 MB / 3.773 GB, free: 29.11 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.966e-06/11.58, allocations: 0 / 3.773 GB, free: 29.11 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009805/11.59, allocations: 4.365 MB / 3.778 GB, free: 28.68 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001524/11.59, allocations: 0.5262 MB / 3.778 GB, free: 28.47 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005787/11.59, allocations: 32.78 kB / 3.778 GB, free: 28.47 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002005/11.59, allocations: 125.3 kB / 3.778 GB, free: 28.47 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002977/11.59, allocations: 92.09 kB / 3.778 GB, free: 28.46 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000159/11.59, allocations: 44.98 kB / 3.778 GB, free: 28.46 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.001887/11.6, allocations: 0.8542 MB / 3.779 GB, free: 28.36 MB / 474.7 MB Notification: Performance of sort global known variables: time 7.22e-07/11.6, allocations: 0 / 3.779 GB, free: 28.36 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.009669/11.61, allocations: 2.086 MB / 3.781 GB, free: 28.32 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (pipe1.mediums[1].p,pipe1.mediums[1].h,valveIncompressible1.filter.x[1],valveIncompressible1.filter.x[2],pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 35 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse22.phase,$cse22.region,$cse24.region3boundary,$cse25.region3boundary,$cse26.phase,$cse26.region,$cse28.phase,$cse28.region,$whenCondition1,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent) * Number of discrete states: 5 (valveOpening1.last,valveOpening1.nextEvent,valveOpening1.b,valveOpening1.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (118): * Single equations (assignments): 100 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 15 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01367/11.62, allocations: 2.255 MB / 3.784 GB, free: 28.1 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.008814/11.63, allocations: 3.173 MB / 3.787 GB, free: 27.86 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 8.996e-06/11.63, allocations: 0 / 3.787 GB, free: 27.86 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003417/11.63, allocations: 1.458 MB / 3.788 GB, free: 27.79 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005558/11.64, allocations: 0.5989 MB / 3.789 GB, free: 27.78 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1897/11.83, allocations: 78.16 MB / 3.865 GB, free: 14.22 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001809/11.83, allocations: 1.712 MB / 3.867 GB, free: 12.82 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.004913/11.83, allocations: 1.575 MB / 3.868 GB, free: 11.91 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006463/11.83, allocations: 126 kB / 3.868 GB, free: 11.79 MB / 474.7 MB Notification: Performance of SimCode: time 1.072e-06/11.83, allocations: 0 / 3.868 GB, free: 11.79 MB / 474.7 MB Notification: Performance of Templates: time 0.4998/12.33, allocations: 62.73 MB / 3.93 GB, free: 48.44 MB / 474.7 MB