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.0009895/0.0009897, allocations: 197.3 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.207/1.207, allocations: 225.4 MB / 240.1 MB, free: 15.13 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008503/0.0008504, allocations: 87.47 kB / 292.1 MB, free: 5.895 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1716/0.1716, allocations: 45.15 MB / 389.3 MB, free: 11.87 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 3.163e-05/3.166e-05, allocations: 4 kB / 460.5 MB, free: 69.91 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09367/0.09371, allocations: 63.24 MB / 0.5115 GB, free: 6.691 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.04/6.134, allocations: 2.831 GB / 3.343 GB, free: 10.59 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002009/6.134, allocations: 75.97 kB / 3.343 GB, free: 10.52 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 2.946/9.081, allocations: 0.8074 GB / 4.15 GB, free: 42 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.353e-06/9.081, allocations: 0 / 4.15 GB, free: 42 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0002775/9.081, allocations: 63.66 kB / 4.15 GB, free: 41.99 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: 518 * Number of variables: 518 Notification: Performance of Generate backend data structure: time 0.01571/9.097, allocations: 3.976 MB / 4.154 GB, free: 39.8 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.956e-05/9.097, allocations: 8.844 kB / 4.154 GB, free: 39.8 MB / 0.5573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001377/9.098, allocations: 293.8 kB / 4.154 GB, free: 39.63 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006137/9.104, allocations: 0.8406 MB / 4.155 GB, free: 39.42 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005895/9.11, allocations: 2.085 MB / 4.157 GB, free: 38.46 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002462/9.11, allocations: 177.1 kB / 4.157 GB, free: 38.39 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008549/9.111, allocations: 205.4 kB / 4.157 GB, free: 38.33 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008445/9.12, allocations: 3.722 MB / 4.161 GB, free: 36.76 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.274e-05/9.12, allocations: 7.469 kB / 4.161 GB, free: 36.76 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003118/9.12, allocations: 86.89 kB / 4.161 GB, free: 36.7 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001729/9.12, allocations: 166.3 kB / 4.161 GB, free: 36.68 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006113/9.126, allocations: 3.436 MB / 4.165 GB, free: 35.57 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.0159/9.142, allocations: 14.93 MB / 4.179 GB, free: 24.02 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003674/9.146, allocations: 2.159 MB / 4.181 GB, free: 22.2 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001211/9.147, allocations: 1.089 MB / 4.182 GB, free: 21.21 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04075/9.188, allocations: 27.22 MB / 4.209 GB, free: 9.691 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004325/9.192, allocations: 1.717 MB / 4.211 GB, free: 7.949 MB / 0.573 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001287/9.194, allocations: 206.1 kB / 4.211 GB, free: 7.746 MB / 0.573 GB Notification: Performance of pre-optimization done (n=162): time 3.857e-06/9.194, allocations: 3.938 kB / 4.211 GB, free: 7.742 MB / 0.573 GB Notification: Performance of matching and sorting (n=174): time 0.0167/9.21, allocations: 7.496 MB / 4.218 GB, free: 156 kB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.3117/9.522, allocations: 412.1 kB / 4.219 GB, free: 60.67 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002493/9.525, allocations: 1.547 MB / 4.22 GB, free: 60.46 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0004795/9.525, allocations: 58.31 kB / 4.22 GB, free: 60.43 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006828/9.526, allocations: 0.9825 MB / 4.221 GB, free: 60.33 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004915/9.526, allocations: 0.5858 MB / 4.222 GB, free: 60.12 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001242/9.527, allocations: 39.25 kB / 4.222 GB, free: 60.12 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 9.364e-05/9.527, allocations: 385.4 kB / 4.222 GB, free: 59.81 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00147/9.528, allocations: 1.076 MB / 4.223 GB, free: 59.81 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001492/9.53, allocations: 1.511 MB / 4.225 GB, free: 59.36 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00164/9.531, allocations: 1.319 MB / 4.226 GB, free: 59.27 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.913e-06/9.531, allocations: 6.328 kB / 4.226 GB, free: 59.27 MB / 0.573 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.005361/9.537, allocations: 3.377 MB / 4.229 GB, free: 58.98 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006515/9.537, allocations: 4.054 MB / 4.233 GB, free: 54.77 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.061e-05/9.537, allocations: 17.73 kB / 4.233 GB, free: 54.77 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004224/9.542, allocations: 0.9647 MB / 4.234 GB, free: 54.73 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001805/9.543, allocations: 465.3 kB / 4.235 GB, free: 54.73 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001971/9.545, allocations: 3.156 MB / 4.238 GB, free: 52.65 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002212/9.548, allocations: 236.3 kB / 4.238 GB, free: 52.64 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002102/9.548, allocations: 103.9 kB / 4.238 GB, free: 52.64 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.005e-05/9.548, allocations: 9.625 kB / 4.238 GB, free: 52.64 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005054/9.553, allocations: 3.042 MB / 4.241 GB, free: 52.5 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.012e-05/9.553, allocations: 13.91 kB / 4.241 GB, free: 52.5 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001269/9.554, allocations: 354.7 kB / 4.241 GB, free: 52.46 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002216/9.557, allocations: 490.8 kB / 4.242 GB, free: 52.46 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00379/9.56, allocations: 4.056 MB / 4.246 GB, free: 49.64 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002517/9.563, allocations: 235.6 kB / 4.246 GB, free: 49.64 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002827/9.563, allocations: 103.3 kB / 4.246 GB, free: 49.64 MB / 0.573 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.0006036/9.564, allocations: 294.5 kB / 4.246 GB, free: 49.46 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003634/9.564, allocations: 225.1 kB / 4.247 GB, free: 49.35 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009444/9.574, allocations: 7.854 MB / 4.254 GB, free: 48.66 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.475e-05/9.574, allocations: 83.23 kB / 4.254 GB, free: 48.66 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.758e-06/9.574, allocations: 3.844 kB / 4.254 GB, free: 48.66 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006071/9.58, allocations: 6.868 MB / 4.261 GB, free: 47.72 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01144/9.591, allocations: 10.97 MB / 4.272 GB, free: 46.99 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.995e-06/9.591, allocations: 0 / 4.272 GB, free: 46.99 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001291/9.593, allocations: 353.9 kB / 4.272 GB, free: 46.99 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004375/9.597, allocations: 2.525 MB / 4.275 GB, free: 46.9 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003198/9.597, allocations: 66.27 kB / 4.275 GB, free: 46.9 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002597/9.6, allocations: 4.105 MB / 4.279 GB, free: 44.8 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/9.6, allocations: 2.094 kB / 4.279 GB, free: 44.8 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008119/9.608, allocations: 7.809 MB / 4.286 GB, free: 44.11 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001568/9.61, allocations: 0.7815 MB / 4.287 GB, free: 43.83 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003549/9.61, allocations: 50.83 kB / 4.287 GB, free: 43.83 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001396/9.611, allocations: 208.3 kB / 4.287 GB, free: 43.81 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002642/9.612, allocations: 151.1 kB / 4.287 GB, free: 43.81 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001416/9.612, allocations: 75.33 kB / 4.287 GB, free: 43.81 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.001655/9.614, allocations: 1.37 MB / 4.289 GB, free: 43.65 MB / 0.573 GB Notification: Performance of sort global known variables: time 1.41e-07/9.614, allocations: 0 / 4.289 GB, free: 43.65 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.01128/9.625, allocations: 2.874 MB / 4.292 GB, free: 43.52 MB / 0.573 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.02005/9.645, allocations: 10.36 MB / 4.302 GB, free: 42.14 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.007818/9.653, allocations: 5.36 MB / 4.307 GB, free: 41.55 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 7.905e-06/9.653, allocations: 0 / 4.307 GB, free: 41.55 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.002837/9.656, allocations: 2.355 MB / 4.309 GB, free: 41.41 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004433/9.66, allocations: 0.9585 MB / 4.31 GB, free: 41.39 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01275/9.673, allocations: 7.417 MB / 4.317 GB, free: 39.97 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001332/9.674, allocations: 2.303 MB / 4.32 GB, free: 39.2 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.003935/9.678, allocations: 2.446 MB / 4.322 GB, free: 39.17 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001233/9.679, allocations: 1.285 MB / 4.323 GB, free: 39.17 MB / 0.573 GB Notification: Performance of SimCode: time 9.81e-07/9.679, allocations: 1.312 kB / 4.323 GB, free: 39.17 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4819/10.16, allocations: 126 MB / 4.446 GB, free: 70.08 MB / 0.5886 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001417/10.16, allocations: 224 kB / 4.447 GB, free: 69.86 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.66/15.82, allocations: 0 / 4.447 GB, free: 69.86 MB / 0.5886 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