Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.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.BranchingPipes14,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes14",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes14",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001421/0.001422, allocations: 198.3 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.531/1.531, allocations: 225.6 MB / 234.8 MB, free: 3.211 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009956/0.0009956, allocations: 107.9 kB / 286.7 MB, free: 5.305 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2587/0.2587, allocations: 45.14 MB / 383.8 MB, free: 248 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.738e-05/1.741e-05, allocations: 0 / 453.3 MB, free: 75.73 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1551/0.1551, allocations: 63.25 MB / 0.5045 GB, free: 12.53 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.986/9.141, allocations: 2.852 GB / 3.356 GB, free: 104.1 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002296/9.141, allocations: 77.3 kB / 3.356 GB, free: 104.1 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 3.46/12.6, allocations: 0.9099 GB / 4.266 GB, free: 34.79 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.383e-06/12.6, allocations: 0 / 4.266 GB, free: 34.79 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0002902/12.6, allocations: 64.44 kB / 4.266 GB, free: 34.79 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: 536 * Number of variables: 536 Notification: Performance of Generate backend data structure: time 0.01504/12.62, allocations: 3.979 MB / 4.27 GB, free: 33.06 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.212e-05/12.62, allocations: 10.59 kB / 4.27 GB, free: 33.06 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007014/12.62, allocations: 0.8813 MB / 4.271 GB, free: 32.92 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006913/12.63, allocations: 2.094 MB / 4.273 GB, free: 32.47 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003317/12.63, allocations: 96.94 kB / 4.273 GB, free: 32.47 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001137/12.63, allocations: 123.8 kB / 4.273 GB, free: 32.47 MB / 0.5573 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007777/12.64, allocations: 2.627 MB / 4.276 GB, free: 32.46 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008625/12.65, allocations: 2.867 MB / 4.278 GB, free: 31.91 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001305/12.65, allocations: 10.81 kB / 4.278 GB, free: 31.91 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008385/12.65, allocations: 3.625 kB / 4.278 GB, free: 31.91 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000296/12.65, allocations: 165 kB / 4.279 GB, free: 31.9 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.6944/13.34, allocations: 138.8 MB / 4.414 GB, free: 91.43 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002771/13.35, allocations: 2.115 MB / 4.416 GB, free: 90.83 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001286/13.35, allocations: 1.072 MB / 4.417 GB, free: 90.82 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0323/13.38, allocations: 18.79 MB / 4.436 GB, free: 78.45 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00273/13.38, allocations: 1.251 MB / 4.437 GB, free: 78.29 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=163): time 4.288e-06/13.38, allocations: 0 / 4.437 GB, free: 78.29 MB / 0.6198 GB Notification: Performance of matching and sorting (n=179): time 0.03708/13.42, allocations: 9.669 MB / 4.446 GB, free: 76.77 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001446/13.42, allocations: 357.2 kB / 4.447 GB, free: 76.36 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001674/13.42, allocations: 1.09 MB / 4.448 GB, free: 76.2 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 0.0004452/13.42, allocations: 29.02 kB / 4.448 GB, free: 76.17 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008504/13.42, allocations: 1.016 MB / 4.449 GB, free: 75.83 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006033/13.42, allocations: 0.5754 MB / 4.449 GB, free: 75.53 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001247/13.42, allocations: 6.188 kB / 4.449 GB, free: 75.53 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 0.0001386/13.42, allocations: 385.7 kB / 4.45 GB, free: 75.22 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001327/13.43, allocations: 1.01 MB / 4.451 GB, free: 75.21 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001538/13.43, allocations: 1.461 MB / 4.452 GB, free: 74.77 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008173/13.44, allocations: 1.973 MB / 4.454 GB, free: 74.75 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.65e-05/13.44, allocations: 3.312 kB / 4.454 GB, free: 74.75 MB / 0.6198 GB Notification: Performance of matching and sorting (n=264) (initialization): time 0.01166/13.45, allocations: 3.709 MB / 4.458 GB, free: 74.55 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008707/13.45, allocations: 4.417 MB / 4.462 GB, free: 70.04 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.141e-05/13.45, allocations: 9.031 kB / 4.462 GB, free: 70.04 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000596/13.45, allocations: 220.7 kB / 4.462 GB, free: 70.01 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002138/13.45, allocations: 0.5183 MB / 4.463 GB, free: 70.01 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001169/13.45, allocations: 2.466 MB / 4.465 GB, free: 67.93 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002973/13.46, allocations: 307.6 kB / 4.465 GB, free: 67.92 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002978/13.46, allocations: 109.6 kB / 4.465 GB, free: 67.92 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.378e-05/13.46, allocations: 3.406 kB / 4.465 GB, free: 67.92 MB / 0.6198 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009972/13.47, allocations: 3.27 MB / 4.469 GB, free: 67.84 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.635e-05/13.47, allocations: 12.94 kB / 4.469 GB, free: 67.84 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004868/13.47, allocations: 217 kB / 4.469 GB, free: 67.81 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001996/13.47, allocations: 0.5173 MB / 4.469 GB, free: 67.81 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001163/13.47, allocations: 2.461 MB / 4.472 GB, free: 65.73 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002673/13.47, allocations: 281.5 kB / 4.472 GB, free: 65.72 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002705/13.47, allocations: 98.34 kB / 4.472 GB, free: 65.72 MB / 0.6198 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * Number of states: 0 () * Number of discrete variables: 30 (valve2.state_b.phase,valve2.state_a.phase,valve1.state_b.phase,valve1.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,junctionIdeal.medium.phase,source.medium.phase,sink.medium.phase,pipe3.state_a.phase,pipe3.state_b.phase,pipe2.state_a.phase,pipe2.state_b.phase,pipe1.state_b.phase,pipe1.state_a.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (250): * Single equations (assignments): 244 * 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,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0007709/13.47, allocations: 234.2 kB / 4.472 GB, free: 65.55 MB / 0.6198 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01054/13.48, allocations: 3.168 MB / 4.475 GB, free: 65.34 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004494/13.48, allocations: 194.7 kB / 4.476 GB, free: 65.25 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01514/13.5, allocations: 7.074 MB / 4.483 GB, free: 64.78 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.082e-05/13.5, allocations: 76.81 kB / 4.483 GB, free: 64.77 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.33e-05/13.5, allocations: 2.406 kB / 4.483 GB, free: 64.77 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01397/13.51, allocations: 6.161 MB / 4.489 GB, free: 64.04 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02104/13.53, allocations: 11.23 MB / 4.5 GB, free: 62.69 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.051e-05/13.53, allocations: 9.5 kB / 4.5 GB, free: 62.69 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001595/13.54, allocations: 391.9 kB / 4.5 GB, free: 62.69 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008747/13.54, allocations: 327.2 kB / 4.5 GB, free: 62.65 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002145/13.54, allocations: 45.66 kB / 4.5 GB, free: 62.65 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001516/13.54, allocations: 2.643 MB / 4.503 GB, free: 60.56 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.166e-05/13.54, allocations: 8.812 kB / 4.503 GB, free: 60.56 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01518/13.55, allocations: 7.654 MB / 4.51 GB, free: 59.31 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001445/13.56, allocations: 0.7067 MB / 4.511 GB, free: 59.02 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004157/13.56, allocations: 27.25 kB / 4.511 GB, free: 59.01 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001658/13.56, allocations: 183.5 kB / 4.511 GB, free: 59 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000276/13.56, allocations: 167.7 kB / 4.512 GB, free: 58.99 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001582/13.56, allocations: 78.61 kB / 4.512 GB, free: 58.99 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.001285/13.56, allocations: 1.045 MB / 4.513 GB, free: 58.88 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.5e-07/13.56, allocations: 2.469 kB / 4.513 GB, free: 58.88 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.01027/13.57, allocations: 2.658 MB / 4.515 GB, free: 58.77 MB / 0.6198 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 8 (pipe1.mediums[1].p,pipe1.mediums[1].h,pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h,junctionIdeal.medium.p,junctionIdeal.medium.h) * Number of discrete variables: 46 ($cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.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.region3boundary,$cse33.region3boundary,$cse34.phase,$cse34.region,$cse36.phase,$cse36.region,$cse37.region3boundary,$cse38.region3boundary,$cse39.phase,$cse39.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,junctionIdeal.medium.phase) * 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 (198): * Single equations (assignments): 173 * 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,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.02719/13.6, allocations: 12.82 MB / 4.528 GB, free: 55.14 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.007878/13.61, allocations: 4.76 MB / 4.532 GB, free: 54.83 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.027e-05/13.61, allocations: 2.719 kB / 4.532 GB, free: 54.83 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.003388/13.61, allocations: 2.391 MB / 4.535 GB, free: 54.7 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004847/13.61, allocations: 0.8524 MB / 4.536 GB, free: 54.68 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01843/13.63, allocations: 6.927 MB / 4.542 GB, free: 53.23 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002334/13.63, allocations: 2.208 MB / 4.544 GB, free: 52.46 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.00554/13.64, allocations: 2.644 MB / 4.547 GB, free: 52.43 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001862/13.64, allocations: 1.237 MB / 4.548 GB, free: 52.43 MB / 0.6198 GB Notification: Performance of SimCode: time 1.022e-06/13.64, allocations: 0 / 4.548 GB, free: 52.43 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5503/14.19, allocations: 101.5 MB / 4.647 GB, free: 96.69 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001382/14.19, allocations: 172.2 kB / 4.648 GB, free: 96.5 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.687/19.88, allocations: 1.719 kB / 4.648 GB, free: 96.5 MB / 0.6198 GB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes14_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes14.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14_res.mat does not exist to compare? outputFormat=mat