Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.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.BranchingPipes12,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes12",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes12",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001291/0.001291, 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.573/1.573, allocations: 227.2 MB / 245 MB, free: 7.668 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00107/0.00107, allocations: 94.72 kB / 297.2 MB, free: 6.203 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.4941/0.4941, allocations: 45.23 MB / 394.7 MB, free: 31.68 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002985/0.0002985, allocations: 8 kB / 468.5 MB, free: 7.641 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4826/0.4829, allocations: 63.25 MB / 0.5193 GB, free: 43.53 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.092/7.575, allocations: 2.831 GB / 3.35 GB, free: 154 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003038/7.575, allocations: 95.11 kB / 3.35 GB, free: 154 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 3.383/10.96, allocations: 0.8164 GB / 4.167 GB, free: 43.9 MB / 0.573 GB Notification: Performance of FrontEnd: time 2.534e-06/10.96, allocations: 3.375 kB / 4.167 GB, free: 43.9 MB / 0.573 GB Notification: Performance of Transformations before backend: time 0.0004031/10.96, allocations: 71.75 kB / 4.167 GB, free: 43.9 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.02155/10.98, allocations: 4.261 MB / 4.171 GB, free: 42.09 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 5.852e-05/10.98, allocations: 7.625 kB / 4.171 GB, free: 42.09 MB / 0.573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00175/10.98, allocations: 299.1 kB / 4.171 GB, free: 42.05 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006969/10.99, allocations: 0.8373 MB / 4.172 GB, free: 41.91 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007422/11, allocations: 2.191 MB / 4.174 GB, free: 41.46 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002798/11, allocations: 178.2 kB / 4.175 GB, free: 41.45 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001073/11, allocations: 202.2 kB / 4.175 GB, free: 41.45 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01165/11.01, allocations: 3.739 MB / 4.178 GB, free: 40.89 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001502/11.01, allocations: 7.062 kB / 4.178 GB, free: 40.89 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008934/11.01, allocations: 87.22 kB / 4.179 GB, free: 40.89 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003895/11.01, allocations: 169.6 kB / 4.179 GB, free: 40.89 MB / 0.573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00847/11.02, allocations: 3.559 MB / 4.182 GB, free: 40.88 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.02123/11.04, allocations: 14.93 MB / 4.197 GB, free: 32.29 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004954/11.05, allocations: 2.238 MB / 4.199 GB, free: 32.26 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05182/11.1, allocations: 27.1 MB / 4.225 GB, free: 30.61 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006304/11.1, allocations: 1.706 MB / 4.227 GB, free: 30.48 MB / 0.5886 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002112/11.11, allocations: 201.2 kB / 4.227 GB, free: 30.39 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=162): time 1.86e-05/11.11, allocations: 4.062 kB / 4.227 GB, free: 30.39 MB / 0.5886 GB Notification: Performance of matching and sorting (n=174): time 0.03115/11.14, allocations: 9.367 MB / 4.236 GB, free: 29.11 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002941/11.14, allocations: 418.1 kB / 4.237 GB, free: 28.64 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003766/11.14, allocations: 1.562 MB / 4.238 GB, free: 28.42 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 0.000431/11.14, allocations: 57.61 kB / 4.238 GB, free: 28.39 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.001266/11.14, allocations: 0.9834 MB / 4.239 GB, free: 28.02 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008962/11.14, allocations: 0.5894 MB / 4.24 GB, free: 27.64 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003247/11.14, allocations: 43.5 kB / 4.24 GB, free: 27.64 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0002846/11.14, allocations: 381.8 kB / 4.24 GB, free: 27.34 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002382/11.15, allocations: 1.183 MB / 4.241 GB, free: 27.33 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002647/11.15, allocations: 1.62 MB / 4.243 GB, free: 26.87 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0027/11.15, allocations: 1.42 MB / 4.244 GB, free: 26.79 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.399e-05/11.15, allocations: 3.938 kB / 4.244 GB, free: 26.79 MB / 0.5886 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.007573/11.16, allocations: 3.59 MB / 4.248 GB, free: 26.5 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 0.00186/11.16, allocations: 4.055 MB / 4.252 GB, free: 22.27 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.96e-05/11.16, allocations: 16 kB / 4.252 GB, free: 22.27 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005217/11.17, allocations: 0.986 MB / 4.253 GB, free: 22.23 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002553/11.17, allocations: 465.7 kB / 4.253 GB, free: 22.23 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00319/11.17, allocations: 3.168 MB / 4.256 GB, free: 20.15 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003549/11.18, allocations: 236 kB / 4.257 GB, free: 20.13 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006696/11.18, allocations: 104.1 kB / 4.257 GB, free: 20.13 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.783e-05/11.18, allocations: 3.75 kB / 4.257 GB, free: 20.13 MB / 0.5886 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009007/11.19, allocations: 3.26 MB / 4.26 GB, free: 19.99 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.649e-05/11.19, allocations: 17.03 kB / 4.26 GB, free: 19.99 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002725/11.19, allocations: 373.7 kB / 4.26 GB, free: 19.96 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004395/11.19, allocations: 487.6 kB / 4.261 GB, free: 19.96 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007393/11.2, allocations: 4.119 MB / 4.265 GB, free: 17.12 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005645/11.21, allocations: 238.5 kB / 4.265 GB, free: 17.11 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008439/11.21, allocations: 107 kB / 4.265 GB, free: 17.11 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,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,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.00337/11.21, allocations: 0.7504 MB / 4.266 GB, free: 16.85 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001166/11.21, allocations: 223.1 kB / 4.266 GB, free: 16.74 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01455/11.23, allocations: 7.967 MB / 4.274 GB, free: 15.98 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.338e-05/11.23, allocations: 82.86 kB / 4.274 GB, free: 15.98 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.263e-06/11.23, allocations: 0 / 4.274 GB, free: 15.98 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008896/11.24, allocations: 6.979 MB / 4.281 GB, free: 15.06 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01728/11.25, allocations: 11.09 MB / 4.292 GB, free: 14.27 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.217e-05/11.25, allocations: 1.688 kB / 4.292 GB, free: 14.27 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001499/11.25, allocations: 351.9 kB / 4.292 GB, free: 14.27 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005346/11.26, allocations: 2.174 MB / 4.294 GB, free: 14.16 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004078/11.26, allocations: 70.36 kB / 4.294 GB, free: 14.16 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003747/11.26, allocations: 4.092 MB / 4.298 GB, free: 12.06 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/11.26, allocations: 2.312 kB / 4.298 GB, free: 12.06 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01241/11.28, allocations: 8.124 MB / 4.306 GB, free: 11.35 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002869/11.28, allocations: 0.7764 MB / 4.307 GB, free: 11.02 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001003/11.28, allocations: 52.58 kB / 4.307 GB, free: 11.02 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002538/11.28, allocations: 204.8 kB / 4.307 GB, free: 11.01 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004322/11.28, allocations: 144.7 kB / 4.307 GB, free: 11 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000262/11.28, allocations: 77.27 kB / 4.307 GB, free: 11 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.002922/11.29, allocations: 1.393 MB / 4.309 GB, free: 10.86 MB / 0.5886 GB Notification: Performance of sort global known variables: time 2.5e-07/11.29, allocations: 0 / 4.309 GB, free: 10.86 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.01459/11.3, allocations: 2.88 MB / 4.311 GB, free: 10.45 MB / 0.5886 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,valveIncompressible.filter.x[1],valveIncompressible.filter.x[2],valveIncompressible1.filter.x[1],valveIncompressible1.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.02714/11.33, allocations: 10.68 MB / 4.322 GB, free: 7.492 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.01168/11.34, allocations: 5.597 MB / 4.327 GB, free: 5.305 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 7.865e-06/11.34, allocations: 0 / 4.327 GB, free: 5.305 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.004188/11.34, allocations: 2.435 MB / 4.33 GB, free: 4.238 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005867/11.35, allocations: 0.9688 MB / 4.331 GB, free: 4.051 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03065/11.38, allocations: 17.75 MB / 4.348 GB, free: 7.039 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003736/11.39, allocations: 2.305 MB / 4.35 GB, free: 6.133 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.006032/11.39, allocations: 2.242 MB / 4.352 GB, free: 6.062 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003136/11.39, allocations: 1.307 MB / 4.354 GB, free: 5.008 MB / 0.6042 GB Notification: Performance of SimCode: time 1.483e-06/11.39, allocations: 0 / 4.354 GB, free: 5.008 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.68/12.07, allocations: 118.6 MB / 4.47 GB, free: 84.27 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001814/12.07, allocations: 253.6 kB / 4.47 GB, free: 83.93 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.807/18.88, allocations: 3.938 kB / 4.47 GB, free: 83.93 MB / 0.6198 GB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes12_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes12.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12_res.mat does not exist to compare? outputFormat=mat