Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.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.BranchingPipes4,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes4",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes4",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001014/0.001014, allocations: 197 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.299/1.299, allocations: 225.4 MB / 240.1 MB, free: 15.02 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009367/0.0009366, allocations: 85.95 kB / 292.1 MB, free: 6.059 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1974/0.1974, allocations: 45.14 MB / 389.3 MB, free: 11.84 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 2.449e-05/2.452e-05, allocations: 0 / 460.5 MB, free: 69.91 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1054/0.1054, allocations: 63.24 MB / 0.5114 GB, free: 6.688 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.53/6.636, allocations: 2.835 GB / 3.347 GB, free: 51.19 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001816/6.636, allocations: 74.91 kB / 3.347 GB, free: 51.16 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 2.784/9.42, allocations: 0.9132 GB / 4.26 GB, free: 4.383 MB / 0.573 GB Notification: Performance of FrontEnd: time 1.703e-06/9.42, allocations: 0 / 4.26 GB, free: 4.383 MB / 0.573 GB Notification: Performance of Transformations before backend: time 0.0002523/9.42, allocations: 67.92 kB / 4.26 GB, free: 4.316 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: 536 * Number of variables: 536 Notification: Performance of Generate backend data structure: time 0.01421/9.435, allocations: 4.047 MB / 4.264 GB, free: 204 kB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 4.989e-05/9.435, allocations: 12.03 kB / 4.264 GB, free: 192 kB / 0.573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.3153/9.75, allocations: 293.9 kB / 4.264 GB, free: 40.75 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006183/9.756, allocations: 0.8786 MB / 4.265 GB, free: 40.61 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004602/9.761, allocations: 2.07 MB / 4.267 GB, free: 40.27 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001649/9.761, allocations: 181.4 kB / 4.267 GB, free: 40.27 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003528/9.761, allocations: 204.6 kB / 4.268 GB, free: 40.27 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006303/9.768, allocations: 3.688 MB / 4.271 GB, free: 39.74 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.601e-05/9.768, allocations: 5.875 kB / 4.271 GB, free: 39.74 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002476/9.768, allocations: 91.64 kB / 4.271 GB, free: 39.74 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001758/9.768, allocations: 162.4 kB / 4.271 GB, free: 39.74 MB / 0.573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005544/9.774, allocations: 3.304 MB / 4.275 GB, free: 39.72 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.01538/9.789, allocations: 15.58 MB / 4.29 GB, free: 30.52 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00441/9.794, allocations: 2.192 MB / 4.292 GB, free: 30.49 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001413/9.795, allocations: 1.064 MB / 4.293 GB, free: 30.47 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04235/9.837, allocations: 27.19 MB / 4.32 GB, free: 28.84 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004449/9.842, allocations: 1.721 MB / 4.321 GB, free: 28.72 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=163): time 5.701e-06/9.842, allocations: 0 / 4.321 GB, free: 28.72 MB / 0.5886 GB Notification: Performance of matching and sorting (n=179): time 0.0184/9.86, allocations: 7.663 MB / 4.329 GB, free: 27.76 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001183/9.86, allocations: 254.8 kB / 4.329 GB, free: 27.48 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002162/9.863, allocations: 1.503 MB / 4.331 GB, free: 27.3 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 0.0002034/9.863, allocations: 58.23 kB / 4.331 GB, free: 27.27 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006918/9.864, allocations: 0.9849 MB / 4.332 GB, free: 26.98 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004352/9.864, allocations: 0.5887 MB / 4.332 GB, free: 26.61 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001497/9.864, allocations: 41.12 kB / 4.332 GB, free: 26.61 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0001525/9.864, allocations: 393.5 kB / 4.333 GB, free: 26.3 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001373/9.866, allocations: 1.03 MB / 4.334 GB, free: 26.29 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001574/9.867, allocations: 1.456 MB / 4.335 GB, free: 25.84 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001631/9.869, allocations: 1.269 MB / 4.336 GB, free: 25.75 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.107e-05/9.869, allocations: 3.656 kB / 4.336 GB, free: 25.75 MB / 0.5886 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.004766/9.874, allocations: 3.117 MB / 4.339 GB, free: 25.47 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 0.001552/9.875, allocations: 4.489 MB / 4.344 GB, free: 20.77 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.409e-05/9.875, allocations: 12.12 kB / 4.344 GB, free: 20.77 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007682/9.876, allocations: 236.9 kB / 4.344 GB, free: 20.74 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002084/9.878, allocations: 0.5078 MB / 4.344 GB, free: 20.74 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001392/9.88, allocations: 2.427 MB / 4.347 GB, free: 18.67 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002389/9.882, allocations: 275.2 kB / 4.347 GB, free: 18.65 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003311/9.882, allocations: 113.4 kB / 4.347 GB, free: 18.65 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 8.897e-06/9.882, allocations: 5.25 kB / 4.347 GB, free: 18.65 MB / 0.5886 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004154/9.887, allocations: 2.851 MB / 4.35 GB, free: 18.51 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.486e-05/9.887, allocations: 12.22 kB / 4.35 GB, free: 18.51 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006408/9.887, allocations: 237.2 kB / 4.35 GB, free: 18.48 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001776/9.889, allocations: 0.5045 MB / 4.351 GB, free: 18.48 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001338/9.89, allocations: 2.431 MB / 4.353 GB, free: 16.4 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002137/9.893, allocations: 271.3 kB / 4.353 GB, free: 16.39 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002353/9.893, allocations: 100.7 kB / 4.353 GB, free: 16.39 MB / 0.5886 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 (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,splitter.medium.phase,pipe3.state_b.phase,pipe2.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (243): * Single equations (assignments): 237 * 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.0005879/9.893, allocations: 302.9 kB / 4.354 GB, free: 16.21 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004736/9.894, allocations: 211.2 kB / 4.354 GB, free: 16.11 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008411/9.902, allocations: 7.638 MB / 4.361 GB, free: 15.33 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.64e-05/9.902, allocations: 85.88 kB / 4.361 GB, free: 15.33 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.177e-05/9.902, allocations: 2 kB / 4.361 GB, free: 15.33 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006203/9.909, allocations: 6.639 MB / 4.368 GB, free: 14.39 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01249/9.921, allocations: 10.91 MB / 4.379 GB, free: 13.62 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.428e-05/9.921, allocations: 6.141 kB / 4.379 GB, free: 13.61 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001621/9.923, allocations: 420 kB / 4.379 GB, free: 13.61 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00114/9.924, allocations: 338.1 kB / 4.379 GB, free: 13.57 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002957/9.924, allocations: 62.83 kB / 4.379 GB, free: 13.57 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002022/9.926, allocations: 2.516 MB / 4.382 GB, free: 27.5 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.367e-06/9.926, allocations: 6.328 kB / 4.382 GB, free: 27.5 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00838/9.935, allocations: 6.935 MB / 4.389 GB, free: 26.84 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001662/9.936, allocations: 0.7825 MB / 4.389 GB, free: 26.5 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006145/9.937, allocations: 48.72 kB / 4.389 GB, free: 26.5 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001976/9.939, allocations: 215.4 kB / 4.39 GB, free: 26.49 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002877/9.939, allocations: 153.7 kB / 4.39 GB, free: 26.48 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000177/9.94, allocations: 77.67 kB / 4.39 GB, free: 26.48 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.001918/9.941, allocations: 1.328 MB / 4.391 GB, free: 26.32 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.7e-07/9.941, allocations: 0 / 4.391 GB, free: 26.32 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.009404/9.951, allocations: 2.904 MB / 4.394 GB, free: 26.2 MB / 0.6042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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,splitter.medium.p,splitter.medium.h) * Number of discrete variables: 56 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse16.phase,$cse16.region,$cse17.phase,$cse17.region,$cse19.phase,$cse19.region,$cse20.phase,$cse20.region,$cse25.phase,$cse25.region,$cse26.phase,$cse26.region,$cse28.phase,$cse28.region,$cse31.phase,$cse31.region,$cse33.region3boundary,$cse34.region3boundary,$cse35.phase,$cse35.region,$cse37.region3boundary,$cse38.region3boundary,$cse39.phase,$cse39.region,$cse41.region3boundary,$cse42.region3boundary,$cse43.phase,$cse43.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,splitter.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 (202): * Single equations (assignments): 173 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 23 * 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.01783/9.969, allocations: 10.33 MB / 4.404 GB, free: 24.77 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.007912/9.977, allocations: 5.118 MB / 4.409 GB, free: 24.43 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 5.932e-06/9.977, allocations: 8.891 kB / 4.409 GB, free: 24.43 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.003139/9.98, allocations: 2.368 MB / 4.411 GB, free: 24.29 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005643/9.986, allocations: 1.042 MB / 4.412 GB, free: 24.27 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01389/9.999, allocations: 7.456 MB / 4.42 GB, free: 22.93 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001342/10, allocations: 2.281 MB / 4.422 GB, free: 22.16 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.004188/10.01, allocations: 2.686 MB / 4.424 GB, free: 22.14 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001272/10.01, allocations: 1.304 MB / 4.426 GB, free: 21.7 MB / 0.6042 GB Notification: Performance of SimCode: time 8.62e-07/10.01, allocations: 0 / 4.426 GB, free: 21.7 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4752/10.48, allocations: 125.1 MB / 4.548 GB, free: 67.54 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001571/10.48, allocations: 228.5 kB / 4.548 GB, free: 67.31 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.729/16.21, allocations: 3.531 kB / 4.548 GB, free: 67.31 MB / 0.6042 GB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes4_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes4.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4_res.mat does not exist to compare? outputFormat=mat