Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.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.BranchingPipes13,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes13",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes13",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009892/0.0009892, allocations: 198.1 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.493/1.493, allocations: 225.6 MB / 234.8 MB, free: 3.258 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008965/0.0008966, allocations: 95.62 kB / 286.7 MB, free: 5.301 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2391/0.2391, allocations: 45.15 MB / 383.8 MB, free: 260 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 2.268e-05/2.261e-05, allocations: 0 / 453.3 MB, free: 75.72 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1663/0.1663, allocations: 63.25 MB / 0.5045 GB, free: 12.53 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.41/8.576, allocations: 2.831 GB / 3.335 GB, free: 82.52 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000256/8.576, allocations: 79.95 kB / 3.336 GB, free: 82.44 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 3.304/11.88, allocations: 0.869 GB / 4.205 GB, free: 36.14 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.273e-06/11.88, allocations: 0 / 4.205 GB, free: 36.14 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0001635/11.88, allocations: 56.48 kB / 4.205 GB, free: 36.13 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: 476 * Number of variables: 476 Notification: Performance of Generate backend data structure: time 0.01375/11.89, allocations: 3.842 MB / 4.208 GB, free: 33.98 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 6.345e-05/11.89, allocations: 11.19 kB / 4.208 GB, free: 33.98 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005967/11.9, allocations: 0.7803 MB / 4.209 GB, free: 33.78 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005184/11.91, allocations: 1.945 MB / 4.211 GB, free: 32.88 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001391/11.91, allocations: 88.66 kB / 4.211 GB, free: 32.87 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003448/11.91, allocations: 108.6 kB / 4.211 GB, free: 32.87 MB / 0.5573 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003586/11.91, allocations: 2.347 MB / 4.214 GB, free: 31.77 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003627/11.91, allocations: 2.578 MB / 4.216 GB, free: 29.48 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.05e-05/11.91, allocations: 11.94 kB / 4.216 GB, free: 29.46 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001973/11.91, allocations: 7.516 kB / 4.216 GB, free: 29.46 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001601/11.91, allocations: 147.6 kB / 4.216 GB, free: 29.34 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.697/12.61, allocations: 137.4 MB / 4.35 GB, free: 25.13 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002839/12.61, allocations: 1.435 MB / 4.352 GB, free: 25.09 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001632/12.62, allocations: 0.9017 MB / 4.353 GB, free: 25.09 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03639/12.65, allocations: 18.85 MB / 4.371 GB, free: 28.12 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002696/12.65, allocations: 1.123 MB / 4.372 GB, free: 27.96 MB / 0.6198 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001733/12.66, allocations: 149.7 kB / 4.372 GB, free: 27.96 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=136): time 1.005e-05/12.66, allocations: 0 / 4.372 GB, free: 27.96 MB / 0.6198 GB Notification: Performance of matching and sorting (n=148): time 0.02186/12.68, allocations: 7.356 MB / 4.38 GB, free: 26.48 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000208/12.68, allocations: 358.6 kB / 4.38 GB, free: 26.08 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001614/12.68, allocations: 1.075 MB / 4.381 GB, free: 25.91 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 0.0003018/12.68, allocations: 29.23 kB / 4.381 GB, free: 25.88 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008389/12.68, allocations: 0.9394 MB / 4.382 GB, free: 25.57 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005643/12.68, allocations: 491.2 kB / 4.382 GB, free: 25.32 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001115/12.68, allocations: 0 / 4.382 GB, free: 25.32 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 0.0002068/12.68, allocations: 380.3 kB / 4.383 GB, free: 25.01 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001234/12.68, allocations: 0.9171 MB / 4.384 GB, free: 25.01 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001413/12.69, allocations: 1.273 MB / 4.385 GB, free: 24.62 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005437/12.69, allocations: 1.803 MB / 4.387 GB, free: 24.57 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.326e-05/12.69, allocations: 3.281 kB / 4.387 GB, free: 24.57 MB / 0.6198 GB Notification: Performance of matching and sorting (n=224) (initialization): time 0.009199/12.7, allocations: 3.542 MB / 4.39 GB, free: 24.36 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 0.001569/12.7, allocations: 3.785 MB / 4.394 GB, free: 20.45 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.642e-05/12.7, allocations: 11.5 kB / 4.394 GB, free: 20.45 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001934/12.7, allocations: 0.5285 MB / 4.394 GB, free: 20.4 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001817/12.71, allocations: 433.5 kB / 4.395 GB, free: 20.4 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002616/12.71, allocations: 2.929 MB / 4.398 GB, free: 18.31 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002727/12.71, allocations: 250.8 kB / 4.398 GB, free: 18.29 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003162/12.71, allocations: 95.42 kB / 4.398 GB, free: 18.29 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.378e-05/12.71, allocations: 2.5 kB / 4.398 GB, free: 18.29 MB / 0.6198 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007293/12.72, allocations: 3.001 MB / 4.401 GB, free: 18.19 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.653e-05/12.72, allocations: 7.844 kB / 4.401 GB, free: 18.19 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004124/12.72, allocations: 187.6 kB / 4.401 GB, free: 18.16 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001744/12.72, allocations: 448.9 kB / 4.401 GB, free: 18.16 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001414/12.72, allocations: 1.888 MB / 4.403 GB, free: 16.61 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002311/12.72, allocations: 223.1 kB / 4.404 GB, free: 16.58 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002674/12.72, allocations: 89.98 kB / 4.404 GB, free: 16.58 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 (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_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_b.phase,pipe2.state_b.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (201): * Single equations (assignments): 195 * 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 9} Notification: Performance of prepare postOptimizeDAE: time 0.0007084/12.73, allocations: 227.2 kB / 4.404 GB, free: 16.4 MB / 0.6198 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.005619/12.73, allocations: 2.439 MB / 4.406 GB, free: 16.21 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005073/12.73, allocations: 177.2 kB / 4.406 GB, free: 16.13 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008269/12.74, allocations: 6.404 MB / 4.413 GB, free: 15.6 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.491e-05/12.74, allocations: 67.19 kB / 4.413 GB, free: 15.6 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.197e-06/12.74, allocations: 7.312 kB / 4.413 GB, free: 15.59 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006202/12.75, allocations: 5.396 MB / 4.418 GB, free: 14.86 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01124/12.76, allocations: 8.64 MB / 4.426 GB, free: 14.33 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.296e-05/12.76, allocations: 0 / 4.426 GB, free: 14.33 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001108/12.76, allocations: 289.8 kB / 4.427 GB, free: 14.33 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002213/12.76, allocations: 1.488 MB / 4.428 GB, free: 14.24 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001539/12.76, allocations: 38.81 kB / 4.428 GB, free: 14.24 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002994/12.76, allocations: 3.695 MB / 4.432 GB, free: 12.12 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.573e-06/12.76, allocations: 6.812 kB / 4.432 GB, free: 12.12 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008297/12.77, allocations: 6.492 MB / 4.438 GB, free: 11.52 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001597/12.77, allocations: 0.6639 MB / 4.439 GB, free: 11.26 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003775/12.77, allocations: 19.59 kB / 4.439 GB, free: 11.26 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001362/12.78, allocations: 154.8 kB / 4.439 GB, free: 11.23 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000235/12.78, allocations: 118.1 kB / 4.439 GB, free: 11.23 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001425/12.78, allocations: 66.64 kB / 4.439 GB, free: 11.23 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.001517/12.78, allocations: 1.052 MB / 4.44 GB, free: 11.12 MB / 0.6198 GB Notification: Performance of sort global known variables: time 3.41e-07/12.78, allocations: 0 / 4.44 GB, free: 11.12 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.01118/12.79, allocations: 2.622 MB / 4.443 GB, free: 11 MB / 0.6198 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,$cse17.phase,$cse17.region,$cse22.phase,$cse22.region,$cse23.phase,$cse23.region,$cse25.phase,$cse25.region,$cse26.region3boundary,$cse27.region3boundary,$cse28.phase,$cse28.region,$cse30.phase,$cse30.region,$cse31.region3boundary,$cse32.region3boundary,$cse33.phase,$cse33.region,$cse35.phase,$cse35.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 (149): * Single equations (assignments): 127 * 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 16} Notification: Performance of Backend phase and start with SimCode phase: time 0.02148/12.81, allocations: 9.771 MB / 4.452 GB, free: 9.285 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.006355/12.82, allocations: 4.315 MB / 4.456 GB, free: 8.785 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 7.634e-06/12.82, allocations: 0 / 4.456 GB, free: 8.785 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.002272/12.82, allocations: 1.971 MB / 4.458 GB, free: 7.742 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004101/12.82, allocations: 0.813 MB / 4.459 GB, free: 7.305 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01388/12.84, allocations: 6.29 MB / 4.465 GB, free: 2.922 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001469/12.84, allocations: 2.09 MB / 4.467 GB, free: 1.355 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.005287/12.84, allocations: 2.462 MB / 4.47 GB, free: 0 / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001981/12.85, allocations: 1.107 MB / 4.471 GB, free: 15.88 MB / 0.6355 GB Notification: Performance of SimCode: time 2.074e-06/12.85, allocations: 4 kB / 4.471 GB, free: 15.88 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5925/13.44, allocations: 97.72 MB / 4.566 GB, free: 106 MB / 0.6355 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001836/13.44, allocations: 178.6 kB / 4.566 GB, free: 105.8 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.438/18.88, allocations: 0 / 4.566 GB, free: 105.8 MB / 0.6355 GB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes13_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes13.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13_res.mat does not exist to compare? outputFormat=mat