Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|junctionIdeal.medium.h|junctionIdeal.medium.p|junctionVolume.medium.h|pipe1.mediums.1..h|pipe1.mediums.1..p|pipe2.mediums.1..h|pipe2.mediums.1..p|pipe3.mediums.1..h|pipe3.mediums.1..p|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent|valveOpening2.a|valveOpening2.b|valveOpening2.last|valveOpening2.nextEvent",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18") translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|junctionIdeal.medium.h|junctionIdeal.medium.p|junctionVolume.medium.h|pipe1.mediums.1..h|pipe1.mediums.1..p|pipe2.mediums.1..h|pipe2.mediums.1..p|pipe3.mediums.1..h|pipe3.mediums.1..p|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent|valveOpening2.a|valveOpening2.b|valveOpening2.last|valveOpening2.nextEvent",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001449/0.001449, allocations: 177.8 kB / 8.36 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.022/2.022, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001107/0.001107, allocations: 94.3 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3079/0.3079, allocations: 43.48 MB / 353.6 MB, free: 2.285 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.684e-05/1.681e-05, allocations: 4 kB / 418.2 MB, free: 41.05 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4367/0.4367, allocations: 58.85 MB / 477.1 MB, free: 5.262 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.414/8.851, allocations: 2.846 GB / 3.312 GB, free: 100.1 MB / 0.4952 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002662/8.851, allocations: 81.97 kB / 3.312 GB, free: 100.1 MB / 0.4952 GB Notification: Performance of FrontEnd - DAE generated: time 5.375/14.23, allocations: 1.005 GB / 4.317 GB, free: 37.39 MB / 0.5421 GB Notification: Performance of FrontEnd: time 3.767e-06/14.23, allocations: 3.375 kB / 4.317 GB, free: 37.39 MB / 0.5421 GB Notification: Performance of Transformations before backend: time 0.00038/14.23, allocations: 74.45 kB / 4.317 GB, free: 37.38 MB / 0.5421 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 575 * Number of variables: 575 Notification: Performance of Generate backend data structure: time 0.02047/14.25, allocations: 4.244 MB / 4.322 GB, free: 35.53 MB / 0.5421 GB Notification: Performance of prepare preOptimizeDAE: time 5.356e-05/14.25, allocations: 10.22 kB / 4.322 GB, free: 35.53 MB / 0.5421 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01048/14.26, allocations: 0.9409 MB / 4.323 GB, free: 35.38 MB / 0.5421 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009173/14.27, allocations: 2.189 MB / 4.325 GB, free: 34.92 MB / 0.5421 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003086/14.27, allocations: 97.83 kB / 4.325 GB, free: 34.92 MB / 0.5421 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001276/14.27, allocations: 135.2 kB / 4.325 GB, free: 34.92 MB / 0.5421 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009117/14.28, allocations: 2.817 MB / 4.328 GB, free: 34.9 MB / 0.5421 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01017/14.29, allocations: 3.023 MB / 4.331 GB, free: 34.3 MB / 0.5421 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001028/14.29, allocations: 14.23 kB / 4.331 GB, free: 34.3 MB / 0.5421 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000541/14.29, allocations: 9.562 kB / 4.331 GB, free: 34.3 MB / 0.5421 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00035/14.29, allocations: 167.2 kB / 4.331 GB, free: 34.3 MB / 0.5421 GB 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.1848/14.47, allocations: 63.65 MB / 4.393 GB, free: 10.83 MB / 0.5577 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006135/14.48, allocations: 2.361 MB / 4.395 GB, free: 10.22 MB / 0.5577 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003241/14.48, allocations: 1.204 MB / 4.396 GB, free: 10.21 MB / 0.5577 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05492/14.54, allocations: 16.82 MB / 4.413 GB, free: 15.31 MB / 0.5733 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003784/14.54, allocations: 1.384 MB / 4.414 GB, free: 15.13 MB / 0.5733 GB Notification: Performance of pre-optimization done (n=186): time 6.622e-06/14.54, allocations: 3.562 kB / 4.414 GB, free: 15.13 MB / 0.5733 GB Notification: Performance of matching and sorting (n=206): time 0.06431/14.61, allocations: 10.49 MB / 4.424 GB, free: 13.2 MB / 0.5733 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002367/14.61, allocations: 371.8 kB / 4.425 GB, free: 12.78 MB / 0.5733 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002538/14.61, allocations: 1.152 MB / 4.426 GB, free: 12.6 MB / 0.5733 GB Notification: Performance of collectPreVariables (initialization): time 0.0007228/14.61, allocations: 29.67 kB / 4.426 GB, free: 12.57 MB / 0.5733 GB Notification: Performance of collectInitialEqns (initialization): time 0.001188/14.61, allocations: 1.019 MB / 4.427 GB, free: 12.03 MB / 0.5733 GB Notification: Performance of collectInitialBindings (initialization): time 0.001232/14.61, allocations: 0.6631 MB / 4.428 GB, free: 11.59 MB / 0.5733 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003057/14.61, allocations: 0 / 4.428 GB, free: 11.59 MB / 0.5733 GB Notification: Performance of setup shared object (initialization): time 0.0002783/14.61, allocations: 409.1 kB / 4.428 GB, free: 11.27 MB / 0.5733 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002869/14.62, allocations: 1.12 MB / 4.429 GB, free: 11.26 MB / 0.5733 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003667/14.62, allocations: 1.617 MB / 4.431 GB, free: 10.75 MB / 0.5733 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01533/14.63, allocations: 2.091 MB / 4.433 GB, free: 10.69 MB / 0.5733 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.193e-05/14.64, allocations: 3.781 kB / 4.433 GB, free: 10.69 MB / 0.5733 GB Notification: Performance of matching and sorting (n=303) (initialization): time 0.02182/14.66, allocations: 3.968 MB / 4.437 GB, free: 9.176 MB / 0.5733 GB Notification: Performance of prepare postOptimizeDAE: time 0.002228/14.66, allocations: 4.948 MB / 4.441 GB, free: 3.957 MB / 0.5733 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.441e-05/14.66, allocations: 12 kB / 4.441 GB, free: 3.945 MB / 0.5733 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001471/14.66, allocations: 321.1 kB / 4.442 GB, free: 3.75 MB / 0.5733 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005088/14.67, allocations: 0.5954 MB / 4.442 GB, free: 3.309 MB / 0.5733 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003409/14.67, allocations: 3.134 MB / 4.445 GB, free: 16.38 MB / 0.589 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005608/14.68, allocations: 337.3 kB / 4.446 GB, free: 16.13 MB / 0.589 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009194/14.68, allocations: 123.8 kB / 4.446 GB, free: 16.05 MB / 0.589 GB Notification: Performance of prepare postOptimizeDAE: time 1.587e-05/14.68, allocations: 4 kB / 4.446 GB, free: 16.04 MB / 0.589 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01989/14.7, allocations: 3.577 MB / 4.449 GB, free: 14 MB / 0.589 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.834e-05/14.7, allocations: 19.95 kB / 4.449 GB, free: 13.98 MB / 0.589 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001271/14.7, allocations: 313.9 kB / 4.45 GB, free: 13.79 MB / 0.589 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005182/14.7, allocations: 0.588 MB / 4.45 GB, free: 13.32 MB / 0.589 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003447/14.71, allocations: 3.142 MB / 4.453 GB, free: 10.38 MB / 0.589 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004683/14.71, allocations: 305.3 kB / 4.454 GB, free: 10.15 MB / 0.589 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008141/14.71, allocations: 118.1 kB / 4.454 GB, free: 10.07 MB / 0.589 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.junctionVolume.medium.u:DUMMY_DER(fixed = false ) "Specific internal energy of medium" type: Real junctionVolume.mb_flow:VARIABLE(unit = "kg/s" ) "Mass flows across boundaries" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * Number of states: 0 () * Number of discrete variables: 31 (valve2.state_b.phase,valve2.state_a.phase,valve1.state_b.phase,valve1.state_a.phase,$whenCondition1,$whenCondition2,pipe1.statesFM[2].phase,pipe2.statesFM[2].phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,valveOpening2.nextEventScaled,junctionIdeal.medium.phase,junctionVolume.medium.phase,source.medium.phase,sink.medium.phase,pipe3.state_a.phase,pipe3.state_b.phase,pipe2.state_a.phase,pipe2.state_b.phase,pipe1.state_b.phase,pipe1.state_a.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (283): * Single equations (assignments): 276 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {1 1,1 1,1 1,2 5,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.001173/14.71, allocations: 248.1 kB / 4.454 GB, free: 9.824 MB / 0.589 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008407/14.71, allocations: 208.8 kB / 4.454 GB, free: 9.621 MB / 0.589 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03158/14.75, allocations: 8.104 MB / 4.462 GB, free: 5.047 MB / 0.589 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001248/14.75, allocations: 88.25 kB / 4.462 GB, free: 5.012 MB / 0.589 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.306e-05/14.75, allocations: 0 / 4.462 GB, free: 5.012 MB / 0.589 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.4765/15.22, allocations: 7.001 MB / 4.469 GB, free: 81.88 MB / 0.589 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04647/15.27, allocations: 12.66 MB / 4.481 GB, free: 80.64 MB / 0.589 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.388e-05/15.27, allocations: 10.2 kB / 4.481 GB, free: 80.63 MB / 0.589 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003944/15.27, allocations: 456.4 kB / 4.482 GB, free: 80.63 MB / 0.589 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002053/15.27, allocations: 437.2 kB / 4.482 GB, free: 80.59 MB / 0.589 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006969/15.28, allocations: 52.58 kB / 4.482 GB, free: 80.59 MB / 0.589 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003077/15.28, allocations: 3.373 MB / 4.486 GB, free: 78.01 MB / 0.589 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.831e-05/15.28, allocations: 13.47 kB / 4.486 GB, free: 78.01 MB / 0.589 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0311/15.31, allocations: 8.492 MB / 4.494 GB, free: 76.71 MB / 0.589 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002987/15.31, allocations: 0.8102 MB / 4.495 GB, free: 76.55 MB / 0.589 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009744/15.31, allocations: 29.06 kB / 4.495 GB, free: 76.55 MB / 0.589 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004055/15.32, allocations: 191.8 kB / 4.495 GB, free: 76.54 MB / 0.589 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000753/15.32, allocations: 184.4 kB / 4.495 GB, free: 76.54 MB / 0.589 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000341/15.32, allocations: 96.78 kB / 4.495 GB, free: 76.54 MB / 0.589 GB Notification: Performance of sorting global known variables: time 0.002649/15.32, allocations: 1.154 MB / 4.496 GB, free: 76.39 MB / 0.589 GB Notification: Performance of sort global known variables: time 6.72e-07/15.32, allocations: 0 / 4.496 GB, free: 76.39 MB / 0.589 GB Notification: Performance of remove unused functions: time 0.01463/15.34, allocations: 2.788 MB / 4.499 GB, free: 76.39 MB / 0.589 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 9 (pipe1.mediums[1].p,pipe1.mediums[1].h,pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h,junctionIdeal.medium.p,junctionIdeal.medium.h,junctionVolume.medium.h) * Number of discrete variables: 51 ($cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse22.phase,$cse22.region,$cse23.phase,$cse23.region,$cse29.phase,$cse29.region,$cse30.phase,$cse30.region,$cse34.phase,$cse34.region,$cse35.region3boundary,$cse36.region3boundary,$cse37.phase,$cse37.region,$cse39.region3boundary,$cse40.region3boundary,$cse41.phase,$cse41.region,$cse43.phase,$cse43.region,$cse44.region3boundary,$cse45.region3boundary,$cse46.phase,$cse46.region,$cse49.phase,$cse49.region,$whenCondition1,$whenCondition2,pipe1.statesFM[2].phase,pipe2.statesFM[2].phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,valveOpening2.nextEvent,valveOpening2.nextEventScaled,junctionIdeal.medium.phase,junctionVolume.medium.phase) * Number of discrete states: 12 (valveOpening2.nextEvent,valveOpening2.last,valveOpening2.nextEventScaled,valveOpening2.b,valveOpening2.a,$whenCondition2,valveOpening1.nextEvent,valveOpening1.last,valveOpening1.nextEventScaled,valveOpening1.b,valveOpening1.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (230): * Single equations (assignments): 202 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 21 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {1 1,1 1,2 4,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01633/15.35, allocations: 3.241 MB / 4.502 GB, free: 76.18 MB / 0.589 GB Notification: Performance of simCode: created initialization part: time 0.01473/15.37, allocations: 5.302 MB / 4.507 GB, free: 75.88 MB / 0.589 GB Notification: Performance of simCode: created event and clocks part: time 1.804e-05/15.37, allocations: 3.188 kB / 4.507 GB, free: 75.88 MB / 0.589 GB Notification: Performance of simCode: created simulation system equations: time 0.00673/15.37, allocations: 2.689 MB / 4.51 GB, free: 75.75 MB / 0.589 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009783/15.38, allocations: 1.01 MB / 4.511 GB, free: 75.72 MB / 0.589 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01742/15.4, allocations: 6.271 MB / 4.517 GB, free: 74.36 MB / 0.589 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003482/15.41, allocations: 2.294 MB / 4.519 GB, free: 73.62 MB / 0.589 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001698/15.41, allocations: 232 kB / 4.519 GB, free: 73.61 MB / 0.589 GB Notification: Performance of SimCode: time 2.515e-06/15.41, allocations: 0 / 4.519 GB, free: 73.61 MB / 0.589 GB Notification: Performance of Templates: time 0.2288/15.64, allocations: 135.1 MB / 4.651 GB, free: 33.42 MB / 0.589 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18 --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.pipe 2>&1)