Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.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.BranchingPipes4,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes4",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes4",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.001311/0.001311, 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.682/1.682, allocations: 205.3 MB / 213.7 MB, free: 1.73 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.0009388/0.000939, allocations: 82.36 kB / 261.7 MB, free: 1.688 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.2633/0.2633, allocations: 43.5 MB / 353.2 MB, free: 284 kB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.142e-05/2.138e-05, allocations: 0 / 418.3 MB, free: 28.46 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1428/0.1428, allocations: 58.87 MB / 477.2 MB, free: 1.551 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 9.038/9.181, allocations: 2.829 GB / 3.295 GB, free: 40 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002391/9.181, allocations: 84.23 kB / 3.295 GB, free: 39.96 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 3.826/13.01, allocations: 0.8965 GB / 4.191 GB, free: 42.97 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.713e-06/13.01, allocations: 0 / 4.191 GB, free: 42.97 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0001977/13.01, allocations: 67.31 kB / 4.191 GB, free: 42.96 MB / 0.5417 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.01503/13.02, allocations: 4.036 MB / 4.195 GB, free: 41.22 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.429e-05/13.02, allocations: 10.28 kB / 4.195 GB, free: 41.22 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006705/13.03, allocations: 0.873 MB / 4.196 GB, free: 41.08 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005571/13.03, allocations: 2.075 MB / 4.198 GB, free: 40.64 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001613/13.03, allocations: 91.78 kB / 4.198 GB, free: 40.64 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005648/13.04, allocations: 121.4 kB / 4.198 GB, free: 40.64 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004266/13.04, allocations: 2.678 MB / 4.201 GB, free: 40.62 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004233/13.04, allocations: 2.896 MB / 4.204 GB, free: 40.11 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.42e-05/13.04, allocations: 5.469 kB / 4.204 GB, free: 40.11 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002466/13.04, allocations: 6.219 kB / 4.204 GB, free: 40.11 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001813/13.04, allocations: 170.4 kB / 4.204 GB, free: 40.11 MB / 0.5417 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.2346/13.28, allocations: 126.2 MB / 4.327 GB, free: 24.97 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003933/13.28, allocations: 2.081 MB / 4.329 GB, free: 24.37 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001751/13.28, allocations: 0.9836 MB / 4.33 GB, free: 24.36 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03233/13.32, allocations: 17.01 MB / 4.347 GB, free: 13.27 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002691/13.32, allocations: 1.195 MB / 4.348 GB, free: 13.09 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=153): time 5.851e-06/13.32, allocations: 0 / 4.348 GB, free: 13.09 MB / 0.6042 GB Notification: Performance of matching and sorting (n=169): time 0.02562/13.35, allocations: 7.954 MB / 4.356 GB, free: 11.33 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001932/13.35, allocations: 358.5 kB / 4.356 GB, free: 10.92 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00172/13.35, allocations: 1.149 MB / 4.357 GB, free: 10.61 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 0.0003853/13.35, allocations: 29.7 kB / 4.357 GB, free: 10.57 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.001038/13.35, allocations: 1.039 MB / 4.358 GB, free: 9.961 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006525/13.35, allocations: 0.5426 MB / 4.359 GB, free: 9.527 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001251/13.35, allocations: 0 / 4.359 GB, free: 9.527 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 0.000245/13.35, allocations: 382.8 kB / 4.359 GB, free: 9.203 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001403/13.35, allocations: 1.009 MB / 4.36 GB, free: 8.68 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001579/13.35, allocations: 1.424 MB / 4.362 GB, free: 7.645 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01077/13.36, allocations: 2.787 MB / 4.364 GB, free: 6.133 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.023e-05/13.36, allocations: 12.03 kB / 4.364 GB, free: 6.125 MB / 0.6042 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.01552/13.38, allocations: 4.521 MB / 4.369 GB, free: 3.477 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 0.4143/13.79, allocations: 4.413 MB / 4.373 GB, free: 102.5 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001234/13.79, allocations: 10.69 kB / 4.373 GB, free: 102.5 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008192/13.79, allocations: 217.1 kB / 4.373 GB, free: 102.5 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002698/13.8, allocations: 0.5098 MB / 4.374 GB, free: 102.5 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001621/13.8, allocations: 2.457 MB / 4.376 GB, free: 100.4 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003761/13.8, allocations: 275.8 kB / 4.377 GB, free: 100.4 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006706/13.8, allocations: 106 kB / 4.377 GB, free: 100.4 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.482e-05/13.8, allocations: 7.094 kB / 4.377 GB, free: 100.4 MB / 0.6042 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01617/13.82, allocations: 4.079 MB / 4.381 GB, free: 100.3 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.468e-05/13.82, allocations: 13.12 kB / 4.381 GB, free: 100.3 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000597/13.82, allocations: 216.4 kB / 4.381 GB, free: 100.3 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002641/13.82, allocations: 0.5057 MB / 4.381 GB, free: 100.3 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001609/13.82, allocations: 2.452 MB / 4.384 GB, free: 98.21 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003117/13.83, allocations: 248.5 kB / 4.384 GB, free: 98.21 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005812/13.83, allocations: 99.47 kB / 4.384 GB, free: 98.21 MB / 0.6042 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,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,splitter.medium.phase,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 (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.0009862/13.83, allocations: 240.9 kB / 4.384 GB, free: 98.04 MB / 0.6042 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.008614/13.84, allocations: 2.543 MB / 4.387 GB, free: 97.96 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000921/13.84, allocations: 193.4 kB / 4.387 GB, free: 97.96 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01199/13.85, allocations: 6.397 MB / 4.393 GB, free: 97.58 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.544e-05/13.85, allocations: 72.59 kB / 4.393 GB, free: 97.58 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.159e-05/13.85, allocations: 0 / 4.393 GB, free: 97.58 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006723/13.86, allocations: 5.354 MB / 4.398 GB, free: 96.85 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01228/13.87, allocations: 9.153 MB / 4.407 GB, free: 96.13 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.542e-05/13.87, allocations: 6.875 kB / 4.407 GB, free: 96.13 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001443/13.87, allocations: 360 kB / 4.408 GB, free: 96.13 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00076/13.87, allocations: 326.7 kB / 4.408 GB, free: 96.09 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001629/13.87, allocations: 36.33 kB / 4.408 GB, free: 96.09 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001172/13.87, allocations: 2.634 MB / 4.411 GB, free: 94 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/13.87, allocations: 1.312 kB / 4.411 GB, free: 94 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008001/13.88, allocations: 6.36 MB / 4.417 GB, free: 93.42 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001528/13.88, allocations: 0.7091 MB / 4.418 GB, free: 93.18 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004218/13.88, allocations: 17.16 kB / 4.418 GB, free: 93.18 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001506/13.89, allocations: 176.5 kB / 4.418 GB, free: 93.17 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002355/13.89, allocations: 138 kB / 4.418 GB, free: 93.17 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001663/13.89, allocations: 71.72 kB / 4.418 GB, free: 93.17 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.001316/13.89, allocations: 1.101 MB / 4.419 GB, free: 93.06 MB / 0.6042 GB Notification: Performance of sort global known variables: time 2.51e-07/13.89, allocations: 0.5625 kB / 4.419 GB, free: 93.06 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.01001/13.9, allocations: 2.736 MB / 4.422 GB, free: 93.06 MB / 0.6042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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: 46 ($cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.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.region3boundary,$cse31.region3boundary,$cse32.phase,$cse32.region,$cse34.phase,$cse34.region,$cse35.region3boundary,$cse36.region3boundary,$cse37.phase,$cse37.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,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 (185): * Single equations (assignments): 160 * 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,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.02075/13.92, allocations: 10.19 MB / 4.432 GB, free: 91.49 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.007424/13.93, allocations: 4.746 MB / 4.436 GB, free: 91.19 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 8.466e-06/13.93, allocations: 3.875 kB / 4.436 GB, free: 91.19 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.002808/13.93, allocations: 2.155 MB / 4.438 GB, free: 91.05 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005452/13.93, allocations: 0.8559 MB / 4.439 GB, free: 91.04 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0178/13.95, allocations: 6.796 MB / 4.446 GB, free: 89.76 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001578/13.95, allocations: 2.203 MB / 4.448 GB, free: 88.99 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.005122/13.96, allocations: 2.605 MB / 4.451 GB, free: 88.95 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001735/13.96, allocations: 1.221 MB / 4.452 GB, free: 88.95 MB / 0.6042 GB Notification: Performance of SimCode: time 6.71e-07/13.96, allocations: 2.625 kB / 4.452 GB, free: 88.95 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.19/14.15, allocations: 102.1 MB / 4.551 GB, free: 64.5 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002439/14.15, allocations: 190.6 kB / 4.552 GB, free: 64.29 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.82/19.97, allocations: 0 / 4.552 GB, free: 64.29 MB / 0.6042 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes4_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes4.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4_res.mat does not exist to compare? outputFormat=mat