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.001565/0.001565, allocations: 197.4 kB / 8.766 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.34/1.34, allocations: 225.6 MB / 234.8 MB, free: 3.227 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008413/0.0008413, allocations: 96.78 kB / 286.7 MB, free: 5.316 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2254/0.2254, allocations: 45.15 MB / 383.7 MB, free: 252 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.535e-05/1.547e-05, allocations: 4 kB / 453.3 MB, free: 75.74 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1478/0.1479, allocations: 63.25 MB / 0.5045 GB, free: 12.54 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 9.067/9.215, allocations: 2.847 GB / 3.352 GB, free: 101.9 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002948/9.215, allocations: 81.16 kB / 3.352 GB, free: 101.9 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 2.976/12.19, allocations: 0.8052 GB / 4.157 GB, free: 39.25 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.843e-06/12.19, allocations: 4 kB / 4.157 GB, free: 39.25 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0003211/12.19, allocations: 59.91 kB / 4.157 GB, free: 39.19 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.01539/12.21, allocations: 3.673 MB / 4.161 GB, free: 35.49 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.639e-05/12.21, allocations: 16.03 kB / 4.161 GB, free: 35.48 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006075/12.21, allocations: 0.7791 MB / 4.161 GB, free: 34.7 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005735/12.22, allocations: 1.99 MB / 4.163 GB, free: 32.69 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001947/12.22, allocations: 84.33 kB / 4.164 GB, free: 32.61 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000917/12.22, allocations: 111.9 kB / 4.164 GB, free: 32.5 MB / 0.5573 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005211/12.23, allocations: 2.56 MB / 4.166 GB, free: 29.94 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005811/12.23, allocations: 2.545 MB / 4.169 GB, free: 27.23 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.127e-05/12.23, allocations: 7.938 kB / 4.169 GB, free: 27.22 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002929/12.23, allocations: 7.938 kB / 4.169 GB, free: 27.21 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000177/12.23, allocations: 147.1 kB / 4.169 GB, free: 27.07 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.6741/12.91, allocations: 137.1 MB / 4.303 GB, free: 23.78 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002918/12.91, allocations: 1.454 MB / 4.304 GB, free: 23.74 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001565/12.91, allocations: 0.978 MB / 4.305 GB, free: 23.73 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03577/12.95, allocations: 18.93 MB / 4.323 GB, free: 26.66 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002802/12.95, allocations: 1.167 MB / 4.325 GB, free: 26.5 MB / 0.6198 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001746/12.95, allocations: 152 kB / 4.325 GB, free: 26.5 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=145): time 8.696e-06/12.95, allocations: 0 / 4.325 GB, free: 26.5 MB / 0.6198 GB Notification: Performance of matching and sorting (n=157): time 0.03818/12.99, allocations: 8.961 MB / 4.333 GB, free: 24.99 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002624/12.99, allocations: 360.7 kB / 4.334 GB, free: 24.59 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002226/12.99, allocations: 1.024 MB / 4.335 GB, free: 24.43 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 0.0005441/12.99, allocations: 29.11 kB / 4.335 GB, free: 24.39 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.001021/12.99, allocations: 0.9186 MB / 4.336 GB, free: 24.09 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009226/12.99, allocations: 0.5057 MB / 4.336 GB, free: 23.82 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003029/12.99, allocations: 3.844 kB / 4.336 GB, free: 23.82 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 0.0002584/12.99, allocations: 372.5 kB / 4.337 GB, free: 23.52 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001661/13, allocations: 0.9153 MB / 4.338 GB, free: 23.52 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001782/13, allocations: 1.296 MB / 4.339 GB, free: 23.12 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008688/13.01, allocations: 1.852 MB / 4.341 GB, free: 23.07 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.533e-05/13.01, allocations: 2.906 kB / 4.341 GB, free: 23.07 MB / 0.6198 GB Notification: Performance of matching and sorting (n=230) (initialization): time 0.01424/13.02, allocations: 3.556 MB / 4.344 GB, free: 22.85 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 0.001788/13.02, allocations: 3.779 MB / 4.348 GB, free: 18.95 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.68e-05/13.02, allocations: 9.75 kB / 4.348 GB, free: 18.95 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002046/13.03, allocations: 499 kB / 4.348 GB, free: 18.9 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002153/13.03, allocations: 446.9 kB / 4.349 GB, free: 18.9 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002639/13.03, allocations: 2.809 MB / 4.351 GB, free: 16.81 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003241/13.03, allocations: 269.1 kB / 4.352 GB, free: 16.78 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005824/13.03, allocations: 93.55 kB / 4.352 GB, free: 16.78 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.65e-05/13.03, allocations: 10.62 kB / 4.352 GB, free: 16.78 MB / 0.6198 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01075/13.04, allocations: 3.04 MB / 4.355 GB, free: 16.68 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.938e-05/13.04, allocations: 9.781 kB / 4.355 GB, free: 16.68 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004164/13.05, allocations: 181 kB / 4.355 GB, free: 16.66 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001932/13.05, allocations: 465.7 kB / 4.355 GB, free: 16.65 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00139/13.05, allocations: 1.896 MB / 4.357 GB, free: 15.09 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002653/13.05, allocations: 236.8 kB / 4.357 GB, free: 15.07 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003884/13.05, allocations: 88.94 kB / 4.358 GB, free: 15.07 MB / 0.6198 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,pipe1.statesFM[2].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,source.medium.phase,sink.medium.phase,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.0008188/13.05, allocations: 236.2 kB / 4.358 GB, free: 14.89 MB / 0.6198 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01042/13.06, allocations: 3.006 MB / 4.361 GB, free: 14.68 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006073/13.06, allocations: 174 kB / 4.361 GB, free: 14.59 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01379/13.08, allocations: 6.785 MB / 4.367 GB, free: 14.07 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.966e-05/13.08, allocations: 77.69 kB / 4.368 GB, free: 14.07 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.562e-05/13.08, allocations: 1.781 kB / 4.368 GB, free: 14.07 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01199/13.09, allocations: 5.919 MB / 4.373 GB, free: 13.31 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01963/13.11, allocations: 10.07 MB / 4.383 GB, free: 12.32 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.155e-05/13.11, allocations: 10.12 kB / 4.383 GB, free: 12.32 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001266/13.11, allocations: 315.8 kB / 4.383 GB, free: 12.32 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001973/13.11, allocations: 1.214 MB / 4.385 GB, free: 12.27 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002137/13.11, allocations: 57.61 kB / 4.385 GB, free: 12.26 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003329/13.12, allocations: 3.388 MB / 4.388 GB, free: 26.15 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.219e-05/13.12, allocations: 14.36 kB / 4.388 GB, free: 26.15 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01362/13.13, allocations: 7.217 MB / 4.395 GB, free: 24.98 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001573/13.13, allocations: 0.6583 MB / 4.396 GB, free: 24.7 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006821/13.13, allocations: 30.11 kB / 4.396 GB, free: 24.7 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001875/13.13, allocations: 146.6 kB / 4.396 GB, free: 24.68 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002725/13.13, allocations: 142.6 kB / 4.396 GB, free: 24.67 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001901/13.13, allocations: 75.23 kB / 4.396 GB, free: 24.67 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 0.001752/13.14, allocations: 1.003 MB / 4.397 GB, free: 24.56 MB / 0.6355 GB Notification: Performance of sort global known variables: time 3e-07/13.14, allocations: 0 / 4.397 GB, free: 24.56 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.01081/13.15, allocations: 2.484 MB / 4.4 GB, free: 24.45 MB / 0.6355 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * 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: 45 ($cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse16.phase,$cse16.region,$cse17.phase,$cse17.region,$cse19.phase,$cse19.region,$cse24.phase,$cse24.region,$cse25.phase,$cse25.region,$cse27.phase,$cse27.region,$cse28.region3boundary,$cse29.region3boundary,$cse30.phase,$cse30.region,$cse32.phase,$cse32.region,$cse34.region3boundary,$cse35.region3boundary,$cse36.phase,$cse36.region,$cse38.phase,$cse38.region,$whenCondition1,$whenCondition2,pipe1.statesFM[2].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 (163): * Single equations (assignments): 141 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 16 * 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.0292/13.18, allocations: 11.67 MB / 4.411 GB, free: 20.81 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.007913/13.18, allocations: 4.324 MB / 4.415 GB, free: 18.29 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 1.263e-05/13.18, allocations: 2.75 kB / 4.415 GB, free: 18.29 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.003017/13.19, allocations: 2.144 MB / 4.417 GB, free: 17.16 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004683/13.19, allocations: 0.7202 MB / 4.418 GB, free: 16.77 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01845/13.21, allocations: 6.331 MB / 4.424 GB, free: 12.34 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002858/13.21, allocations: 2.089 MB / 4.426 GB, free: 10.77 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 0.006255/13.22, allocations: 2.527 MB / 4.429 GB, free: 9.316 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001939/13.22, allocations: 1.101 MB / 4.43 GB, free: 9.195 MB / 0.6355 GB Notification: Performance of SimCode: time 1.543e-06/13.22, allocations: 0 / 4.43 GB, free: 9.195 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6137/13.84, allocations: 95.22 MB / 4.523 GB, free: 114 MB / 0.6355 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001636/13.84, allocations: 173.5 kB / 4.523 GB, free: 113.8 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.446/19.28, allocations: 4 kB / 4.523 GB, free: 113.8 MB / 0.6355 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