Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.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.BranchingPipes1,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes1",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.001494/0.001494, allocations: 180.5 kB / 14.15 MB, free: 1.176 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.524/1.524, allocations: 221.3 MB / 236 MB, free: 2.984 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.0008538/0.0008535, allocations: 79.89 kB / 287 MB, free: 248 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2096/0.2096, allocations: 44.16 MB / 382 MB, free: 14.68 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.451e-05/3.454e-05, allocations: 8.156 kB / 451.9 MB, free: 9.328 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1348/0.1349, allocations: 61.92 MB / 0.5018 GB, free: 11.35 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 9.097/9.232, allocations: 2.83 GB / 3.332 GB, free: 39.76 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003548/9.232, allocations: 76.38 kB / 3.332 GB, free: 39.72 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 3.676/12.91, allocations: 0.8083 GB / 4.14 GB, free: 35.48 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.976e-06/12.91, allocations: 0 / 4.14 GB, free: 35.48 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0004215/12.91, allocations: 70.41 kB / 4.14 GB, free: 35.46 MB / 0.5417 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 518 * Number of variables: 518 Notification: Performance of Generate backend data structure: time 0.02249/12.93, allocations: 3.968 MB / 4.144 GB, free: 33.27 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 6.261e-05/12.93, allocations: 11.47 kB / 4.144 GB, free: 33.26 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002179/12.93, allocations: 294.2 kB / 4.144 GB, free: 33.09 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007427/12.94, allocations: 0.8372 MB / 4.145 GB, free: 32.88 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007875/12.95, allocations: 2.1 MB / 4.147 GB, free: 31.91 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000335/12.95, allocations: 178.8 kB / 4.148 GB, free: 31.84 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001327/12.95, allocations: 200.4 kB / 4.148 GB, free: 31.78 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01108/12.96, allocations: 3.715 MB / 4.151 GB, free: 30.19 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001231/12.96, allocations: 7.469 kB / 4.151 GB, free: 30.19 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008738/12.96, allocations: 85.56 kB / 4.151 GB, free: 30.13 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000257/12.96, allocations: 171.3 kB / 4.152 GB, free: 30.11 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008203/12.97, allocations: 3.433 MB / 4.155 GB, free: 28.99 MB / 0.5417 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.02377/13, allocations: 14.94 MB / 4.17 GB, free: 15.31 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004879/13, allocations: 2.161 MB / 4.172 GB, free: 13.47 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001909/13, allocations: 1.087 MB / 4.173 GB, free: 12.49 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0486/13.05, allocations: 24.62 MB / 4.197 GB, free: 1.945 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00539/13.06, allocations: 1.709 MB / 4.198 GB, free: 212 kB / 0.5573 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002079/13.06, allocations: 197 kB / 4.199 GB, free: 16 kB / 0.5573 GB Notification: Performance of pre-optimization done (n=162): time 9.458e-06/13.06, allocations: 0 / 4.199 GB, free: 16 kB / 0.5573 GB Notification: Performance of matching and sorting (n=174): time 0.4908/13.55, allocations: 7.493 MB / 4.206 GB, free: 53.62 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002194/13.55, allocations: 418.2 kB / 4.206 GB, free: 53.15 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003367/13.55, allocations: 1.552 MB / 4.208 GB, free: 52.92 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0004721/13.55, allocations: 59.7 kB / 4.208 GB, free: 52.89 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009644/13.55, allocations: 0.9773 MB / 4.209 GB, free: 52.61 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.00071/13.56, allocations: 0.5861 MB / 4.209 GB, free: 52.32 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001382/13.56, allocations: 40.19 kB / 4.209 GB, free: 52.32 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.00013/13.56, allocations: 389.1 kB / 4.21 GB, free: 52.01 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00181/13.56, allocations: 1.073 MB / 4.211 GB, free: 52 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001874/13.56, allocations: 1.518 MB / 4.212 GB, free: 51.55 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002116/13.56, allocations: 1.312 MB / 4.214 GB, free: 51.46 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.302e-05/13.56, allocations: 6.344 kB / 4.214 GB, free: 51.46 MB / 0.5573 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.006395/13.57, allocations: 3.379 MB / 4.217 GB, free: 51.18 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009281/13.57, allocations: 4.059 MB / 4.221 GB, free: 46.95 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.263e-05/13.57, allocations: 13.09 kB / 4.221 GB, free: 46.95 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00505/13.57, allocations: 0.958 MB / 4.222 GB, free: 46.91 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002668/13.58, allocations: 470.2 kB / 4.222 GB, free: 46.91 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003528/13.58, allocations: 3.16 MB / 4.225 GB, free: 44.82 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003691/13.58, allocations: 236.5 kB / 4.226 GB, free: 44.82 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007447/13.58, allocations: 105 kB / 4.226 GB, free: 44.82 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.89e-05/13.58, allocations: 5.156 kB / 4.226 GB, free: 44.82 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008594/13.59, allocations: 3.049 MB / 4.229 GB, free: 44.67 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.606e-05/13.59, allocations: 14.36 kB / 4.229 GB, free: 44.67 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001396/13.59, allocations: 359.3 kB / 4.229 GB, free: 44.64 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002214/13.6, allocations: 489.2 kB / 4.23 GB, free: 44.64 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003998/13.6, allocations: 4.051 MB / 4.233 GB, free: 41.82 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003042/13.6, allocations: 232.3 kB / 4.234 GB, free: 41.81 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005063/13.6, allocations: 102 kB / 4.234 GB, free: 41.81 MB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * Number of states: 0 () * Number of discrete variables: 29 (pipe3.state_a.phase,pipe2.state_a.phase,valve2.state_b.phase,valve2.state_a.phase,valve1.state_b.phase,valve1.state_a.phase,pipe1.state_b.phase,pipe1.state_a.phase,$whenCondition1,$whenCondition2,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.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,pipe3.state_b.phase,pipe2.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (219): * Single equations (assignments): 209 * Array equations: 2 * Algorithm blocks: 2 * Record equations: 2 * 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,3 19} Notification: Performance of prepare postOptimizeDAE: time 0.001168/13.61, allocations: 292 kB / 4.234 GB, free: 41.64 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009409/13.61, allocations: 227 kB / 4.234 GB, free: 41.52 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01149/13.62, allocations: 7.857 MB / 4.242 GB, free: 40.84 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.329e-05/13.62, allocations: 84.86 kB / 4.242 GB, free: 40.84 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.222e-05/13.62, allocations: 3.609 kB / 4.242 GB, free: 40.84 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008011/13.63, allocations: 6.873 MB / 4.249 GB, free: 39.89 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01694/13.64, allocations: 10.96 MB / 4.259 GB, free: 39.16 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.427e-05/13.64, allocations: 1.859 kB / 4.259 GB, free: 39.16 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001524/13.65, allocations: 350 kB / 4.26 GB, free: 39.16 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005231/13.65, allocations: 2.53 MB / 4.262 GB, free: 39.07 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002669/13.65, allocations: 64.66 kB / 4.262 GB, free: 39.07 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003216/13.65, allocations: 4.117 MB / 4.266 GB, free: 36.97 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.921e-06/13.65, allocations: 3.375 kB / 4.266 GB, free: 36.97 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01115/13.67, allocations: 7.804 MB / 4.274 GB, free: 36.27 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002373/13.67, allocations: 0.7882 MB / 4.275 GB, free: 35.95 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001036/13.67, allocations: 51.33 kB / 4.275 GB, free: 35.95 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002512/13.67, allocations: 202.9 kB / 4.275 GB, free: 35.94 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003759/13.67, allocations: 146.7 kB / 4.275 GB, free: 35.93 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002245/13.67, allocations: 75.66 kB / 4.275 GB, free: 35.93 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.003076/13.67, allocations: 1.367 MB / 4.277 GB, free: 35.77 MB / 0.5573 GB Notification: Performance of sort global known variables: time 3.61e-07/13.67, allocations: 0 / 4.277 GB, free: 35.77 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.01578/13.69, allocations: 2.865 MB / 4.279 GB, free: 35.65 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 10 (pipe1.mediums[1].p,pipe1.mediums[1].h,valve1.filter.x[1],valve1.filter.x[2],valve2.filter.x[1],valve2.filter.x[2],pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 55 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse21.phase,$cse21.region,$cse22.phase,$cse22.region,$cse27.phase,$cse27.region,$cse28.phase,$cse28.region,$cse30.phase,$cse30.region,$cse33.phase,$cse33.region,$cse35.region3boundary,$cse36.region3boundary,$cse37.phase,$cse37.region,$cse39.phase,$cse39.region,$cse41.region3boundary,$cse42.region3boundary,$cse43.phase,$cse43.region,$cse45.phase,$cse45.region,$whenCondition1,$whenCondition2,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.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) * 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 (170): * Single equations (assignments): 145 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 19 * 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,3 28} Notification: Performance of Backend phase and start with SimCode phase: time 0.02791/13.72, allocations: 10.35 MB / 4.289 GB, free: 34.25 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.01172/13.73, allocations: 5.349 MB / 4.295 GB, free: 33.67 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 9.467e-06/13.73, allocations: 0 / 4.295 GB, free: 33.67 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.004837/13.74, allocations: 2.358 MB / 4.297 GB, free: 33.52 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006664/13.74, allocations: 0.9623 MB / 4.298 GB, free: 33.51 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02413/13.77, allocations: 7.416 MB / 4.305 GB, free: 32.09 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003331/13.77, allocations: 2.302 MB / 4.307 GB, free: 31.32 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.006521/13.78, allocations: 2.439 MB / 4.31 GB, free: 31.29 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002444/13.78, allocations: 1.289 MB / 4.311 GB, free: 30.31 MB / 0.5573 GB Notification: Performance of SimCode: time 1.893e-06/13.78, allocations: 1.938 kB / 4.311 GB, free: 30.31 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7018/14.48, allocations: 126 MB / 4.434 GB, free: 81.96 MB / 0.5886 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002268/14.48, allocations: 231.1 kB / 4.434 GB, free: 81.66 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.974/21.45, allocations: 2.375 kB / 4.434 GB, free: 81.66 MB / 0.5886 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes1_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes1.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1_res.mat does not exist to compare? outputFormat=mat