Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.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.BranchingPipes12,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes12",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes12",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000994/0.0009941, allocations: 196.8 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.292/1.292, allocations: 225.4 MB / 240.1 MB, free: 15.08 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001426/0.001426, allocations: 91.94 kB / 292.1 MB, free: 5.957 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.195/0.195, allocations: 45.15 MB / 389.3 MB, free: 11.86 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 3.133e-05/3.135e-05, allocations: 4 kB / 460.5 MB, free: 69.91 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1107/0.1107, allocations: 63.24 MB / 0.5114 GB, free: 6.691 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.095/6.206, allocations: 2.831 GB / 3.343 GB, free: 9.734 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001775/6.206, allocations: 75.97 kB / 3.343 GB, free: 9.66 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 2.564/8.77, allocations: 0.8143 GB / 4.157 GB, free: 40.66 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.212e-06/8.77, allocations: 0 / 4.157 GB, free: 40.66 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0001769/8.77, allocations: 77.42 kB / 4.157 GB, free: 40.63 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: 518 * Number of variables: 518 Notification: Performance of Generate backend data structure: time 0.01296/8.783, allocations: 3.972 MB / 4.161 GB, free: 38.43 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 3.889e-05/8.784, allocations: 10.31 kB / 4.161 GB, free: 38.43 MB / 0.5573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007377/8.784, allocations: 289.6 kB / 4.161 GB, free: 38.27 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005388/8.79, allocations: 0.8392 MB / 4.162 GB, free: 38.05 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004717/8.794, allocations: 2.17 MB / 4.164 GB, free: 37.06 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001453/8.795, allocations: 181.1 kB / 4.164 GB, free: 36.99 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004295/8.795, allocations: 196.1 kB / 4.164 GB, free: 36.93 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006074/8.801, allocations: 3.718 MB / 4.168 GB, free: 35.35 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.484e-05/8.801, allocations: 7.562 kB / 4.168 GB, free: 35.34 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002507/8.801, allocations: 88.23 kB / 4.168 GB, free: 35.29 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001572/8.802, allocations: 160.2 kB / 4.168 GB, free: 35.26 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005685/8.807, allocations: 3.441 MB / 4.172 GB, free: 33.27 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.01504/8.822, allocations: 14.93 MB / 4.186 GB, free: 19.16 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003525/8.826, allocations: 2.151 MB / 4.188 GB, free: 17.34 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001137/8.827, allocations: 1.095 MB / 4.189 GB, free: 16.36 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04093/8.868, allocations: 27.18 MB / 4.216 GB, free: 2.309 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004226/8.872, allocations: 1.717 MB / 4.218 GB, free: 0.5664 MB / 0.573 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001273/8.874, allocations: 194.2 kB / 4.218 GB, free: 384 kB / 0.573 GB Notification: Performance of pre-optimization done (n=162): time 3.186e-06/8.874, allocations: 0 / 4.218 GB, free: 384 kB / 0.573 GB Notification: Performance of matching and sorting (n=174): time 0.3207/9.194, allocations: 7.493 MB / 4.225 GB, free: 59.54 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.32e-05/9.194, allocations: 416.5 kB / 4.226 GB, free: 59.07 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002075/9.196, allocations: 1.546 MB / 4.227 GB, free: 58.84 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0001524/9.197, allocations: 61.73 kB / 4.227 GB, free: 58.81 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006778/9.197, allocations: 0.9781 MB / 4.228 GB, free: 58.52 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003714/9.198, allocations: 0.587 MB / 4.229 GB, free: 58.23 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001268/9.198, allocations: 39.88 kB / 4.229 GB, free: 58.23 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0001049/9.198, allocations: 388.8 kB / 4.229 GB, free: 57.93 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00147/9.199, allocations: 1.074 MB / 4.23 GB, free: 57.92 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001545/9.201, allocations: 1.51 MB / 4.232 GB, free: 57.46 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001557/9.203, allocations: 1.321 MB / 4.233 GB, free: 57.38 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.612e-06/9.203, allocations: 3.656 kB / 4.233 GB, free: 57.38 MB / 0.573 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.005175/9.208, allocations: 3.376 MB / 4.236 GB, free: 57.09 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005893/9.208, allocations: 4.066 MB / 4.24 GB, free: 52.86 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.077e-05/9.208, allocations: 16.39 kB / 4.24 GB, free: 52.86 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004492/9.213, allocations: 0.9554 MB / 4.241 GB, free: 52.82 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002084/9.215, allocations: 464.9 kB / 4.242 GB, free: 52.82 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002483/9.217, allocations: 3.163 MB / 4.245 GB, free: 50.74 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002478/9.22, allocations: 240.4 kB / 4.245 GB, free: 50.73 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002929/9.22, allocations: 107.1 kB / 4.245 GB, free: 50.73 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.345e-05/9.22, allocations: 4.344 kB / 4.245 GB, free: 50.73 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005736/9.226, allocations: 3.048 MB / 4.248 GB, free: 50.58 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.271e-05/9.226, allocations: 13.8 kB / 4.248 GB, free: 50.58 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001241/9.227, allocations: 348.4 kB / 4.248 GB, free: 50.55 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001817/9.229, allocations: 496.6 kB / 4.249 GB, free: 50.55 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002785/9.232, allocations: 4.047 MB / 4.253 GB, free: 47.73 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002176/9.234, allocations: 232.3 kB / 4.253 GB, free: 47.72 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002146/9.234, allocations: 106.9 kB / 4.253 GB, free: 47.72 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * 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_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,pipe3.state_b.phase,pipe2.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (219): * Single equations (assignments): 209 * Array equations: 2 * Algorithm blocks: 2 * Record equations: 2 * 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,3 19} Notification: Performance of prepare postOptimizeDAE: time 0.0005998/9.235, allocations: 298.8 kB / 4.253 GB, free: 47.55 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003489/9.235, allocations: 224.7 kB / 4.254 GB, free: 47.44 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007906/9.243, allocations: 7.842 MB / 4.261 GB, free: 46.75 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.179e-05/9.243, allocations: 85.11 kB / 4.261 GB, free: 46.75 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.1e-06/9.243, allocations: 5.078 kB / 4.261 GB, free: 46.75 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005915/9.249, allocations: 6.866 MB / 4.268 GB, free: 45.8 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01123/9.261, allocations: 10.97 MB / 4.279 GB, free: 45.07 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.397e-06/9.261, allocations: 0 / 4.279 GB, free: 45.07 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001289/9.262, allocations: 355.4 kB / 4.279 GB, free: 45.07 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004219/9.266, allocations: 2.528 MB / 4.281 GB, free: 44.99 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002209/9.266, allocations: 61.72 kB / 4.282 GB, free: 44.99 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002381/9.269, allocations: 4.118 MB / 4.286 GB, free: 42.88 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/9.269, allocations: 3.875 kB / 4.286 GB, free: 42.88 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007582/9.276, allocations: 7.803 MB / 4.293 GB, free: 42.18 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001486/9.278, allocations: 0.7797 MB / 4.294 GB, free: 41.88 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000315/9.278, allocations: 53.59 kB / 4.294 GB, free: 41.88 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001321/9.279, allocations: 203.2 kB / 4.294 GB, free: 41.87 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002645/9.28, allocations: 150.9 kB / 4.294 GB, free: 41.86 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001346/9.28, allocations: 74.97 kB / 4.294 GB, free: 41.86 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.001525/9.281, allocations: 1.371 MB / 4.296 GB, free: 41.7 MB / 0.573 GB Notification: Performance of sort global known variables: time 1.51e-07/9.281, allocations: 0 / 4.296 GB, free: 41.7 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.008075/9.29, allocations: 2.882 MB / 4.299 GB, free: 41.57 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 10 (pipe1.mediums[1].p,pipe1.mediums[1].h,valveIncompressible.filter.x[1],valveIncompressible.filter.x[2],valveIncompressible1.filter.x[1],valveIncompressible1.filter.x[2],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,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse21.phase,$cse21.region,$cse22.phase,$cse22.region,$cse27.phase,$cse27.region,$cse28.phase,$cse28.region,$cse30.phase,$cse30.region,$cse33.phase,$cse33.region,$cse35.region3boundary,$cse36.region3boundary,$cse37.phase,$cse37.region,$cse39.phase,$cse39.region,$cse41.region3boundary,$cse42.region3boundary,$cse43.phase,$cse43.region,$cse45.phase,$cse45.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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (170): * Single equations (assignments): 145 * 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,3 28} Notification: Performance of Backend phase and start with SimCode phase: time 0.01599/9.306, allocations: 10.36 MB / 4.309 GB, free: 40.18 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.00664/9.312, allocations: 5.35 MB / 4.314 GB, free: 39.6 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 5.149e-06/9.312, allocations: 3.75 kB / 4.314 GB, free: 39.6 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.002525/9.315, allocations: 2.356 MB / 4.316 GB, free: 39.45 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004243/9.319, allocations: 0.9656 MB / 4.317 GB, free: 39.43 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01291/9.332, allocations: 7.421 MB / 4.324 GB, free: 38.03 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001303/9.333, allocations: 2.304 MB / 4.327 GB, free: 37.26 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.003953/9.337, allocations: 2.446 MB / 4.329 GB, free: 37.23 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001209/9.338, allocations: 1.283 MB / 4.33 GB, free: 36.84 MB / 0.573 GB Notification: Performance of SimCode: time 1.032e-06/9.338, allocations: 0 / 4.33 GB, free: 36.84 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4548/9.793, allocations: 126.1 MB / 4.453 GB, free: 64.36 MB / 0.5886 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001577/9.793, allocations: 228.5 kB / 4.454 GB, free: 64.1 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.835/15.63, allocations: 0 / 4.454 GB, free: 64.1 MB / 0.5886 GB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes12_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes12.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12_res.mat does not exist to compare? outputFormat=mat