Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes4",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes4",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001375/0.001375, allocations: 202.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.418/1.418, allocations: 225.6 MB / 234.8 MB, free: 3.238 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001008/0.001008, allocations: 92.45 kB / 286.7 MB, free: 5.289 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2417/0.2417, allocations: 45.15 MB / 383.8 MB, free: 240 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 2.331e-05/2.31e-05, allocations: 4 kB / 453.3 MB, free: 75.74 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1352/0.1352, allocations: 63.25 MB / 0.5044 GB, free: 12.54 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.604/8.739, allocations: 2.835 GB / 3.339 GB, free: 6.289 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002555/8.739, allocations: 80.52 kB / 3.339 GB, free: 6.25 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 3.975/12.71, allocations: 0.9053 GB / 4.245 GB, free: 38.03 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.263e-06/12.71, allocations: 0 / 4.245 GB, free: 38.03 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0003292/12.71, allocations: 69.05 kB / 4.245 GB, free: 38.02 MB / 0.5573 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 536 * Number of variables: 536 Notification: Performance of Generate backend data structure: time 0.01734/12.73, allocations: 4.051 MB / 4.249 GB, free: 36.22 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.282e-05/12.73, allocations: 10.72 kB / 4.249 GB, free: 36.22 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006878/12.74, allocations: 0.876 MB / 4.249 GB, free: 36.08 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007757/12.75, allocations: 2.074 MB / 4.251 GB, free: 35.63 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003109/12.75, allocations: 97.94 kB / 4.252 GB, free: 35.62 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001161/12.75, allocations: 120.2 kB / 4.252 GB, free: 35.62 MB / 0.5573 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006244/12.75, allocations: 2.674 MB / 4.254 GB, free: 35.61 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007354/12.76, allocations: 2.894 MB / 4.257 GB, free: 35.09 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001012/12.76, allocations: 9.062 kB / 4.257 GB, free: 35.09 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006976/12.76, allocations: 6.781 kB / 4.257 GB, free: 35.09 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002772/12.76, allocations: 171.6 kB / 4.257 GB, free: 35.09 MB / 0.5573 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.733/13.5, allocations: 138.8 MB / 4.393 GB, free: 100.4 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00288/13.5, allocations: 2.08 MB / 4.395 GB, free: 99.76 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001269/13.5, allocations: 0.9813 MB / 4.396 GB, free: 99.75 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03291/13.53, allocations: 18.86 MB / 4.414 GB, free: 87.37 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002756/13.54, allocations: 1.194 MB / 4.415 GB, free: 87.21 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=153): time 8.466e-06/13.54, allocations: 0.7812 kB / 4.415 GB, free: 87.21 MB / 0.6198 GB Notification: Performance of matching and sorting (n=169): time 0.02437/13.56, allocations: 7.955 MB / 4.423 GB, free: 85.71 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001012/13.56, allocations: 358.7 kB / 4.424 GB, free: 85.31 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001656/13.56, allocations: 1.139 MB / 4.425 GB, free: 85.15 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 0.0001841/13.56, allocations: 29.03 kB / 4.425 GB, free: 85.12 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008935/13.56, allocations: 1.039 MB / 4.426 GB, free: 84.77 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005528/13.56, allocations: 0.5453 MB / 4.426 GB, free: 84.48 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001203/13.56, allocations: 0 / 4.426 GB, free: 84.48 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 0.0001379/13.56, allocations: 389.6 kB / 4.427 GB, free: 84.18 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001471/13.57, allocations: 1.007 MB / 4.428 GB, free: 84.17 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001592/13.57, allocations: 1.422 MB / 4.429 GB, free: 83.72 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006529/13.57, allocations: 1.936 MB / 4.431 GB, free: 83.71 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.008e-05/13.57, allocations: 3.469 kB / 4.431 GB, free: 83.71 MB / 0.6198 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.01264/13.59, allocations: 3.656 MB / 4.434 GB, free: 83.5 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 0.001305/13.59, allocations: 4.412 MB / 4.439 GB, free: 79 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.521e-05/13.59, allocations: 11.34 kB / 4.439 GB, free: 79 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006459/13.59, allocations: 216 kB / 4.439 GB, free: 78.96 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002323/13.59, allocations: 0.5087 MB / 4.439 GB, free: 78.96 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001383/13.59, allocations: 2.46 MB / 4.442 GB, free: 76.89 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003155/13.6, allocations: 282.5 kB / 4.442 GB, free: 76.88 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004996/13.6, allocations: 99.62 kB / 4.442 GB, free: 76.88 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.397e-05/13.6, allocations: 4.969 kB / 4.442 GB, free: 76.88 MB / 0.6198 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008674/13.6, allocations: 3.215 MB / 4.445 GB, free: 76.8 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.073e-05/13.6, allocations: 14.75 kB / 4.445 GB, free: 76.8 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005457/13.61, allocations: 212.2 kB / 4.446 GB, free: 76.77 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002052/13.61, allocations: 0.5098 MB / 4.446 GB, free: 76.77 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001294/13.61, allocations: 2.458 MB / 4.448 GB, free: 74.69 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002624/13.61, allocations: 242.1 kB / 4.449 GB, free: 74.68 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003684/13.61, allocations: 107.3 kB / 4.449 GB, free: 74.68 MB / 0.6198 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * Number of states: 0 () * Number of discrete variables: 30 (pipe3.state_a.phase,pipe2.state_a.phase,valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.state_a.phase,pipe1.state_b.phase,pipe1.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,splitter.medium.phase,source.medium.phase,sink.medium.phase,pipe3.state_b.phase,pipe2.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (243): * Single equations (assignments): 237 * 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.000832/13.61, allocations: 230.9 kB / 4.449 GB, free: 74.51 MB / 0.6198 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.006394/13.62, allocations: 2.548 MB / 4.451 GB, free: 74.32 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006677/13.62, allocations: 197 kB / 4.452 GB, free: 74.22 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0109/13.63, allocations: 6.389 MB / 4.458 GB, free: 73.73 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.044e-05/13.63, allocations: 75.67 kB / 4.458 GB, free: 73.73 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.965e-05/13.63, allocations: 2.781 kB / 4.458 GB, free: 73.73 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008846/13.64, allocations: 5.37 MB / 4.463 GB, free: 72.98 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01509/13.65, allocations: 9.148 MB / 4.472 GB, free: 72.2 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.651e-05/13.65, allocations: 1.844 kB / 4.472 GB, free: 72.2 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001512/13.66, allocations: 369.2 kB / 4.473 GB, free: 72.2 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008202/13.66, allocations: 313.9 kB / 4.473 GB, free: 72.16 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002474/13.66, allocations: 42.09 kB / 4.473 GB, free: 72.16 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001321/13.66, allocations: 2.636 MB / 4.475 GB, free: 70.07 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.161e-06/13.66, allocations: 2.594 kB / 4.475 GB, free: 70.07 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009452/13.67, allocations: 6.354 MB / 4.482 GB, free: 69.48 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001865/13.67, allocations: 0.7121 MB / 4.482 GB, free: 69.19 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008004/13.67, allocations: 22.53 kB / 4.482 GB, free: 69.19 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002196/13.67, allocations: 177 kB / 4.483 GB, free: 69.18 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002991/13.67, allocations: 132.8 kB / 4.483 GB, free: 69.18 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001953/13.67, allocations: 72.86 kB / 4.483 GB, free: 69.18 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.001821/13.68, allocations: 1.102 MB / 4.484 GB, free: 69.07 MB / 0.6198 GB Notification: Performance of sort global known variables: time 3e-07/13.68, allocations: 0 / 4.484 GB, free: 69.07 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.01289/13.69, allocations: 2.754 MB / 4.486 GB, free: 68.94 MB / 0.6198 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 8 (pipe1.mediums[1].p,pipe1.mediums[1].h,pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h,splitter.medium.p,splitter.medium.h) * Number of discrete variables: 46 ($cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,$cse17.phase,$cse17.region,$cse22.phase,$cse22.region,$cse23.phase,$cse23.region,$cse25.phase,$cse25.region,$cse26.region3boundary,$cse27.region3boundary,$cse28.phase,$cse28.region,$cse30.region3boundary,$cse31.region3boundary,$cse32.phase,$cse32.region,$cse34.phase,$cse34.region,$cse35.region3boundary,$cse36.region3boundary,$cse37.phase,$cse37.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,splitter.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 (185): * Single equations (assignments): 160 * 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,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.02548/13.71, allocations: 10.21 MB / 4.496 GB, free: 67.34 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.009672/13.72, allocations: 4.74 MB / 4.501 GB, free: 67.03 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.049e-05/13.72, allocations: 3.625 kB / 4.501 GB, free: 67.03 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.003424/13.73, allocations: 2.162 MB / 4.503 GB, free: 66.89 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00588/13.73, allocations: 0.8647 MB / 4.504 GB, free: 66.88 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01917/13.75, allocations: 6.812 MB / 4.511 GB, free: 65.54 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002543/13.76, allocations: 2.195 MB / 4.513 GB, free: 64.78 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.006022/13.76, allocations: 2.604 MB / 4.515 GB, free: 64.75 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002078/13.76, allocations: 1.222 MB / 4.517 GB, free: 64.74 MB / 0.6198 GB Notification: Performance of SimCode: time 1.713e-06/13.76, allocations: 2 kB / 4.517 GB, free: 64.74 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5832/14.35, allocations: 102.1 MB / 4.616 GB, free: 96 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000175/14.35, allocations: 175.7 kB / 4.616 GB, free: 95.82 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.785/20.13, allocations: 0 / 4.616 GB, free: 95.82 MB / 0.6198 GB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes4_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes4.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4_res.mat does not exist to compare? outputFormat=mat