Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes12",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes12",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001431/0.001431, allocations: 176.7 kB / 8.008 MB, free: 1.066 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.777/1.777, allocations: 205.3 MB / 213.7 MB, free: 1.723 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009438/0.000944, allocations: 86.22 kB / 261.7 MB, free: 1.68 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3118/0.3118, allocations: 43.49 MB / 353.2 MB, free: 284 kB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.481e-05/1.493e-05, allocations: 0 / 418.4 MB, free: 28.45 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.14/0.14, allocations: 58.85 MB / 477.2 MB, free: 1.559 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.992/9.132, allocations: 2.825 GB / 3.291 GB, free: 134.7 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002746/9.132, allocations: 78.06 kB / 3.291 GB, free: 134.6 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 3.24/12.37, allocations: 0.7996 GB / 4.09 GB, free: 41.35 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.405e-06/12.37, allocations: 0 / 4.09 GB, free: 41.35 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0002045/12.37, allocations: 70.94 kB / 4.09 GB, free: 41.34 MB / 0.5261 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.01537/12.39, allocations: 3.959 MB / 4.094 GB, free: 39.38 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.641e-05/12.39, allocations: 7.625 kB / 4.094 GB, free: 39.38 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006401/12.39, allocations: 0.8352 MB / 4.095 GB, free: 39.24 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006018/12.4, allocations: 2.175 MB / 4.097 GB, free: 38.77 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001446/12.4, allocations: 96 kB / 4.097 GB, free: 38.77 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005214/12.4, allocations: 116.4 kB / 4.097 GB, free: 38.77 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004792/12.41, allocations: 2.887 MB / 4.1 GB, free: 38.76 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004496/12.41, allocations: 2.893 MB / 4.103 GB, free: 38.21 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.577e-05/12.41, allocations: 6.344 kB / 4.103 GB, free: 38.21 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002329/12.41, allocations: 6.844 kB / 4.103 GB, free: 38.21 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002171/12.41, allocations: 161.8 kB / 4.103 GB, free: 38.21 MB / 0.5261 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.615/13.03, allocations: 125.6 MB / 4.226 GB, free: 85.6 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003116/13.03, allocations: 1.603 MB / 4.227 GB, free: 85.57 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001559/13.03, allocations: 0.9998 MB / 4.228 GB, free: 85.56 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03252/13.06, allocations: 17.01 MB / 4.245 GB, free: 75.06 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002888/13.07, allocations: 1.251 MB / 4.246 GB, free: 74.9 MB / 0.573 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001672/13.07, allocations: 164.2 kB / 4.246 GB, free: 74.9 MB / 0.573 GB Notification: Performance of pre-optimization done (n=152): time 4.92e-06/13.07, allocations: 0 / 4.246 GB, free: 74.9 MB / 0.573 GB Notification: Performance of matching and sorting (n=164): time 0.02203/13.09, allocations: 8.077 MB / 4.254 GB, free: 73.34 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001459/13.09, allocations: 0.5099 MB / 4.255 GB, free: 72.75 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001994/13.09, allocations: 1.194 MB / 4.256 GB, free: 72.58 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0004779/13.09, allocations: 28.8 kB / 4.256 GB, free: 72.55 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.00104/13.09, allocations: 1.023 MB / 4.257 GB, free: 72.21 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006388/13.09, allocations: 0.5319 MB / 4.257 GB, free: 71.94 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001291/13.09, allocations: 3.875 kB / 4.257 GB, free: 71.94 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0001195/13.09, allocations: 390.6 kB / 4.258 GB, free: 71.63 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001399/13.1, allocations: 1.051 MB / 4.259 GB, free: 71.63 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001606/13.1, allocations: 1.477 MB / 4.26 GB, free: 71.18 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01069/13.11, allocations: 2.87 MB / 4.263 GB, free: 71.15 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.995e-05/13.11, allocations: 4.234 kB / 4.263 GB, free: 71.15 MB / 0.573 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.01502/13.12, allocations: 4.789 MB / 4.268 GB, free: 70.94 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007889/13.12, allocations: 3.993 MB / 4.272 GB, free: 66.89 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.688e-05/13.12, allocations: 12.25 kB / 4.272 GB, free: 66.89 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003256/13.13, allocations: 0.806 MB / 4.272 GB, free: 66.86 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002076/13.13, allocations: 463 kB / 4.273 GB, free: 66.86 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002987/13.13, allocations: 3.324 MB / 4.276 GB, free: 64.77 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00277/13.14, allocations: 240.7 kB / 4.276 GB, free: 64.75 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000282/13.14, allocations: 104 kB / 4.276 GB, free: 64.75 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.318e-05/13.14, allocations: 3.688 kB / 4.276 GB, free: 64.75 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01352/13.15, allocations: 4.293 MB / 4.281 GB, free: 64.67 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.295e-05/13.15, allocations: 14.5 kB / 4.281 GB, free: 64.67 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009881/13.15, allocations: 333.3 kB / 4.281 GB, free: 64.64 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001973/13.15, allocations: 497.8 kB / 4.281 GB, free: 64.64 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003353/13.16, allocations: 3.997 MB / 4.285 GB, free: 61.87 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002816/13.16, allocations: 208.6 kB / 4.286 GB, free: 61.86 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002962/13.16, allocations: 101.8 kB / 4.286 GB, free: 61.86 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,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) * 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.0008008/13.16, allocations: 233.5 kB / 4.286 GB, free: 61.68 MB / 0.573 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.006085/13.17, allocations: 2.744 MB / 4.289 GB, free: 61.49 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004072/13.17, allocations: 190.8 kB / 4.289 GB, free: 61.39 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008959/13.17, allocations: 6.807 MB / 4.295 GB, free: 60.89 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.358e-05/13.18, allocations: 71.25 kB / 4.295 GB, free: 60.89 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.042e-06/13.18, allocations: 0 / 4.295 GB, free: 60.89 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006471/13.18, allocations: 5.753 MB / 4.301 GB, free: 60.15 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01264/13.19, allocations: 9.192 MB / 4.31 GB, free: 59.55 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.186e-05/13.19, allocations: 1.844 kB / 4.31 GB, free: 59.55 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001267/13.2, allocations: 301.7 kB / 4.31 GB, free: 59.55 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003672/13.2, allocations: 2.331 MB / 4.313 GB, free: 59.46 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002266/13.2, allocations: 41.39 kB / 4.313 GB, free: 59.46 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003432/13.2, allocations: 4.419 MB / 4.317 GB, free: 57.34 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.222e-06/13.2, allocations: 4.156 kB / 4.317 GB, free: 57.34 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008976/13.21, allocations: 7.23 MB / 4.324 GB, free: 56.69 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001426/13.21, allocations: 0.7034 MB / 4.325 GB, free: 56.4 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003444/13.21, allocations: 20.2 kB / 4.325 GB, free: 56.4 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001395/13.22, allocations: 165 kB / 4.325 GB, free: 56.38 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002318/13.22, allocations: 126.8 kB / 4.325 GB, free: 56.38 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001474/13.22, allocations: 79.89 kB / 4.325 GB, free: 56.38 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.001532/13.22, allocations: 1.132 MB / 4.326 GB, free: 56.23 MB / 0.573 GB Notification: Performance of sort global known variables: time 4.21e-07/13.22, allocations: 0 / 4.326 GB, free: 56.23 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.01051/13.23, allocations: 2.73 MB / 4.329 GB, free: 56.11 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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: 45 ($cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse10.phase,$cse10.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse20.phase,$cse20.region,$cse25.phase,$cse25.region,$cse26.phase,$cse26.region,$cse28.phase,$cse28.region,$cse29.region3boundary,$cse30.region3boundary,$cse31.phase,$cse31.region,$cse33.phase,$cse33.region,$cse35.region3boundary,$cse36.region3boundary,$cse37.phase,$cse37.region,$cse39.phase,$cse39.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 (153): * Single equations (assignments): 132 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 15 * 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.02273/13.25, allocations: 10.17 MB / 4.339 GB, free: 54.53 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.007391/13.26, allocations: 5.003 MB / 4.344 GB, free: 53.99 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 7.494e-06/13.26, allocations: 0 / 4.344 GB, free: 53.99 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.002858/13.26, allocations: 2.122 MB / 4.346 GB, free: 53.84 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004402/13.27, allocations: 0.787 MB / 4.347 GB, free: 53.82 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01454/13.28, allocations: 6.749 MB / 4.353 GB, free: 52.39 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001423/13.28, allocations: 2.212 MB / 4.355 GB, free: 51.62 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.004217/13.29, allocations: 2.467 MB / 4.358 GB, free: 51.59 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001284/13.29, allocations: 1.202 MB / 4.359 GB, free: 51.58 MB / 0.573 GB Notification: Performance of SimCode: time 9.52e-07/13.29, allocations: 4.812 kB / 4.359 GB, free: 51.58 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5404/13.83, allocations: 104.2 MB / 4.461 GB, free: 84.98 MB / 0.573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000206/13.83, allocations: 184.6 kB / 4.461 GB, free: 84.79 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.111/19.94, allocations: 0 / 4.461 GB, free: 84.79 MB / 0.573 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes12_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes12.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12_res.mat does not exist to compare? outputFormat=mat