Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16.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.BranchingPipes16,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes16",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes16",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.001138/0.001137, 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.554/1.554, allocations: 221.5 MB / 230.7 MB, free: 7.578 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.001009/0.001009, allocations: 93.97 kB / 281.6 MB, free: 5.324 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.248/0.248, allocations: 44.15 MB / 376.5 MB, free: 3.059 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 2.583e-05/2.584e-05, allocations: 4.219 kB / 444.7 MB, free: 15.16 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1578/0.1579, allocations: 61.92 MB / 0.4948 GB, free: 1.18 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.94/2.098, allocations: 0.5607 GB / 1.055 GB, free: 43.47 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003624/2.099, allocations: 81.27 kB / 1.056 GB, free: 43.39 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 2.644/4.743, allocations: 0.5008 GB / 1.556 GB, free: 51.16 MB / 0.5261 GB Notification: Performance of FrontEnd: time 3.176e-06/4.743, allocations: 3.5 kB / 1.556 GB, free: 51.16 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0001951/4.743, allocations: 60.27 kB / 1.556 GB, free: 51.15 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: 427 * Number of variables: 427 Notification: Performance of Generate backend data structure: time 0.009608/4.753, allocations: 2.808 MB / 1.559 GB, free: 50.03 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.345e-05/4.753, allocations: 15.23 kB / 1.559 GB, free: 50.03 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003047/4.756, allocations: 440.4 kB / 1.56 GB, free: 49.9 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004898/4.761, allocations: 1.941 MB / 1.561 GB, free: 49.49 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001006/4.761, allocations: 55.34 kB / 1.562 GB, free: 49.49 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005134/4.761, allocations: 97 kB / 1.562 GB, free: 49.49 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00418/4.766, allocations: 2.139 MB / 1.564 GB, free: 49.48 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003787/4.769, allocations: 2.386 MB / 1.566 GB, free: 49.05 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.66e-05/4.769, allocations: 0 / 1.566 GB, free: 49.05 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002043/4.77, allocations: 6.688 kB / 1.566 GB, free: 49.05 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001896/4.77, allocations: 157 kB / 1.566 GB, free: 49.05 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.01634/4.786, allocations: 11.1 MB / 1.577 GB, free: 42.76 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00271/4.789, allocations: 1.73 MB / 1.579 GB, free: 42.44 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001292/4.79, allocations: 0.9767 MB / 1.58 GB, free: 42.43 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009092/4.791, allocations: 0.5054 MB / 1.58 GB, free: 41.96 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001743/4.793, allocations: 1.155 MB / 1.581 GB, free: 41.79 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=153): time 4.779e-06/4.793, allocations: 1.656 kB / 1.581 GB, free: 41.79 MB / 0.5261 GB Notification: Performance of matching and sorting (n=176): time 0.04108/4.834, allocations: 9.011 MB / 1.59 GB, free: 40.89 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002083/4.834, allocations: 358.5 kB / 1.59 GB, free: 40.49 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003329/4.838, allocations: 1.077 MB / 1.592 GB, free: 40.32 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0003962/4.838, allocations: 29.58 kB / 1.592 GB, free: 40.29 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001492/4.84, allocations: 0.9001 MB / 1.592 GB, free: 39.9 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008846/4.84, allocations: 0.5704 MB / 1.593 GB, free: 39.52 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002816/4.841, allocations: 0 / 1.593 GB, free: 39.52 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002453/4.841, allocations: 390.3 kB / 1.593 GB, free: 39.22 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001807/4.843, allocations: 0.9771 MB / 1.594 GB, free: 39.21 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002434/4.845, allocations: 1.411 MB / 1.596 GB, free: 38.79 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009851/4.855, allocations: 2.173 MB / 1.598 GB, free: 38.77 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.075e-05/4.855, allocations: 2.219 kB / 1.598 GB, free: 38.77 MB / 0.5261 GB Notification: Performance of matching and sorting (n=260) (initialization): time 0.01393/4.869, allocations: 3.847 MB / 1.602 GB, free: 38.57 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.002018/4.871, allocations: 3.707 MB / 1.605 GB, free: 34.79 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.566e-05/4.871, allocations: 15.97 kB / 1.605 GB, free: 34.79 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005442/4.872, allocations: 171.3 kB / 1.605 GB, free: 34.75 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00255/4.874, allocations: 0.5461 MB / 1.606 GB, free: 34.75 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001805/4.876, allocations: 2.343 MB / 1.608 GB, free: 32.68 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003453/4.88, allocations: 173.5 kB / 1.608 GB, free: 32.67 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006433/4.88, allocations: 190.7 kB / 1.609 GB, free: 32.67 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.971e-05/4.88, allocations: 3.906 kB / 1.609 GB, free: 32.67 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01178/4.892, allocations: 3.357 MB / 1.612 GB, free: 32.59 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.061e-05/4.892, allocations: 13.08 kB / 1.612 GB, free: 32.58 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004032/4.893, allocations: 171.1 kB / 1.612 GB, free: 32.55 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002301/4.895, allocations: 0.5319 MB / 1.613 GB, free: 32.55 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001645/4.897, allocations: 2.331 MB / 1.615 GB, free: 30.48 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003054/4.9, allocations: 169.5 kB / 1.615 GB, free: 30.47 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005023/4.9, allocations: 183.5 kB / 1.615 GB, free: 30.47 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 41 * 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 (246): * Single equations (assignments): 240 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 1,1 1,1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.001098/4.901, allocations: 234.5 kB / 1.615 GB, free: 30.29 MB / 0.5261 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0128/4.914, allocations: 3.236 MB / 1.619 GB, free: 30.09 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001007/4.915, allocations: 193.7 kB / 1.619 GB, free: 29.99 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01557/4.931, allocations: 4.411 MB / 1.623 GB, free: 29.79 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.303e-05/4.931, allocations: 15.34 kB / 1.623 GB, free: 29.79 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.289e-05/4.931, allocations: 3.469 kB / 1.623 GB, free: 29.79 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01329/4.944, allocations: 3.476 MB / 1.626 GB, free: 29.27 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0245/4.969, allocations: 7.003 MB / 1.633 GB, free: 28.1 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.674e-05/4.969, allocations: 7.5 kB / 1.633 GB, free: 28.1 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002026/4.971, allocations: 412.3 kB / 1.634 GB, free: 28.1 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004851/4.971, allocations: 165.9 kB / 1.634 GB, free: 28.07 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003945/4.972, allocations: 75.25 kB / 1.634 GB, free: 28.06 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002082/4.974, allocations: 3.025 MB / 1.637 GB, free: 25.2 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.699e-05/4.974, allocations: 10.61 kB / 1.637 GB, free: 25.19 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01549/4.989, allocations: 5.199 MB / 1.642 GB, free: 22.98 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001752/4.991, allocations: 0.5099 MB / 1.642 GB, free: 22.68 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000872/4.992, allocations: 26.61 kB / 1.642 GB, free: 22.68 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002114/4.994, allocations: 93.66 kB / 1.643 GB, free: 22.67 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003708/4.995, allocations: 162.1 kB / 1.643 GB, free: 22.65 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003677/4.995, allocations: 145.9 kB / 1.643 GB, free: 22.63 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.001906/4.997, allocations: 0.7959 MB / 1.644 GB, free: 22.3 MB / 0.5261 GB Notification: Performance of sort global known variables: time 4.41e-07/4.997, allocations: 0 / 1.644 GB, free: 22.3 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.009006/5.006, allocations: 1.639 MB / 1.645 GB, free: 22.02 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 24 * Number of states: 8 (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) * 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 (186): * Single equations (assignments): 180 * 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: 4 * 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: 3 {1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.02367/5.03, allocations: 9.465 MB / 1.654 GB, free: 15.57 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.009541/5.039, allocations: 4.127 MB / 1.658 GB, free: 11.77 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.821e-05/5.039, allocations: 0 / 1.658 GB, free: 11.77 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.002789/5.042, allocations: 1.418 MB / 1.66 GB, free: 10.45 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005514/5.048, allocations: 0.7714 MB / 1.661 GB, free: 9.918 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01512/5.063, allocations: 4.697 MB / 1.665 GB, free: 5.793 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00202/5.065, allocations: 1.72 MB / 1.667 GB, free: 4.395 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.009335/5.074, allocations: 2.972 MB / 1.67 GB, free: 2.516 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002721/5.077, allocations: 0.9691 MB / 1.671 GB, free: 1.648 MB / 0.5261 GB Notification: Performance of SimCode: time 1.663e-06/5.077, allocations: 0 / 1.671 GB, free: 1.648 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7245/5.802, allocations: 77.89 MB / 1.747 GB, free: 74.16 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002535/5.802, allocations: 191.2 kB / 1.747 GB, free: 73.96 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.303/11.11, allocations: 1.422 kB / 1.747 GB, free: 73.96 MB / 0.5573 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes16_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes16.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16.pipe 2>&1)