Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes17",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes17",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001328/0.001327, allocations: 170.4 kB / 8.74 MB, free: 348 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.517/1.517, allocations: 221.5 MB / 230.7 MB, free: 7.516 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001066/0.001066, allocations: 92.03 kB / 281.6 MB, free: 5.262 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2409/0.2409, allocations: 44.15 MB / 376.5 MB, free: 3.047 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.989e-05/1.985e-05, allocations: 224 / 444.7 MB, free: 15.15 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1551/0.1552, allocations: 61.92 MB / 0.4948 GB, free: 1.168 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.918/2.074, allocations: 0.5608 GB / 1.056 GB, free: 43.36 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002916/2.074, allocations: 79.95 kB / 1.056 GB, free: 43.29 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 2.826/4.9, allocations: 0.5574 GB / 1.613 GB, free: 48.86 MB / 0.5261 GB Notification: Performance of FrontEnd: time 3.437e-06/4.9, allocations: 0 / 1.613 GB, free: 48.86 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0003477/4.901, allocations: 66.02 kB / 1.613 GB, free: 48.84 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 452 * Number of variables: 452 Notification: Performance of Generate backend data structure: time 0.01763/4.918, allocations: 2.946 MB / 1.616 GB, free: 47.41 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 9.045e-05/4.918, allocations: 13.8 kB / 1.616 GB, free: 47.41 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005306/4.924, allocations: 454.2 kB / 1.616 GB, free: 47.28 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01094/4.935, allocations: 2.008 MB / 1.618 GB, free: 46.79 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002245/4.935, allocations: 61.73 kB / 1.618 GB, free: 46.78 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001636/4.937, allocations: 108.7 kB / 1.619 GB, free: 46.78 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006594/4.943, allocations: 2.219 MB / 1.621 GB, free: 46.55 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006461/4.95, allocations: 2.481 MB / 1.623 GB, free: 45.45 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.307e-05/4.95, allocations: 9.531 kB / 1.623 GB, free: 45.45 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000587/4.95, allocations: 8.344 kB / 1.623 GB, free: 45.45 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002368/4.951, allocations: 154.3 kB / 1.623 GB, free: 45.43 MB / 0.5261 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.01857/4.969, allocations: 11.32 MB / 1.634 GB, free: 37.37 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002921/4.972, allocations: 1.777 MB / 1.636 GB, free: 36.53 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001516/4.974, allocations: 1.049 MB / 1.637 GB, free: 36.12 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008888/4.975, allocations: 0.5056 MB / 1.638 GB, free: 35.64 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002023/4.977, allocations: 1.253 MB / 1.639 GB, free: 35.14 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=167): time 5.962e-06/4.977, allocations: 0 / 1.639 GB, free: 35.14 MB / 0.5261 GB Notification: Performance of matching and sorting (n=195): time 0.04361/5.02, allocations: 9.815 MB / 1.648 GB, free: 32.32 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000178/5.021, allocations: 360.5 kB / 1.649 GB, free: 31.91 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002445/5.023, allocations: 1.102 MB / 1.65 GB, free: 31.25 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0006997/5.024, allocations: 29.7 kB / 1.65 GB, free: 31.21 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.000955/5.025, allocations: 0.9378 MB / 1.651 GB, free: 30.36 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.000939/5.026, allocations: 0.6324 MB / 1.651 GB, free: 29.78 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001605/5.026, allocations: 0 / 1.651 GB, free: 29.78 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001913/5.026, allocations: 393.4 kB / 1.652 GB, free: 29.42 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001599/5.028, allocations: 1.037 MB / 1.653 GB, free: 28.48 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001838/5.03, allocations: 1.499 MB / 1.654 GB, free: 26.96 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008738/5.038, allocations: 2.221 MB / 1.656 GB, free: 25.24 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.986e-05/5.038, allocations: 4 kB / 1.656 GB, free: 25.23 MB / 0.5261 GB Notification: Performance of matching and sorting (n=282) (initialization): time 0.0136/5.052, allocations: 4.057 MB / 1.66 GB, free: 21.83 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.001257/5.053, allocations: 4.259 MB / 1.665 GB, free: 17.35 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.825e-05/5.053, allocations: 8 kB / 1.665 GB, free: 17.34 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007682/5.054, allocations: 287.5 kB / 1.665 GB, free: 17.09 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002584/5.057, allocations: 0.5637 MB / 1.665 GB, free: 16.61 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001735/5.059, allocations: 3.034 MB / 1.668 GB, free: 13.54 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003407/5.062, allocations: 179.5 kB / 1.669 GB, free: 13.41 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007302/5.063, allocations: 203.4 kB / 1.669 GB, free: 13.23 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.745e-05/5.063, allocations: 4 kB / 1.669 GB, free: 13.22 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01228/5.075, allocations: 3.557 MB / 1.672 GB, free: 10.27 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.912e-05/5.075, allocations: 12 kB / 1.672 GB, free: 10.26 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006323/5.076, allocations: 285 kB / 1.673 GB, free: 10.01 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00234/5.078, allocations: 0.5583 MB / 1.673 GB, free: 9.539 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00166/5.08, allocations: 3.033 MB / 1.676 GB, free: 6.473 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002758/5.083, allocations: 174.7 kB / 1.676 GB, free: 6.344 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005211/5.083, allocations: 205.7 kB / 1.676 GB, free: 6.16 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition1,$whenCondition2,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) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (261): * Single equations (assignments): 254 * 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,1 7,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.001097/5.084, allocations: 228.6 kB / 1.677 GB, free: 5.926 MB / 0.5261 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01202/5.096, allocations: 3.506 MB / 1.68 GB, free: 3.016 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008109/5.097, allocations: 208 kB / 1.68 GB, free: 2.816 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01659/5.114, allocations: 5.189 MB / 1.685 GB, free: 14.34 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.273e-05/5.114, allocations: 24 kB / 1.685 GB, free: 14.32 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.864e-05/5.114, allocations: 0 / 1.685 GB, free: 14.32 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0139/5.128, allocations: 3.778 MB / 1.689 GB, free: 10.44 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02546/5.153, allocations: 7.567 MB / 1.696 GB, free: 2.688 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.681e-05/5.153, allocations: 4.719 kB / 1.696 GB, free: 2.684 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002232/5.156, allocations: 459.4 kB / 1.697 GB, free: 2.234 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009073/5.157, allocations: 295.9 kB / 1.697 GB, free: 1.93 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003945/5.157, allocations: 83.94 kB / 1.697 GB, free: 1.848 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003729/5.161, allocations: 3.712 MB / 1.701 GB, free: 13.92 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.701e-05/5.161, allocations: 15.97 kB / 1.701 GB, free: 13.91 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01851/5.179, allocations: 5.635 MB / 1.706 GB, free: 8.02 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002379/5.182, allocations: 0.5326 MB / 1.707 GB, free: 7.469 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001102/5.183, allocations: 27.59 kB / 1.707 GB, free: 7.445 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002638/5.186, allocations: 99.75 kB / 1.707 GB, free: 7.348 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005155/5.186, allocations: 185.8 kB / 1.707 GB, free: 7.168 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005613/5.187, allocations: 183.9 kB / 1.707 GB, free: 6.988 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.002454/5.189, allocations: 0.8056 MB / 1.708 GB, free: 6.188 MB / 0.5573 GB Notification: Performance of sort global known variables: time 5.61e-07/5.189, allocations: 0 / 1.708 GB, free: 6.188 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.01136/5.201, allocations: 1.725 MB / 1.71 GB, free: 4.461 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 24 * Number of states: 9 (pipe1.mediums[1].p,pipe1.mediums[1].T,pipe2.mediums[1].p,pipe2.mediums[1].T,pipe3.mediums[1].p,pipe3.mediums[1].T,junctionIdeal.medium.p,junctionIdeal.medium.T,junctionVolume.medium.T) * Number of discrete variables: 12 ($whenCondition1,$whenCondition2,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,valveOpening2.nextEvent,valveOpening2.nextEventScaled) * 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 (203): * Single equations (assignments): 196 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 4 {1 6,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.6328/5.833, allocations: 10.04 MB / 1.72 GB, free: 77.45 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.01003/5.844, allocations: 4.397 MB / 1.724 GB, free: 77.16 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.788e-05/5.844, allocations: 3.172 kB / 1.724 GB, free: 77.16 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.003184/5.847, allocations: 1.559 MB / 1.725 GB, free: 76.93 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005931/5.853, allocations: 0.9116 MB / 1.726 GB, free: 76.91 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0187/5.872, allocations: 4.97 MB / 1.731 GB, free: 75.89 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002441/5.874, allocations: 1.766 MB / 1.733 GB, free: 75.16 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.01118/5.885, allocations: 3.143 MB / 1.736 GB, free: 75.09 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002921/5.888, allocations: 1.056 MB / 1.737 GB, free: 75.09 MB / 0.5573 GB Notification: Performance of SimCode: time 2.555e-06/5.888, allocations: 0 / 1.737 GB, free: 75.09 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1962/6.084, allocations: 85.03 MB / 1.82 GB, free: 70.1 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003792/6.085, allocations: 186.5 kB / 1.82 GB, free: 69.9 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.564/11.65, allocations: 0 / 1.82 GB, free: 69.9 MB / 0.5573 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes17_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-07 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes17.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.pipe 2>&1)