Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.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.BranchingPipes1,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001367/0.001366, allocations: 197.4 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.665/1.665, allocations: 227.2 MB / 245 MB, free: 7.484 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001267/0.001267, allocations: 107.5 kB / 297.3 MB, free: 6.18 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.4771/0.4771, allocations: 45.23 MB / 394.6 MB, free: 31.66 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004434/0.0004438, allocations: 4 kB / 468.5 MB, free: 7.656 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5234/0.5239, allocations: 63.25 MB / 0.5193 GB, free: 43.36 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.332/7.857, allocations: 2.831 GB / 3.35 GB, free: 155.6 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003173/7.857, allocations: 85.84 kB / 3.351 GB, free: 155.6 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 3.737/11.59, allocations: 0.8095 GB / 4.16 GB, free: 42.26 MB / 0.573 GB Notification: Performance of FrontEnd: time 4.558e-06/11.59, allocations: 1.062 kB / 4.16 GB, free: 42.26 MB / 0.573 GB Notification: Performance of Transformations before backend: time 0.0004724/11.59, allocations: 71.3 kB / 4.16 GB, free: 42.26 MB / 0.573 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.02551/11.62, allocations: 4.262 MB / 4.164 GB, free: 40.59 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 7.319e-05/11.62, allocations: 9.438 kB / 4.164 GB, free: 40.59 MB / 0.573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002005/11.62, allocations: 300.6 kB / 4.165 GB, free: 40.54 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007391/11.63, allocations: 0.8339 MB / 4.165 GB, free: 40.4 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007793/11.64, allocations: 2.119 MB / 4.167 GB, free: 39.95 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002495/11.64, allocations: 177.1 kB / 4.168 GB, free: 39.95 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006033/11.64, allocations: 196.6 kB / 4.168 GB, free: 39.95 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008349/11.65, allocations: 3.738 MB / 4.171 GB, free: 39.39 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.727e-05/11.65, allocations: 7 kB / 4.171 GB, free: 39.39 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003191/11.65, allocations: 89.73 kB / 4.172 GB, free: 39.39 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002427/11.65, allocations: 168.8 kB / 4.172 GB, free: 39.39 MB / 0.573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008761/11.66, allocations: 3.554 MB / 4.175 GB, free: 39.37 MB / 0.573 GB Warning: The model contains alias variables with redundant start and/or conflicting 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.03188/11.69, allocations: 14.95 MB / 4.19 GB, free: 30.79 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007841/11.7, allocations: 2.237 MB / 4.192 GB, free: 30.77 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05498/11.75, allocations: 27.09 MB / 4.218 GB, free: 29.12 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006443/11.76, allocations: 1.705 MB / 4.22 GB, free: 29 MB / 0.5886 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002483/11.76, allocations: 203.1 kB / 4.22 GB, free: 28.92 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=162): time 1.793e-05/11.76, allocations: 0 / 4.22 GB, free: 28.92 MB / 0.5886 GB Notification: Performance of matching and sorting (n=174): time 0.03303/11.79, allocations: 9.363 MB / 4.229 GB, free: 27.65 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002761/11.79, allocations: 413.8 kB / 4.23 GB, free: 27.18 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004932/11.8, allocations: 1.569 MB / 4.231 GB, free: 26.95 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 0.0003484/11.8, allocations: 57.05 kB / 4.231 GB, free: 26.92 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.001495/11.8, allocations: 0.9848 MB / 4.232 GB, free: 26.57 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008122/11.8, allocations: 0.5892 MB / 4.233 GB, free: 26.2 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002843/11.8, allocations: 39.12 kB / 4.233 GB, free: 26.2 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0002768/11.8, allocations: 391.1 kB / 4.233 GB, free: 25.89 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00281/11.8, allocations: 1.181 MB / 4.235 GB, free: 25.88 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003503/11.81, allocations: 1.618 MB / 4.236 GB, free: 25.42 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003135/11.81, allocations: 1.418 MB / 4.237 GB, free: 25.34 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.68e-05/11.81, allocations: 3.844 kB / 4.237 GB, free: 25.34 MB / 0.5886 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.008524/11.82, allocations: 3.591 MB / 4.241 GB, free: 25.05 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 0.00209/11.82, allocations: 4.063 MB / 4.245 GB, free: 20.83 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.96e-05/11.82, allocations: 12.33 kB / 4.245 GB, free: 20.83 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005229/11.83, allocations: 0.9839 MB / 4.246 GB, free: 20.79 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002076/11.83, allocations: 471.8 kB / 4.246 GB, free: 20.79 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00293/11.83, allocations: 3.167 MB / 4.249 GB, free: 18.7 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003358/11.84, allocations: 239.7 kB / 4.25 GB, free: 18.69 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005749/11.84, allocations: 100.4 kB / 4.25 GB, free: 18.69 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.873e-05/11.84, allocations: 6.469 kB / 4.25 GB, free: 18.69 MB / 0.5886 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007593/11.84, allocations: 3.266 MB / 4.253 GB, free: 18.54 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.071e-05/11.84, allocations: 13.23 kB / 4.253 GB, free: 18.54 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001407/11.85, allocations: 364.8 kB / 4.253 GB, free: 18.51 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002083/11.85, allocations: 491.4 kB / 4.254 GB, free: 18.51 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004733/11.85, allocations: 4.12 MB / 4.258 GB, free: 15.68 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003182/11.86, allocations: 236.3 kB / 4.258 GB, free: 15.66 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004728/11.86, allocations: 102.1 kB / 4.258 GB, free: 15.66 MB / 0.5886 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 () * Number of clocked 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.002591/11.86, allocations: 0.7601 MB / 4.259 GB, free: 15.41 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001267/11.86, allocations: 219.7 kB / 4.259 GB, free: 15.3 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01344/11.87, allocations: 7.963 MB / 4.267 GB, free: 14.55 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.356e-05/11.87, allocations: 86.67 kB / 4.267 GB, free: 14.55 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.766e-05/11.87, allocations: 0 / 4.267 GB, free: 14.55 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009901/11.88, allocations: 6.979 MB / 4.274 GB, free: 13.63 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02004/11.9, allocations: 11.09 MB / 4.285 GB, free: 12.84 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.13e-05/11.9, allocations: 2.25 kB / 4.285 GB, free: 12.84 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001563/11.91, allocations: 354.3 kB / 4.285 GB, free: 12.84 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005045/11.91, allocations: 2.169 MB / 4.287 GB, free: 12.74 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003109/11.91, allocations: 69.23 kB / 4.287 GB, free: 12.74 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003724/11.91, allocations: 4.096 MB / 4.291 GB, free: 10.63 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.286e-06/11.91, allocations: 3.938 kB / 4.291 GB, free: 10.63 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01363/11.93, allocations: 8.114 MB / 4.299 GB, free: 25.93 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00285/11.93, allocations: 0.7926 MB / 4.3 GB, free: 25.59 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001248/11.93, allocations: 54.97 kB / 4.3 GB, free: 25.59 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003061/11.94, allocations: 193.5 kB / 4.3 GB, free: 25.59 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004617/11.94, allocations: 142.9 kB / 4.3 GB, free: 25.58 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002796/11.94, allocations: 75.58 kB / 4.3 GB, free: 25.58 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.003422/11.94, allocations: 1.392 MB / 4.302 GB, free: 25.44 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.5e-07/11.94, allocations: 1.094 kB / 4.302 GB, free: 25.44 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.01659/11.96, allocations: 2.881 MB / 4.304 GB, free: 25.02 MB / 0.6042 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) * Number of clocked states: 0 () * 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.02849/11.98, allocations: 10.7 MB / 4.315 GB, free: 23.33 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0134/12, allocations: 5.595 MB / 4.32 GB, free: 22.02 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 1.483e-05/12, allocations: 4.312 kB / 4.32 GB, free: 22.02 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.004623/12, allocations: 2.439 MB / 4.323 GB, free: 20.95 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006459/12.01, allocations: 0.9613 MB / 4.324 GB, free: 20.76 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03508/12.04, allocations: 17.74 MB / 4.341 GB, free: 7.82 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004099/12.05, allocations: 2.295 MB / 4.343 GB, free: 6.918 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.00607/12.05, allocations: 2.239 MB / 4.345 GB, free: 6.848 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002754/12.06, allocations: 1.309 MB / 4.347 GB, free: 5.789 MB / 0.6042 GB Notification: Performance of SimCode: time 1.693e-06/12.06, allocations: 0 / 4.347 GB, free: 5.789 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7206/12.78, allocations: 118.3 MB / 4.462 GB, free: 82.97 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002114/12.78, allocations: 271.2 kB / 4.462 GB, free: 82.63 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.841/19.62, allocations: 0 / 4.462 GB, free: 82.63 MB / 0.6198 GB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes1_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes1.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1_res.mat does not exist to compare? outputFormat=mat