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.001817/0.001817, allocations: 197.2 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.509/1.509, allocations: 227.2 MB / 245 MB, free: 7.621 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009209/0.0009209, allocations: 91.94 kB / 297.2 MB, free: 6.176 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.4495/0.4495, allocations: 45.23 MB / 394.6 MB, free: 31.71 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002986/0.0002986, allocations: 4 kB / 468.5 MB, free: 7.621 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7378/0.7381, allocations: 63.24 MB / 0.5193 GB, free: 43.82 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.809/7.548, allocations: 2.832 GB / 3.351 GB, free: 154.8 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002597/7.548, allocations: 85.41 kB / 3.351 GB, free: 154.8 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 3.466/11.01, allocations: 0.8787 GB / 4.23 GB, free: 41.68 MB / 0.573 GB Notification: Performance of FrontEnd: time 2.565e-06/11.01, allocations: 0 / 4.23 GB, free: 41.68 MB / 0.573 GB Notification: Performance of Transformations before backend: time 0.0002194/11.01, allocations: 64.83 kB / 4.23 GB, free: 41.67 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: 476 * Number of variables: 476 Notification: Performance of Generate backend data structure: time 0.01657/11.03, allocations: 4.106 MB / 4.234 GB, free: 39.87 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 5.021e-05/11.03, allocations: 12.75 kB / 4.234 GB, free: 39.87 MB / 0.573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001355/11.03, allocations: 277.1 kB / 4.234 GB, free: 39.82 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006315/11.04, allocations: 0.7837 MB / 4.235 GB, free: 39.7 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00637/11.05, allocations: 1.963 MB / 4.237 GB, free: 39.27 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002492/11.05, allocations: 166.6 kB / 4.237 GB, free: 39.27 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006221/11.05, allocations: 182.5 kB / 4.237 GB, free: 39.26 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007574/11.05, allocations: 3.311 MB / 4.24 GB, free: 38.8 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.937e-05/11.05, allocations: 6.594 kB / 4.24 GB, free: 38.8 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002558/11.05, allocations: 82.03 kB / 4.24 GB, free: 38.8 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002174/11.05, allocations: 150.4 kB / 4.241 GB, free: 38.79 MB / 0.573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006557/11.06, allocations: 3.041 MB / 4.244 GB, free: 38.78 MB / 0.573 GB Warning: The model contains alias variables with redundant start and/or conflicting 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.01866/11.08, allocations: 14.22 MB / 4.257 GB, free: 30.28 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004996/11.08, allocations: 2.062 MB / 4.259 GB, free: 30.25 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04639/11.13, allocations: 27.1 MB / 4.286 GB, free: 28.59 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004696/11.14, allocations: 1.586 MB / 4.287 GB, free: 28.46 MB / 0.5886 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001495/11.14, allocations: 172.9 kB / 4.288 GB, free: 28.38 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=146): time 4.939e-06/11.14, allocations: 2.906 kB / 4.288 GB, free: 28.38 MB / 0.5886 GB Notification: Performance of matching and sorting (n=158): time 0.01986/11.16, allocations: 8.404 MB / 4.296 GB, free: 27.12 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001505/11.16, allocations: 252.7 kB / 4.296 GB, free: 26.84 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002032/11.16, allocations: 1.411 MB / 4.297 GB, free: 26.66 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 0.0002331/11.16, allocations: 55.95 kB / 4.298 GB, free: 26.63 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006526/11.16, allocations: 0.894 MB / 4.298 GB, free: 26.29 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004218/11.16, allocations: 0.5267 MB / 4.299 GB, free: 25.95 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001145/11.16, allocations: 31.31 kB / 4.299 GB, free: 25.95 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0001775/11.16, allocations: 378 kB / 4.299 GB, free: 25.64 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001674/11.16, allocations: 1.038 MB / 4.3 GB, free: 25.64 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001857/11.16, allocations: 1.408 MB / 4.302 GB, free: 25.23 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001927/11.17, allocations: 1.246 MB / 4.303 GB, free: 25.14 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.204e-06/11.17, allocations: 3.562 kB / 4.303 GB, free: 25.14 MB / 0.5886 GB Notification: Performance of matching and sorting (n=224) (initialization): time 0.00593/11.17, allocations: 3.204 MB / 4.306 GB, free: 24.84 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 0.001467/11.17, allocations: 3.847 MB / 4.31 GB, free: 20.77 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.899e-05/11.17, allocations: 10.16 kB / 4.31 GB, free: 20.77 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002922/11.18, allocations: 0.6149 MB / 4.31 GB, free: 20.72 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002044/11.18, allocations: 440.5 kB / 4.311 GB, free: 20.71 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002236/11.18, allocations: 2.824 MB / 4.314 GB, free: 18.63 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002808/11.18, allocations: 233.7 kB / 4.314 GB, free: 18.6 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002614/11.18, allocations: 86.72 kB / 4.314 GB, free: 18.6 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.183e-05/11.18, allocations: 7.875 kB / 4.314 GB, free: 18.6 MB / 0.5886 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004891/11.19, allocations: 2.814 MB / 4.317 GB, free: 18.45 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.279e-05/11.19, allocations: 18.45 kB / 4.317 GB, free: 18.44 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006633/11.19, allocations: 205.1 kB / 4.317 GB, free: 18.41 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001834/11.19, allocations: 460.7 kB / 4.317 GB, free: 18.41 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001304/11.19, allocations: 1.878 MB / 4.319 GB, free: 16.85 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002637/11.2, allocations: 232.4 kB / 4.319 GB, free: 16.82 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004048/11.2, allocations: 91.66 kB / 4.319 GB, free: 16.82 MB / 0.5886 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,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,pipe3.state_b.phase,pipe2.state_b.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Number of clocked 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.002782/11.2, allocations: 0.6993 MB / 4.32 GB, free: 16.56 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008013/11.2, allocations: 200.3 kB / 4.32 GB, free: 16.46 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0122/11.21, allocations: 7.556 MB / 4.328 GB, free: 15.72 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.115e-05/11.21, allocations: 90.44 kB / 4.328 GB, free: 15.72 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.675e-05/11.21, allocations: 0 / 4.328 GB, free: 15.72 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007894/11.22, allocations: 6.618 MB / 4.334 GB, free: 13.35 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01505/11.24, allocations: 10.52 MB / 4.345 GB, free: 8.918 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.548e-06/11.24, allocations: 4 kB / 4.345 GB, free: 8.914 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001405/11.24, allocations: 344.3 kB / 4.345 GB, free: 8.895 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003081/11.24, allocations: 1.358 MB / 4.346 GB, free: 8.621 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002744/11.24, allocations: 54.75 kB / 4.346 GB, free: 8.594 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002745/11.24, allocations: 3.48 MB / 4.35 GB, free: 5.918 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.175e-06/11.24, allocations: 0 / 4.35 GB, free: 5.918 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01045/11.25, allocations: 7.378 MB / 4.357 GB, free: 2.75 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002294/11.26, allocations: 0.7413 MB / 4.358 GB, free: 2.289 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009579/11.26, allocations: 46.31 kB / 4.358 GB, free: 2.262 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002366/11.26, allocations: 194.2 kB / 4.358 GB, free: 2.211 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003576/11.26, allocations: 136.4 kB / 4.358 GB, free: 2.188 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002266/11.26, allocations: 70.34 kB / 4.358 GB, free: 2.172 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.003029/11.26, allocations: 1.282 MB / 4.359 GB, free: 1.527 MB / 0.5886 GB Notification: Performance of sort global known variables: time 4.3e-07/11.26, allocations: 0 / 4.359 GB, free: 1.527 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.01371/11.28, allocations: 2.757 MB / 4.362 GB, free: 14.85 MB / 0.6042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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: 55 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse24.phase,$cse24.region,$cse25.phase,$cse25.region,$cse27.phase,$cse27.region,$cse30.phase,$cse30.region,$cse32.region3boundary,$cse33.region3boundary,$cse34.phase,$cse34.region,$cse36.phase,$cse36.region,$cse37.region3boundary,$cse38.region3boundary,$cse39.phase,$cse39.region,$cse41.phase,$cse41.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) * 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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (166): * Single equations (assignments): 140 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 20 * 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.0266/11.3, allocations: 10.22 MB / 4.372 GB, free: 6.039 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.01101/11.31, allocations: 4.859 MB / 4.377 GB, free: 1.746 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 7.103e-06/11.31, allocations: 0 / 4.377 GB, free: 1.746 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.3869/11.7, allocations: 2.31 MB / 4.379 GB, free: 70.27 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005557/11.71, allocations: 0.9629 MB / 4.38 GB, free: 70.26 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02097/11.73, allocations: 16.72 MB / 4.396 GB, free: 59.96 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001836/11.73, allocations: 2.184 MB / 4.398 GB, free: 59.2 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.004269/11.73, allocations: 2.214 MB / 4.4 GB, free: 59.18 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001775/11.74, allocations: 1.221 MB / 4.402 GB, free: 59.18 MB / 0.6042 GB Notification: Performance of SimCode: time 1.152e-06/11.74, allocations: 0 / 4.402 GB, free: 59.18 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.196/11.93, allocations: 112.2 MB / 4.511 GB, free: 54.07 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002025/11.93, allocations: 260.4 kB / 4.511 GB, free: 53.73 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.222/19.15, allocations: 0 / 4.511 GB, free: 53.73 MB / 0.6042 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