Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.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.BranchingPipes2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001024/0.001024, allocations: 196 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.214/1.214, allocations: 225.4 MB / 240.1 MB, free: 15.06 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008483/0.0008484, allocations: 90.56 kB / 292.1 MB, free: 5.984 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1783/0.1783, allocations: 45.14 MB / 389.3 MB, free: 11.84 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 3.142e-05/3.144e-05, allocations: 4 kB / 460.5 MB, free: 69.92 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09124/0.09129, allocations: 63.24 MB / 0.5115 GB, free: 6.691 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.693/6.785, allocations: 2.848 GB / 3.359 GB, free: 139.8 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002464/6.785, allocations: 81.89 kB / 3.36 GB, free: 139.8 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 2.652/9.437, allocations: 0.8121 GB / 4.172 GB, free: 37.87 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.212e-06/9.438, allocations: 0 / 4.172 GB, free: 37.87 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0001727/9.438, allocations: 65.48 kB / 4.172 GB, free: 37.87 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: 467 * Number of variables: 467 Notification: Performance of Generate backend data structure: time 0.0111/9.449, allocations: 3.677 MB / 4.175 GB, free: 36.31 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.392e-05/9.449, allocations: 9.375 kB / 4.175 GB, free: 36.31 MB / 0.5573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004043/9.449, allocations: 267.1 kB / 4.175 GB, free: 36.27 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004785/9.454, allocations: 0.7891 MB / 4.176 GB, free: 36.14 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004378/9.458, allocations: 1.986 MB / 4.178 GB, free: 35.71 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000157/9.459, allocations: 159.5 kB / 4.178 GB, free: 35.7 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003361/9.459, allocations: 188.1 kB / 4.179 GB, free: 35.7 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005714/9.465, allocations: 3.346 MB / 4.182 GB, free: 35.21 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.858e-05/9.465, allocations: 3.75 kB / 4.182 GB, free: 35.21 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002134/9.465, allocations: 78.34 kB / 4.182 GB, free: 35.21 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001407/9.465, allocations: 150.5 kB / 4.182 GB, free: 35.21 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004902/9.47, allocations: 3.069 MB / 4.185 GB, free: 35.19 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.0135/9.484, allocations: 13.84 MB / 4.199 GB, free: 26.94 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003462/9.487, allocations: 1.989 MB / 4.2 GB, free: 26.91 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001148/9.488, allocations: 1.067 MB / 4.201 GB, free: 26.89 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04013/9.528, allocations: 27.24 MB / 4.228 GB, free: 25.15 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003354/9.532, allocations: 1.633 MB / 4.23 GB, free: 25.02 MB / 0.573 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001176/9.533, allocations: 187.7 kB / 4.23 GB, free: 24.95 MB / 0.573 GB Notification: Performance of pre-optimization done (n=155): time 4.348e-06/9.533, allocations: 2.953 kB / 4.23 GB, free: 24.95 MB / 0.573 GB Notification: Performance of matching and sorting (n=167): time 0.01418/9.547, allocations: 7.031 MB / 4.237 GB, free: 23.99 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001088/9.547, allocations: 257.4 kB / 4.237 GB, free: 23.71 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001508/9.549, allocations: 1.321 MB / 4.238 GB, free: 23.53 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0001446/9.549, allocations: 54.11 kB / 4.238 GB, free: 23.5 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005262/9.549, allocations: 0.8777 MB / 4.239 GB, free: 23.16 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003233/9.55, allocations: 0.5453 MB / 4.24 GB, free: 22.82 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001094/9.55, allocations: 34.88 kB / 4.24 GB, free: 22.82 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0001243/9.55, allocations: 380.2 kB / 4.24 GB, free: 22.51 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001149/9.551, allocations: 0.9335 MB / 4.241 GB, free: 22.51 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001331/9.553, allocations: 1.333 MB / 4.242 GB, free: 22.12 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001363/9.554, allocations: 1.163 MB / 4.243 GB, free: 22.03 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.129e-06/9.554, allocations: 3.688 kB / 4.243 GB, free: 22.03 MB / 0.573 GB Notification: Performance of matching and sorting (n=230) (initialization): time 0.004409/9.558, allocations: 2.982 MB / 4.246 GB, free: 21.76 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009907/9.559, allocations: 3.845 MB / 4.25 GB, free: 17.73 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.404e-05/9.559, allocations: 8.812 kB / 4.25 GB, free: 17.73 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002112/9.561, allocations: 0.5159 MB / 4.251 GB, free: 17.7 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001742/9.563, allocations: 454.3 kB / 4.251 GB, free: 17.69 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001756/9.565, allocations: 2.714 MB / 4.254 GB, free: 15.61 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002593/9.568, allocations: 260.9 kB / 4.254 GB, free: 15.59 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002093/9.568, allocations: 96.52 kB / 4.254 GB, free: 15.59 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.188e-05/9.568, allocations: 5.719 kB / 4.254 GB, free: 15.59 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003688/9.572, allocations: 2.615 MB / 4.257 GB, free: 15.46 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.157e-05/9.572, allocations: 10.53 kB / 4.257 GB, free: 15.46 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005052/9.572, allocations: 197.9 kB / 4.257 GB, free: 15.44 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001584/9.574, allocations: 457.9 kB / 4.257 GB, free: 15.44 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009297/9.575, allocations: 1.869 MB / 4.259 GB, free: 13.89 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002014/9.577, allocations: 257.6 kB / 4.259 GB, free: 13.87 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001668/9.577, allocations: 97.7 kB / 4.259 GB, free: 13.87 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 42 * Number of states: 0 () * Number of discrete variables: 29 (valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.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_a.phase,pipe3.state_b.phase,pipe2.state_a.phase,pipe2.state_b.phase,pipe1.state_a.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (211): * Single equations (assignments): 205 * 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,2 5} Notification: Performance of prepare postOptimizeDAE: time 0.0005002/9.577, allocations: 291.1 kB / 4.26 GB, free: 13.69 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002677/9.578, allocations: 199.7 kB / 4.26 GB, free: 13.59 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007474/9.585, allocations: 7.446 MB / 4.267 GB, free: 12.82 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.494e-05/9.585, allocations: 81.14 kB / 4.267 GB, free: 12.82 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.387e-06/9.585, allocations: 8.891 kB / 4.267 GB, free: 12.82 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005667/9.591, allocations: 6.515 MB / 4.274 GB, free: 11.87 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01217/9.603, allocations: 11.24 MB / 4.285 GB, free: 10.73 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.036e-05/9.603, allocations: 10.38 kB / 4.285 GB, free: 10.73 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001269/9.604, allocations: 365.1 kB / 4.285 GB, free: 10.73 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002217/9.607, allocations: 1.295 MB / 4.286 GB, free: 10.66 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001507/9.607, allocations: 64.97 kB / 4.286 GB, free: 10.66 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002255/9.609, allocations: 3.194 MB / 4.289 GB, free: 24.56 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.907e-06/9.609, allocations: 5.094 kB / 4.289 GB, free: 24.56 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007255/9.616, allocations: 7.288 MB / 4.297 GB, free: 23.3 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002094/9.618, allocations: 0.7362 MB / 4.297 GB, free: 22.98 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004306/9.619, allocations: 58.59 kB / 4.297 GB, free: 22.98 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001396/9.62, allocations: 184.3 kB / 4.297 GB, free: 22.96 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002833/9.621, allocations: 163.6 kB / 4.298 GB, free: 22.96 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000143/9.621, allocations: 77.42 kB / 4.298 GB, free: 22.96 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.001582/9.622, allocations: 1.191 MB / 4.299 GB, free: 22.8 MB / 0.5886 GB Notification: Performance of sort global known variables: time 2.9e-07/9.622, allocations: 0 / 4.299 GB, free: 22.8 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.0087/9.631, allocations: 2.611 MB / 4.301 GB, free: 22.45 MB / 0.5886 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 6 (pipe1.mediums[1].p,pipe1.mediums[1].h,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,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse20.phase,$cse20.region,$cse21.phase,$cse21.region,$cse26.phase,$cse26.region,$cse27.phase,$cse27.region,$cse29.phase,$cse29.region,$cse32.phase,$cse32.region,$cse34.region3boundary,$cse35.region3boundary,$cse36.phase,$cse36.region,$cse38.phase,$cse38.region,$cse40.region3boundary,$cse41.region3boundary,$cse42.phase,$cse42.region,$cse44.phase,$cse44.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 (179): * Single equations (assignments): 153 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 20 * 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,2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.01834/9.649, allocations: 11.31 MB / 4.312 GB, free: 19.19 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.007074/9.657, allocations: 4.673 MB / 4.317 GB, free: 17.72 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 8.175e-06/9.657, allocations: 0 / 4.317 GB, free: 17.72 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.002775/9.659, allocations: 2.447 MB / 4.319 GB, free: 16.66 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004264/9.664, allocations: 0.9114 MB / 4.32 GB, free: 16.47 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01216/9.676, allocations: 6.972 MB / 4.327 GB, free: 13.58 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001297/9.677, allocations: 2.184 MB / 4.329 GB, free: 12.7 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.003976/9.681, allocations: 2.474 MB / 4.332 GB, free: 12.61 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001203/9.682, allocations: 1.203 MB / 4.333 GB, free: 11.63 MB / 0.5886 GB Notification: Performance of SimCode: time 1.272e-06/9.682, allocations: 0 / 4.333 GB, free: 11.63 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4568/10.14, allocations: 116.8 MB / 4.447 GB, free: 79.7 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001451/10.14, allocations: 228.5 kB / 4.447 GB, free: 79.47 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.349/15.49, allocations: 0 / 4.447 GB, free: 79.47 MB / 0.6042 GB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes2_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes2.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2_res.mat does not exist to compare? outputFormat=mat