Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes18",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes18",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001966/0.001966, allocations: 177.8 kB / 8.007 MB, free: 1.066 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.116/2.116, allocations: 205.3 MB / 213.7 MB, free: 1.742 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001002/0.001002, allocations: 86.7 kB / 261.8 MB, free: 1.684 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2637/0.2637, allocations: 43.49 MB / 353.2 MB, free: 280 kB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 3.134e-05/3.173e-05, allocations: 4 kB / 418.4 MB, free: 28.44 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1553/0.1553, allocations: 58.87 MB / 477.2 MB, free: 1.527 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.396/8.551, allocations: 2.846 GB / 3.312 GB, free: 110 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001969/8.552, allocations: 84.02 kB / 3.312 GB, free: 109.9 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 3.666/12.22, allocations: 1.005 GB / 4.317 GB, free: 35.62 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.442e-06/12.22, allocations: 0 / 4.317 GB, free: 35.62 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0002103/12.22, allocations: 77.28 kB / 4.318 GB, free: 35.61 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: 575 * Number of variables: 575 Notification: Performance of Generate backend data structure: time 0.0149/12.23, allocations: 4.248 MB / 4.322 GB, free: 33.69 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.293e-05/12.23, allocations: 9.688 kB / 4.322 GB, free: 33.69 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007161/12.24, allocations: 0.9328 MB / 4.323 GB, free: 33.54 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005508/12.25, allocations: 2.206 MB / 4.325 GB, free: 33.07 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001543/12.25, allocations: 98.83 kB / 4.325 GB, free: 33.07 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005529/12.25, allocations: 131.1 kB / 4.325 GB, free: 33.07 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004187/12.25, allocations: 2.815 MB / 4.328 GB, free: 33.05 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004246/12.26, allocations: 3.024 MB / 4.331 GB, free: 32.46 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.434e-05/12.26, allocations: 8.844 kB / 4.331 GB, free: 32.46 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000269/12.26, allocations: 7.344 kB / 4.331 GB, free: 32.46 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000184/12.26, allocations: 179.3 kB / 4.331 GB, free: 32.45 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.1033/12.36, allocations: 63.65 MB / 4.393 GB, free: 24.72 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003523/12.36, allocations: 2.355 MB / 4.395 GB, free: 24.11 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001651/12.36, allocations: 1.199 MB / 4.397 GB, free: 24.1 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03163/12.4, allocations: 16.81 MB / 4.413 GB, free: 12.39 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002238/12.4, allocations: 1.388 MB / 4.414 GB, free: 11.62 MB / 0.573 GB Notification: Performance of pre-optimization done (n=186): time 4.849e-06/12.4, allocations: 0 / 4.414 GB, free: 11.62 MB / 0.573 GB Notification: Performance of matching and sorting (n=206): time 0.03583/12.43, allocations: 10.5 MB / 4.425 GB, free: 4.758 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001908/12.43, allocations: 363.8 kB / 4.425 GB, free: 4.324 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001603/12.44, allocations: 1.157 MB / 4.426 GB, free: 3.586 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0003814/12.44, allocations: 29.7 kB / 4.426 GB, free: 3.551 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009964/12.44, allocations: 1.06 MB / 4.427 GB, free: 2.938 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008036/12.44, allocations: 0.6682 MB / 4.428 GB, free: 2.402 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001392/12.44, allocations: 3.938 kB / 4.428 GB, free: 2.398 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0002042/12.44, allocations: 401.5 kB / 4.428 GB, free: 2.066 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001742/12.44, allocations: 1.113 MB / 4.429 GB, free: 1.234 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.4086/12.85, allocations: 1.609 MB / 4.431 GB, free: 66.81 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0102/12.86, allocations: 2.101 MB / 4.433 GB, free: 66.8 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.476e-05/12.86, allocations: 3.875 kB / 4.433 GB, free: 66.8 MB / 0.573 GB Notification: Performance of matching and sorting (n=303) (initialization): time 0.01406/12.87, allocations: 4.069 MB / 4.437 GB, free: 66.69 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009276/12.87, allocations: 5.06 MB / 4.442 GB, free: 61.56 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.807e-05/12.87, allocations: 12.38 kB / 4.442 GB, free: 61.56 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008641/12.88, allocations: 322.3 kB / 4.442 GB, free: 61.52 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002818/12.88, allocations: 0.5946 MB / 4.443 GB, free: 61.52 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001754/12.88, allocations: 3.143 MB / 4.446 GB, free: 58.94 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003339/12.88, allocations: 334 kB / 4.446 GB, free: 58.94 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003754/12.88, allocations: 118.2 kB / 4.446 GB, free: 58.94 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.213e-05/12.88, allocations: 5.094 kB / 4.446 GB, free: 58.94 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01305/12.9, allocations: 3.581 MB / 4.45 GB, free: 58.85 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.029e-05/12.9, allocations: 13.67 kB / 4.45 GB, free: 58.85 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001287/12.9, allocations: 323.6 kB / 4.45 GB, free: 58.81 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004281/12.9, allocations: 0.5865 MB / 4.451 GB, free: 58.81 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002817/12.91, allocations: 3.137 MB / 4.454 GB, free: 56.22 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005215/12.91, allocations: 306.4 kB / 4.454 GB, free: 56.22 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008437/12.91, allocations: 117.1 kB / 4.454 GB, free: 56.22 MB / 0.573 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.001327/12.91, allocations: 245.8 kB / 4.454 GB, free: 56.05 MB / 0.573 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.02435/12.94, allocations: 3.498 MB / 4.458 GB, free: 55.93 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001313/12.94, allocations: 211.9 kB / 4.458 GB, free: 55.93 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03329/12.97, allocations: 8.105 MB / 4.466 GB, free: 55.34 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001325/12.97, allocations: 84.22 kB / 4.466 GB, free: 55.34 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.725e-05/12.97, allocations: 9.5 kB / 4.466 GB, free: 55.34 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02703/13, allocations: 7.002 MB / 4.473 GB, free: 54.49 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03037/13.03, allocations: 12.67 MB / 4.485 GB, free: 53.12 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.181e-05/13.03, allocations: 7.188 kB / 4.485 GB, free: 53.12 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002077/13.03, allocations: 453.4 kB / 4.486 GB, free: 53.12 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00114/13.03, allocations: 438.9 kB / 4.486 GB, free: 53.07 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004762/13.03, allocations: 52.25 kB / 4.486 GB, free: 53.06 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001913/13.04, allocations: 3.366 MB / 4.489 GB, free: 50.46 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.124e-05/13.04, allocations: 15.41 kB / 4.489 GB, free: 50.46 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01873/13.05, allocations: 8.498 MB / 4.498 GB, free: 48.98 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002096/13.06, allocations: 0.8035 MB / 4.498 GB, free: 48.71 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001079/13.06, allocations: 27.75 kB / 4.498 GB, free: 48.71 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003002/13.06, allocations: 201.4 kB / 4.499 GB, free: 48.7 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004476/13.06, allocations: 178.5 kB / 4.499 GB, free: 48.7 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000307/13.06, allocations: 98.58 kB / 4.499 GB, free: 48.7 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.002263/13.06, allocations: 1.15 MB / 4.5 GB, free: 48.55 MB / 0.573 GB Notification: Performance of sort global known variables: time 4.11e-07/13.06, allocations: 0 / 4.5 GB, free: 48.55 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.01245/13.08, allocations: 2.793 MB / 4.503 GB, free: 48.55 MB / 0.573 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.03119/13.11, allocations: 13.81 MB / 4.516 GB, free: 44.87 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.0101/13.12, allocations: 5.351 MB / 4.521 GB, free: 44.55 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.988e-05/13.12, allocations: 5.094 kB / 4.521 GB, free: 44.55 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.004267/13.12, allocations: 2.696 MB / 4.524 GB, free: 44.42 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005958/13.13, allocations: 1.012 MB / 4.525 GB, free: 44.39 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01857/13.15, allocations: 7.57 MB / 4.532 GB, free: 42.84 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003353/13.15, allocations: 2.351 MB / 4.535 GB, free: 42.06 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.007011/13.16, allocations: 2.744 MB / 4.537 GB, free: 42.02 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002388/13.16, allocations: 1.363 MB / 4.539 GB, free: 42.01 MB / 0.573 GB Notification: Performance of SimCode: time 1.162e-06/13.16, allocations: 0 / 4.539 GB, free: 42.01 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5548/13.71, allocations: 111.6 MB / 4.648 GB, free: 57.94 MB / 0.573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002933/13.71, allocations: 183.7 kB / 4.648 GB, free: 57.75 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.242/20.96, allocations: 0 / 4.648 GB, free: 57.75 MB / 0.573 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes18_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes18.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18_res.mat does not exist to compare? outputFormat=mat