Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.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.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.2_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.002911/0.002916, allocations: 357.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.885/3.885, allocations: 388.9 MB / 405.6 MB, free: 10.25 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.003719/0.003718, allocations: 227.1 kB / 451 MB, free: 145.1 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.5303/0.5303, allocations: 80.02 MB / 0.5627 GB, free: 19.84 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004638/0.000464, allocations: 12 kB / 0.6265 GB, free: 96.55 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1246/0.1251, allocations: 54.87 MB / 0.6801 GB, free: 41.68 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.43/8.555, allocations: 2.656 GB / 3.336 GB, free: 102.4 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002537/8.555, allocations: 84.02 kB / 3.336 GB, free: 102.4 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.142/11.7, allocations: 0.5482 GB / 3.884 GB, free: 42.47 MB / 0.4949 GB Notification: Performance of FrontEnd: time 3.276e-06/11.7, allocations: 0 / 3.884 GB, free: 42.47 MB / 0.4949 GB Notification: Performance of Transformations before backend: time 0.0003168/11.7, allocations: 43.19 kB / 3.884 GB, free: 42.47 MB / 0.4949 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 322 * Number of variables: 322 Notification: Performance of Generate backend data structure: time 0.01585/11.71, allocations: 3.041 MB / 3.887 GB, free: 41.38 MB / 0.4949 GB Notification: Performance of prepare preOptimizeDAE: time 4.263e-05/11.71, allocations: 10.69 kB / 3.887 GB, free: 41.38 MB / 0.4949 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005763/11.72, allocations: 0.5422 MB / 3.887 GB, free: 41.29 MB / 0.4949 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02861/11.75, allocations: 9.417 MB / 3.897 GB, free: 40.86 MB / 0.4949 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002132/11.75, allocations: 114.7 kB / 3.897 GB, free: 40.86 MB / 0.4949 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005549/11.75, allocations: 128.8 kB / 3.897 GB, free: 40.85 MB / 0.4949 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008167/11.76, allocations: 2.294 MB / 3.899 GB, free: 40.46 MB / 0.4949 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.02e-05/11.76, allocations: 3.375 kB / 3.899 GB, free: 40.46 MB / 0.4949 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002774/11.76, allocations: 59.52 kB / 3.899 GB, free: 40.46 MB / 0.4949 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00021/11.76, allocations: 99.48 kB / 3.899 GB, free: 40.46 MB / 0.4949 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008748/11.77, allocations: 2.056 MB / 3.901 GB, free: 40.45 MB / 0.4949 GB 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.02223/11.79, allocations: 9.626 MB / 3.911 GB, free: 34.54 MB / 0.4949 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005804/11.79, allocations: 1.383 MB / 3.912 GB, free: 34.5 MB / 0.4949 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002087/11.8, allocations: 0.6815 MB / 3.913 GB, free: 34.5 MB / 0.4949 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06986/11.87, allocations: 18.79 MB / 3.931 GB, free: 22.76 MB / 0.4949 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006075/11.87, allocations: 1.04 MB / 3.932 GB, free: 22.68 MB / 0.4949 GB Notification: Performance of pre-optimization done (n=96): time 6.352e-06/11.87, allocations: 0 / 3.932 GB, free: 22.68 MB / 0.4949 GB Notification: Performance of matching and sorting (n=104): time 0.02912/11.9, allocations: 5.095 MB / 3.937 GB, free: 21.96 MB / 0.4949 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001206/11.9, allocations: 272.4 kB / 3.937 GB, free: 21.65 MB / 0.4949 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002456/11.9, allocations: 1.105 MB / 3.938 GB, free: 21.48 MB / 0.4949 GB Notification: Performance of collectPreVariables (initialization): time 0.0004074/11.9, allocations: 48.23 kB / 3.938 GB, free: 21.45 MB / 0.4949 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009631/11.91, allocations: 0.6519 MB / 3.939 GB, free: 21.18 MB / 0.4949 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006549/11.91, allocations: 358.8 kB / 3.939 GB, free: 20.95 MB / 0.4949 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001786/11.91, allocations: 23.41 kB / 3.939 GB, free: 20.95 MB / 0.4949 GB Notification: Performance of setup shared object (initialization): time 0.0001552/11.91, allocations: 365.3 kB / 3.94 GB, free: 20.64 MB / 0.4949 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003013/11.91, allocations: 0.6798 MB / 3.94 GB, free: 20.64 MB / 0.4949 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003369/11.91, allocations: 1.02 MB / 3.941 GB, free: 20.29 MB / 0.4949 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003481/11.92, allocations: 0.8358 MB / 3.942 GB, free: 20.24 MB / 0.4949 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.391e-05/11.92, allocations: 0 / 3.942 GB, free: 20.24 MB / 0.4949 GB Notification: Performance of matching and sorting (n=162) (initialization): time 0.009399/11.93, allocations: 2.001 MB / 3.944 GB, free: 20.08 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003394/11.93, allocations: 372.3 kB / 3.945 GB, free: 19.66 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.504e-05/11.93, allocations: 6.719 kB / 3.945 GB, free: 19.66 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001161/11.93, allocations: 146 kB / 3.945 GB, free: 19.65 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003757/11.93, allocations: 327.6 kB / 3.945 GB, free: 19.65 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001451/11.93, allocations: 1.245 MB / 3.946 GB, free: 18.61 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003783/11.94, allocations: 161.7 kB / 3.946 GB, free: 18.6 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005436/11.94, allocations: 68.23 kB / 3.946 GB, free: 18.6 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 1.709e-05/11.94, allocations: 4.312 kB / 3.946 GB, free: 18.6 MB / 0.4949 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009905/11.95, allocations: 1.835 MB / 3.948 GB, free: 18.54 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.34e-05/11.95, allocations: 7.688 kB / 3.948 GB, free: 18.54 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001252/11.95, allocations: 142.4 kB / 3.948 GB, free: 18.52 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003579/11.95, allocations: 321.4 kB / 3.949 GB, free: 18.52 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009831/11.95, allocations: 1.253 MB / 3.95 GB, free: 17.48 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002528/11.96, allocations: 157 kB / 3.95 GB, free: 17.48 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004364/11.96, allocations: 64.41 kB / 3.95 GB, free: 17.48 MB / 0.4949 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 17 (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,valveOpening1.nextEventScaled,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.001529/11.96, allocations: 0.5441 MB / 3.951 GB, free: 17.25 MB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004265/11.96, allocations: 138.7 kB / 3.951 GB, free: 17.18 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01027/11.97, allocations: 4.748 MB / 3.955 GB, free: 16.67 MB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.841e-05/11.97, allocations: 53.92 kB / 3.955 GB, free: 16.67 MB / 0.4949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.018e-05/11.97, allocations: 0 / 3.955 GB, free: 16.67 MB / 0.4949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008606/11.98, allocations: 3.99 MB / 3.959 GB, free: 16.22 MB / 0.4949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01483/11.99, allocations: 6.722 MB / 3.966 GB, free: 15.66 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.456e-05/11.99, allocations: 3.906 kB / 3.966 GB, free: 15.66 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00212/11.99, allocations: 238.9 kB / 3.966 GB, free: 15.66 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001275/12, allocations: 194.4 kB / 3.966 GB, free: 15.64 MB / 0.4949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003537/12, allocations: 37.89 kB / 3.966 GB, free: 15.64 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001217/12, allocations: 1.284 MB / 3.968 GB, free: 14.61 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.467e-06/12, allocations: 0 / 3.968 GB, free: 14.61 MB / 0.4949 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01076/12.01, allocations: 4.379 MB / 3.972 GB, free: 30.17 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001632/12.01, allocations: 0.5268 MB / 3.972 GB, free: 29.91 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006211/12.01, allocations: 35.16 kB / 3.972 GB, free: 29.91 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002254/12.01, allocations: 116.9 kB / 3.973 GB, free: 29.91 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004693/12.01, allocations: 90.08 kB / 3.973 GB, free: 29.91 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001726/12.01, allocations: 42.66 kB / 3.973 GB, free: 29.9 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.002104/12.02, allocations: 0.8675 MB / 3.974 GB, free: 29.79 MB / 0.5105 GB Notification: Performance of sort global known variables: time 8.21e-07/12.02, allocations: 0 / 3.974 GB, free: 29.79 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01025/12.03, allocations: 2.091 MB / 3.976 GB, free: 29.48 MB / 0.5105 GB 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: 36 ($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,valveOpening1.nextEventScaled) * Number of discrete states: 6 (valveOpening1.nextEvent,valveOpening1.last,valveOpening1.nextEventScaled,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.01356/12.04, allocations: 2.258 MB / 3.978 GB, free: 29.04 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.008982/12.05, allocations: 3.237 MB / 3.981 GB, free: 28.8 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 8.296e-06/12.05, allocations: 3.5 kB / 3.981 GB, free: 28.8 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.003391/12.05, allocations: 1.479 MB / 3.982 GB, free: 28.73 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005636/12.06, allocations: 0.5979 MB / 3.983 GB, free: 28.71 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2089/12.27, allocations: 78.66 MB / 4.06 GB, free: 8.262 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00483/12.27, allocations: 1.717 MB / 4.061 GB, free: 6.867 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.005287/12.28, allocations: 1.569 MB / 4.063 GB, free: 5.941 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000815/12.28, allocations: 125.6 kB / 4.063 GB, free: 5.824 MB / 0.5105 GB Notification: Performance of SimCode: time 1.763e-06/12.28, allocations: 0 / 4.063 GB, free: 5.824 MB / 0.5105 GB Notification: Performance of Templates: time 0.5861/12.86, allocations: 63.2 MB / 4.125 GB, free: 51.74 MB / 0.5105 GB