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.001771/0.001771, allocations: 198.9 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.733/1.733, allocations: 227.2 MB / 245 MB, free: 7.637 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001549/0.001549, allocations: 99.7 kB / 297.3 MB, free: 6.184 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.4752/0.4752, allocations: 45.23 MB / 394.6 MB, free: 31.68 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003164/0.0003167, allocations: 8 kB / 468.5 MB, free: 7.652 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5429/0.5433, allocations: 63.25 MB / 0.5193 GB, free: 43.82 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.203/7.747, allocations: 2.848 GB / 3.367 GB, free: 138.5 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002885/7.747, allocations: 90.11 kB / 3.367 GB, free: 138.5 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 3.734/11.48, allocations: 0.8142 GB / 4.182 GB, free: 32.77 MB / 0.5573 GB Notification: Performance of FrontEnd: time 3.016e-06/11.48, allocations: 0 / 4.182 GB, free: 32.77 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0004038/11.48, allocations: 61.75 kB / 4.182 GB, free: 32.75 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.02064/11.5, allocations: 3.948 MB / 4.185 GB, free: 30.83 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 5.649e-05/11.5, allocations: 9.656 kB / 4.185 GB, free: 30.83 MB / 0.5573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001651/11.5, allocations: 275.6 kB / 4.186 GB, free: 30.78 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006739/11.51, allocations: 0.7794 MB / 4.186 GB, free: 30.66 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007926/11.52, allocations: 2.008 MB / 4.188 GB, free: 30.21 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003748/11.52, allocations: 163.8 kB / 4.189 GB, free: 30.21 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00114/11.52, allocations: 184.6 kB / 4.189 GB, free: 30.2 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01016/11.53, allocations: 3.355 MB / 4.192 GB, free: 29.72 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.441e-05/11.53, allocations: 6.688 kB / 4.192 GB, free: 29.72 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003085/11.53, allocations: 89.16 kB / 4.192 GB, free: 29.72 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001882/11.53, allocations: 146 kB / 4.192 GB, free: 29.71 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006718/11.54, allocations: 3.186 MB / 4.195 GB, free: 29.7 MB / 0.5573 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.01876/11.56, allocations: 13.83 MB / 4.209 GB, free: 21.45 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005244/11.56, allocations: 2.071 MB / 4.211 GB, free: 21.41 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04927/11.61, allocations: 27.17 MB / 4.237 GB, free: 19.66 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004475/11.62, allocations: 1.634 MB / 4.239 GB, free: 19.53 MB / 0.573 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001778/11.62, allocations: 180.3 kB / 4.239 GB, free: 19.45 MB / 0.573 GB Notification: Performance of pre-optimization done (n=155): time 4.859e-06/11.62, allocations: 0 / 4.239 GB, free: 19.45 MB / 0.573 GB Notification: Performance of matching and sorting (n=167): time 0.02362/11.64, allocations: 8.539 MB / 4.248 GB, free: 18.21 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001789/11.64, allocations: 254 kB / 4.248 GB, free: 17.93 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002348/11.64, allocations: 1.326 MB / 4.249 GB, free: 17.76 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0003124/11.64, allocations: 61.61 kB / 4.249 GB, free: 17.73 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007856/11.64, allocations: 0.8787 MB / 4.25 GB, free: 17.39 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.000519/11.65, allocations: 0.5524 MB / 4.251 GB, free: 17.04 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001191/11.65, allocations: 32.22 kB / 4.251 GB, free: 17.04 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0002131/11.65, allocations: 382.9 kB / 4.251 GB, free: 16.73 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001881/11.65, allocations: 1.036 MB / 4.252 GB, free: 16.73 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001961/11.65, allocations: 1.438 MB / 4.253 GB, free: 16.34 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001964/11.65, allocations: 1.254 MB / 4.255 GB, free: 16.26 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.167e-06/11.65, allocations: 5.938 kB / 4.255 GB, free: 16.26 MB / 0.573 GB Notification: Performance of matching and sorting (n=230) (initialization): time 0.006918/11.66, allocations: 3.192 MB / 4.258 GB, free: 15.99 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.001816/11.66, allocations: 3.852 MB / 4.261 GB, free: 11.95 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.242e-05/11.66, allocations: 7.562 kB / 4.261 GB, free: 11.95 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002698/11.66, allocations: 0.53 MB / 4.262 GB, free: 11.92 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002319/11.67, allocations: 452.3 kB / 4.262 GB, free: 11.92 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003/11.67, allocations: 2.713 MB / 4.265 GB, free: 25.84 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003312/11.67, allocations: 259.7 kB / 4.265 GB, free: 25.82 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002625/11.67, allocations: 96.61 kB / 4.265 GB, free: 25.82 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.479e-05/11.67, allocations: 3.75 kB / 4.265 GB, free: 25.82 MB / 0.5886 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005108/11.68, allocations: 2.822 MB / 4.268 GB, free: 25.69 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.946e-05/11.68, allocations: 14.38 kB / 4.268 GB, free: 25.69 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006486/11.68, allocations: 204.3 kB / 4.268 GB, free: 25.67 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001787/11.68, allocations: 460.1 kB / 4.269 GB, free: 25.67 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001332/11.68, allocations: 1.879 MB / 4.271 GB, free: 24.11 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002719/11.68, allocations: 258.3 kB / 4.271 GB, free: 24.1 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001918/11.68, allocations: 91.16 kB / 4.271 GB, free: 24.1 MB / 0.5886 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 () * Number of clocked 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.001863/11.69, allocations: 0.7072 MB / 4.272 GB, free: 23.84 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004416/11.69, allocations: 199.1 kB / 4.272 GB, free: 23.73 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009776/11.7, allocations: 7.577 MB / 4.279 GB, free: 22.95 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.186e-05/11.7, allocations: 81.38 kB / 4.279 GB, free: 22.95 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.022e-05/11.7, allocations: 0 / 4.279 GB, free: 22.95 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007881/11.7, allocations: 6.614 MB / 4.286 GB, free: 22.02 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01994/11.72, allocations: 11.39 MB / 4.297 GB, free: 20.82 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.705e-05/11.72, allocations: 3.719 kB / 4.297 GB, free: 20.82 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00141/11.73, allocations: 363.6 kB / 4.297 GB, free: 20.81 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002622/11.73, allocations: 1.208 MB / 4.298 GB, free: 20.73 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002546/11.73, allocations: 69.77 kB / 4.299 GB, free: 20.73 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002806/11.73, allocations: 3.202 MB / 4.302 GB, free: 18.62 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.546e-06/11.73, allocations: 7.547 kB / 4.302 GB, free: 18.62 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01139/11.74, allocations: 7.614 MB / 4.309 GB, free: 16.04 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002192/11.74, allocations: 0.7336 MB / 4.31 GB, free: 15.59 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004985/11.75, allocations: 53.73 kB / 4.31 GB, free: 15.56 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001546/11.75, allocations: 187.8 kB / 4.31 GB, free: 15.51 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003086/11.75, allocations: 159.7 kB / 4.31 GB, free: 15.48 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001541/11.75, allocations: 72.73 kB / 4.31 GB, free: 15.47 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.001859/11.75, allocations: 1.221 MB / 4.311 GB, free: 15 MB / 0.5886 GB Notification: Performance of sort global known variables: time 1.6e-07/11.75, allocations: 0 / 4.311 GB, free: 15 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.01251/11.76, allocations: 2.609 MB / 4.314 GB, free: 14.47 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) * Number of clocked states: 0 () * 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.02391/11.79, allocations: 11.63 MB / 4.325 GB, free: 8.652 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.00892/11.79, allocations: 4.884 MB / 4.33 GB, free: 6.859 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.2e-05/11.79, allocations: 3.469 kB / 4.33 GB, free: 6.859 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.003794/11.8, allocations: 2.512 MB / 4.333 GB, free: 5.785 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004962/11.8, allocations: 0.9169 MB / 4.334 GB, free: 5.574 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02499/11.83, allocations: 16.77 MB / 4.35 GB, free: 7.418 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001917/11.83, allocations: 2.174 MB / 4.352 GB, free: 5.711 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.00464/11.83, allocations: 2.308 MB / 4.354 GB, free: 4.375 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001808/11.84, allocations: 1.22 MB / 4.355 GB, free: 3.25 MB / 0.6042 GB Notification: Performance of SimCode: time 1.373e-06/11.84, allocations: 0 / 4.355 GB, free: 3.25 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6024/12.44, allocations: 109.2 MB / 4.462 GB, free: 70.61 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002152/12.44, allocations: 264 kB / 4.462 GB, free: 70.27 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.346/18.79, allocations: 0 / 4.462 GB, free: 70.27 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