Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.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.BranchingPipes18,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes18",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes18",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009833/0.0009834, allocations: 197.2 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.219/1.219, allocations: 225.4 MB / 240.1 MB, free: 15.05 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008971/0.0008971, allocations: 94.2 kB / 292.1 MB, free: 5.961 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1948/0.1948, allocations: 45.16 MB / 389.3 MB, free: 11.87 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 2.658e-05/2.669e-05, allocations: 7.984 kB / 460.5 MB, free: 69.95 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08795/0.08799, allocations: 63.25 MB / 0.5115 GB, free: 6.711 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.372/5.46, allocations: 2.853 GB / 3.364 GB, free: 150.8 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002637/5.46, allocations: 77.03 kB / 3.364 GB, free: 150.8 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 3.562/9.022, allocations: 1.025 GB / 4.389 GB, free: 36.27 MB / 0.573 GB Notification: Performance of FrontEnd: time 1.663e-06/9.022, allocations: 0 / 4.389 GB, free: 36.27 MB / 0.573 GB Notification: Performance of Transformations before backend: time 0.0003284/9.023, allocations: 73.53 kB / 4.389 GB, free: 36.25 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: 575 * Number of variables: 575 Notification: Performance of Generate backend data structure: time 0.01673/9.039, allocations: 4.256 MB / 4.394 GB, free: 33.98 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 4.783e-05/9.04, allocations: 11.09 kB / 4.394 GB, free: 33.98 MB / 0.573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001436/9.041, allocations: 322.2 kB / 4.394 GB, free: 33.8 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007321/9.048, allocations: 0.9408 MB / 4.395 GB, free: 33.56 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007513/9.056, allocations: 2.197 MB / 4.397 GB, free: 32.55 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004194/9.056, allocations: 203.3 kB / 4.397 GB, free: 32.47 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001507/9.058, allocations: 225.2 kB / 4.397 GB, free: 32.4 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01033/9.068, allocations: 3.884 MB / 4.401 GB, free: 30.71 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001053/9.068, allocations: 14.72 kB / 4.401 GB, free: 30.7 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006793/9.069, allocations: 103.5 kB / 4.401 GB, free: 30.64 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002488/9.069, allocations: 168.4 kB / 4.401 GB, free: 30.61 MB / 0.573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007802/9.077, allocations: 3.453 MB / 4.405 GB, free: 29.51 MB / 0.573 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.02379/9.101, allocations: 16.96 MB / 4.421 GB, free: 14.79 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005479/9.106, allocations: 3.068 MB / 4.424 GB, free: 12.02 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001651/9.108, allocations: 1.273 MB / 4.426 GB, free: 10.87 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4851/9.593, allocations: 27.18 MB / 4.452 GB, free: 54.8 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004935/9.598, allocations: 1.888 MB / 4.454 GB, free: 54.67 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=192): time 5.01e-06/9.598, allocations: 0 / 4.454 GB, free: 54.67 MB / 0.5886 GB Notification: Performance of matching and sorting (n=212): time 0.0244/9.623, allocations: 8.923 MB / 4.463 GB, free: 53.83 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000105/9.623, allocations: 257.2 kB / 4.463 GB, free: 53.55 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002543/9.625, allocations: 1.505 MB / 4.464 GB, free: 53.32 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 0.0002801/9.626, allocations: 66.42 kB / 4.465 GB, free: 53.29 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.001065/9.627, allocations: 1.04 MB / 4.466 GB, free: 52.98 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006762/9.627, allocations: 0.7077 MB / 4.466 GB, free: 52.62 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001551/9.628, allocations: 48.03 kB / 4.466 GB, free: 52.62 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0001552/9.628, allocations: 400.8 kB / 4.467 GB, free: 52.32 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00217/9.63, allocations: 1.141 MB / 4.468 GB, free: 52.31 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002503/9.632, allocations: 1.657 MB / 4.469 GB, free: 51.8 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002369/9.635, allocations: 1.394 MB / 4.471 GB, free: 51.71 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.211e-05/9.635, allocations: 5.188 kB / 4.471 GB, free: 51.71 MB / 0.5886 GB Notification: Performance of matching and sorting (n=303) (initialization): time 0.007258/9.642, allocations: 3.524 MB / 4.474 GB, free: 51.41 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 0.001208/9.643, allocations: 5.149 MB / 4.479 GB, free: 46.05 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.116e-05/9.643, allocations: 12.5 kB / 4.479 GB, free: 46.05 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001355/9.645, allocations: 333.1 kB / 4.48 GB, free: 46.01 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002633/9.647, allocations: 0.5961 MB / 4.48 GB, free: 46.01 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001716/9.649, allocations: 3.095 MB / 4.483 GB, free: 43.42 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003552/9.653, allocations: 336.1 kB / 4.483 GB, free: 43.41 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005101/9.653, allocations: 122.2 kB / 4.484 GB, free: 43.41 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.598e-05/9.653, allocations: 8.219 kB / 4.484 GB, free: 43.41 MB / 0.5886 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006543/9.66, allocations: 3.242 MB / 4.487 GB, free: 43.26 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.065e-05/9.66, allocations: 13.81 kB / 4.487 GB, free: 43.26 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001102/9.661, allocations: 334.3 kB / 4.487 GB, free: 43.22 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002397/9.663, allocations: 0.5872 MB / 4.488 GB, free: 43.22 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001589/9.665, allocations: 3.095 MB / 4.491 GB, free: 40.62 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003235/9.668, allocations: 341.9 kB / 4.491 GB, free: 40.62 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004064/9.669, allocations: 112.8 kB / 4.491 GB, free: 40.62 MB / 0.5886 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * Number of states: 0 () * Number of discrete variables: 31 (valve2.state_b.phase,valve2.state_a.phase,valve1.state_b.phase,valve1.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,junctionIdeal.medium.phase,junctionVolume.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 (283): * Single equations (assignments): 276 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {1 1,1 1,1 1,1 6,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0009896/9.67, allocations: 331 kB / 4.491 GB, free: 40.45 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008079/9.67, allocations: 239.7 kB / 4.492 GB, free: 40.32 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01154/9.682, allocations: 8.2 MB / 4.5 GB, free: 39.6 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.691e-05/9.682, allocations: 93.31 kB / 4.5 GB, free: 39.6 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.871e-05/9.682, allocations: 2.906 kB / 4.5 GB, free: 39.6 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00837/9.691, allocations: 7.122 MB / 4.507 GB, free: 38.64 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02198/9.713, allocations: 13.21 MB / 4.52 GB, free: 37 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.271e-05/9.713, allocations: 14.41 kB / 4.52 GB, free: 37 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001967/9.715, allocations: 494.6 kB / 4.52 GB, free: 37 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001462/9.716, allocations: 459.1 kB / 4.521 GB, free: 36.95 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003079/9.716, allocations: 80.83 kB / 4.521 GB, free: 36.95 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001746/9.718, allocations: 3.231 MB / 4.524 GB, free: 34.36 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.334e-06/9.718, allocations: 8.125 kB / 4.524 GB, free: 34.36 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01063/9.729, allocations: 8.24 MB / 4.532 GB, free: 32.92 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002262/9.731, allocations: 0.8313 MB / 4.533 GB, free: 32.57 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000838/9.732, allocations: 63.5 kB / 4.533 GB, free: 32.57 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002594/9.735, allocations: 243.1 kB / 4.533 GB, free: 32.56 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003931/9.735, allocations: 201.5 kB / 4.533 GB, free: 32.55 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002489/9.735, allocations: 97.06 kB / 4.533 GB, free: 32.55 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.002552/9.738, allocations: 1.321 MB / 4.535 GB, free: 32.39 MB / 0.5886 GB Notification: Performance of sort global known variables: time 3.5e-07/9.738, allocations: 2.297 kB / 4.535 GB, free: 32.39 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.01274/9.751, allocations: 2.971 MB / 4.537 GB, free: 32.28 MB / 0.5886 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 9 (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,junctionVolume.medium.h) * Number of discrete variables: 59 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse12.phase,$cse12.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse23.phase,$cse23.region,$cse24.phase,$cse24.region,$cse30.phase,$cse30.region,$cse31.phase,$cse31.region,$cse35.phase,$cse35.region,$cse38.phase,$cse38.region,$cse40.region3boundary,$cse41.region3boundary,$cse42.phase,$cse42.region,$cse44.region3boundary,$cse45.region3boundary,$cse46.phase,$cse46.region,$cse48.phase,$cse48.region,$cse49.region3boundary,$cse50.region3boundary,$cse51.phase,$cse51.region,$cse52.phase,$cse52.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,junctionIdeal.medium.phase,junctionVolume.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 (239): * Single equations (assignments): 208 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 24 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {1 1,1 1,2 4,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.02909/9.78, allocations: 13.08 MB / 4.55 GB, free: 28.81 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.01052/9.79, allocations: 5.632 MB / 4.556 GB, free: 28.46 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.013e-05/9.79, allocations: 0 / 4.556 GB, free: 28.46 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.004252/9.795, allocations: 2.958 MB / 4.559 GB, free: 28.32 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006259/9.801, allocations: 1.225 MB / 4.56 GB, free: 28.29 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01985/9.821, allocations: 8.108 MB / 4.568 GB, free: 26.73 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002311/9.823, allocations: 2.389 MB / 4.57 GB, free: 25.95 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.006343/9.83, allocations: 2.77 MB / 4.573 GB, free: 25.92 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002042/9.832, allocations: 1.421 MB / 4.574 GB, free: 25.91 MB / 0.5886 GB Notification: Performance of SimCode: time 1.553e-06/9.832, allocations: 0 / 4.574 GB, free: 25.91 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6129/10.44, allocations: 136.5 MB / 4.707 GB, free: 65.3 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001683/10.44, allocations: 232 kB / 4.708 GB, free: 65.08 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.257/16.7, allocations: 0 / 4.708 GB, free: 65.08 MB / 0.6042 GB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes18_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes18.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18_res.mat does not exist to compare? outputFormat=mat