Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/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="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2") translateModel(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.001499/0.001499, allocations: 169.8 kB / 12.72 MB, free: 2.594 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.263/1.263, allocations: 170.6 MB / 183.8 MB, free: 11.42 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001678/0.001679, allocations: 110.8 kB / 223.2 MB, free: 4.051 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.178/0.178, allocations: 38 MB / 300.4 MB, free: 5.355 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.853e-05/3.855e-05, allocations: 11.98 kB / 357 MB, free: 32.34 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1129/0.1129, allocations: 48.69 MB / 405.7 MB, free: 15.67 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.737/6.85, allocations: 2.545 GB / 2.941 GB, free: 65.19 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002981/6.85, allocations: 78.52 kB / 2.941 GB, free: 65.15 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.044/8.895, allocations: 0.5598 GB / 3.501 GB, free: 11.43 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.603e-06/8.895, allocations: 0 / 3.501 GB, free: 11.43 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001519/8.895, allocations: 46.12 kB / 3.501 GB, free: 11.39 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.01132/8.906, allocations: 2.769 MB / 3.504 GB, free: 8.594 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.918e-05/8.906, allocations: 8.031 kB / 3.504 GB, free: 8.586 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004278/8.91, allocations: 0.5329 MB / 3.504 GB, free: 8.055 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003601/8.914, allocations: 1.429 MB / 3.506 GB, free: 6.609 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001016/8.914, allocations: 114.2 kB / 3.506 GB, free: 6.504 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002111/8.914, allocations: 124.2 kB / 3.506 GB, free: 6.387 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003984/8.918, allocations: 2.263 MB / 3.508 GB, free: 4 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.482e-05/8.918, allocations: 7.938 kB / 3.508 GB, free: 3.992 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001415/8.919, allocations: 51.91 kB / 3.508 GB, free: 3.945 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000123/8.919, allocations: 102.2 kB / 3.508 GB, free: 3.844 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003386/8.922, allocations: 1.961 MB / 3.51 GB, free: 1.875 MB / 442.7 MB Warning: The model contains alias variables with conflicting start and/or 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.01332/8.935, allocations: 9.64 MB / 3.52 GB, free: 7.5 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002956/8.938, allocations: 1.309 MB / 3.521 GB, free: 6.184 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008608/8.939, allocations: 0.6005 MB / 3.521 GB, free: 5.582 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3473/9.287, allocations: 18.82 MB / 3.54 GB, free: 30.49 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002859/9.29, allocations: 1.031 MB / 3.541 GB, free: 30.41 MB / 458.7 MB Notification: Performance of pre-optimization done (n=94): time 3.957e-06/9.29, allocations: 0 / 3.541 GB, free: 30.41 MB / 458.7 MB Notification: Performance of matching and sorting (n=102): time 0.01096/9.301, allocations: 4.383 MB / 3.545 GB, free: 29.87 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.318e-05/9.301, allocations: 277.6 kB / 3.545 GB, free: 29.55 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001414/9.302, allocations: 0.969 MB / 3.546 GB, free: 29.4 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001115/9.302, allocations: 46.61 kB / 3.546 GB, free: 29.37 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000455/9.303, allocations: 0.6585 MB / 3.547 GB, free: 29.14 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002716/9.303, allocations: 353 kB / 3.547 GB, free: 28.97 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.3e-05/9.303, allocations: 26.44 kB / 3.547 GB, free: 28.97 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 9.216e-05/9.303, allocations: 353.4 kB / 3.548 GB, free: 28.67 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008259/9.304, allocations: 0.6093 MB / 3.548 GB, free: 28.67 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009659/9.305, allocations: 0.9333 MB / 3.549 GB, free: 28.31 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009378/9.306, allocations: 0.7575 MB / 3.55 GB, free: 28.27 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.438e-06/9.306, allocations: 3.781 kB / 3.55 GB, free: 28.27 MB / 458.7 MB Notification: Performance of matching and sorting (n=160) (initialization): time 0.00272/9.309, allocations: 1.869 MB / 3.552 GB, free: 28.1 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005634/9.309, allocations: 3.273 MB / 3.555 GB, free: 24.71 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.038e-05/9.309, allocations: 10.34 kB / 3.555 GB, free: 24.71 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004368/9.31, allocations: 135 kB / 3.555 GB, free: 24.7 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001179/9.311, allocations: 324.8 kB / 3.555 GB, free: 24.7 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006396/9.312, allocations: 1.256 MB / 3.557 GB, free: 23.66 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001423/9.313, allocations: 151.8 kB / 3.557 GB, free: 23.66 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000121/9.313, allocations: 68.53 kB / 3.557 GB, free: 23.66 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.588e-06/9.313, allocations: 6.5 kB / 3.557 GB, free: 23.66 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002381/9.316, allocations: 1.693 MB / 3.559 GB, free: 23.59 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.678e-05/9.316, allocations: 7.812 kB / 3.559 GB, free: 23.59 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003819/9.316, allocations: 135.7 kB / 3.559 GB, free: 23.57 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001114/9.317, allocations: 322.6 kB / 3.559 GB, free: 23.57 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005589/9.318, allocations: 1.256 MB / 3.56 GB, free: 22.53 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00134/9.319, allocations: 159.1 kB / 3.56 GB, free: 22.52 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001157/9.319, allocations: 60.81 kB / 3.56 GB, free: 22.52 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 () * 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.0003796/9.32, allocations: 230.8 kB / 3.561 GB, free: 22.38 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002878/9.32, allocations: 129.6 kB / 3.561 GB, free: 22.32 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005564/9.325, allocations: 4.68 MB / 3.565 GB, free: 21.87 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.332e-05/9.325, allocations: 52.56 kB / 3.565 GB, free: 21.87 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.273e-05/9.325, allocations: 3.562 kB / 3.565 GB, free: 21.87 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003825/9.329, allocations: 3.922 MB / 3.569 GB, free: 21.41 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007231/9.337, allocations: 6.648 MB / 3.576 GB, free: 20.88 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.562e-06/9.337, allocations: 0 / 3.576 GB, free: 20.88 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000927/9.338, allocations: 246.1 kB / 3.576 GB, free: 20.88 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005898/9.338, allocations: 179.2 kB / 3.576 GB, free: 20.86 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.723e-05/9.338, allocations: 39.56 kB / 3.576 GB, free: 20.86 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005516/9.339, allocations: 1.291 MB / 3.577 GB, free: 19.82 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/9.339, allocations: 2.297 kB / 3.577 GB, free: 19.82 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004403/9.343, allocations: 4.148 MB / 3.581 GB, free: 19.4 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001119/9.344, allocations: 0.5341 MB / 3.582 GB, free: 19.18 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000222/9.345, allocations: 36.75 kB / 3.582 GB, free: 19.18 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000909/9.346, allocations: 117.4 kB / 3.582 GB, free: 19.18 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001943/9.346, allocations: 85.84 kB / 3.582 GB, free: 19.18 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.345e-05/9.346, allocations: 43.12 kB / 3.582 GB, free: 19.18 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.00124/9.347, allocations: 0.8556 MB / 3.583 GB, free: 19.06 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.5e-07/9.347, allocations: 0 / 3.583 GB, free: 19.06 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.008186/9.355, allocations: 2.171 MB / 3.585 GB, free: 18.99 MB / 458.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) * 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.01004/9.365, allocations: 2.357 MB / 3.587 GB, free: 18.75 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.004537/9.37, allocations: 3.032 MB / 3.59 GB, free: 18.51 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 4.769e-06/9.37, allocations: 2.406 kB / 3.59 GB, free: 18.51 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001674/9.372, allocations: 1.408 MB / 3.592 GB, free: 18.44 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003011/9.375, allocations: 0.5779 MB / 3.592 GB, free: 18.43 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5002/9.875, allocations: 123.3 MB / 3.713 GB, free: 51.76 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001043/9.876, allocations: 1.727 MB / 3.714 GB, free: 51.03 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.003159/9.879, allocations: 1.687 MB / 3.716 GB, free: 51 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003068/9.879, allocations: 110.4 kB / 3.716 GB, free: 51 MB / 474.7 MB Notification: Performance of SimCode: time 1.453e-06/9.879, allocations: 3.875 kB / 3.716 GB, free: 51 MB / 474.7 MB Notification: Performance of Templates: time 0.08224/9.962, allocations: 65.34 MB / 3.78 GB, free: 48.37 MB / 474.7 MB make -j1 -f ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.makefile (rm -f ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.pipe ; mkfifo ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.pipe ; head -c 1048576 < ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.pipe >> ../files/ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.sim & ./ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.pipe 2>&1)