Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes14",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes14",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00144/0.00144, allocations: 170.4 kB / 8.74 MB, free: 348 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.576/1.576, allocations: 221.5 MB / 230.7 MB, free: 7.52 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001015/0.001014, allocations: 89.98 kB / 281.6 MB, free: 5.266 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2699/0.2699, allocations: 44.14 MB / 376.5 MB, free: 3.047 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 2.411e-05/2.42e-05, allocations: 224 / 444.7 MB, free: 15.15 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1822/0.1822, allocations: 61.92 MB / 0.4948 GB, free: 1.168 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.895/9.078, allocations: 2.851 GB / 3.345 GB, free: 125.8 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002563/9.078, allocations: 79.95 kB / 3.345 GB, free: 125.7 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 3.468/12.55, allocations: 0.9098 GB / 4.255 GB, free: 25.2 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.633e-06/12.55, allocations: 0 / 4.255 GB, free: 25.2 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0002005/12.55, allocations: 65.67 kB / 4.255 GB, free: 25.19 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.01441/12.56, allocations: 3.968 MB / 4.259 GB, free: 22.93 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.102e-05/12.56, allocations: 15.98 kB / 4.259 GB, free: 22.92 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006613/12.57, allocations: 0.8803 MB / 4.26 GB, free: 22.21 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005825/12.57, allocations: 2.097 MB / 4.262 GB, free: 20.52 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001642/12.57, allocations: 91.52 kB / 4.262 GB, free: 20.43 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005824/12.57, allocations: 126.8 kB / 4.262 GB, free: 20.31 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004689/12.58, allocations: 2.623 MB / 4.265 GB, free: 17.97 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004966/12.58, allocations: 2.861 MB / 4.268 GB, free: 15.22 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.891e-05/12.58, allocations: 11.94 kB / 4.268 GB, free: 15.21 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002569/12.58, allocations: 8 kB / 4.268 GB, free: 15.2 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002264/12.58, allocations: 163.6 kB / 4.268 GB, free: 15.04 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.6532/13.24, allocations: 126.3 MB / 4.391 GB, free: 24.05 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002642/13.24, allocations: 2.114 MB / 4.393 GB, free: 23.45 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001339/13.24, allocations: 1.075 MB / 4.394 GB, free: 23.43 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03086/13.27, allocations: 16.96 MB / 4.411 GB, free: 12.36 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002219/13.27, allocations: 1.244 MB / 4.412 GB, free: 12.21 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=163): time 3.958e-06/13.27, allocations: 1.5 kB / 4.412 GB, free: 12.21 MB / 0.5886 GB Notification: Performance of matching and sorting (n=179): time 0.03501/13.31, allocations: 9.614 MB / 4.421 GB, free: 26.61 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001865/13.31, allocations: 360.5 kB / 4.422 GB, free: 26.21 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00148/13.31, allocations: 1.094 MB / 4.423 GB, free: 26.04 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 0.0003522/13.31, allocations: 28.48 kB / 4.423 GB, free: 26.01 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007285/13.31, allocations: 1.013 MB / 4.424 GB, free: 25.67 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005401/13.31, allocations: 0.582 MB / 4.424 GB, free: 25.36 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001257/13.31, allocations: 2.062 kB / 4.424 GB, free: 25.36 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 0.0001579/13.31, allocations: 387 kB / 4.425 GB, free: 25.06 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001305/13.31, allocations: 1.013 MB / 4.426 GB, free: 25.05 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00152/13.32, allocations: 1.456 MB / 4.427 GB, free: 24.59 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008024/13.32, allocations: 1.96 MB / 4.429 GB, free: 24.54 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.57e-05/13.32, allocations: 2.312 kB / 4.429 GB, free: 24.54 MB / 0.6042 GB Notification: Performance of matching and sorting (n=264) (initialization): time 0.01147/13.34, allocations: 3.685 MB / 4.433 GB, free: 24.31 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 0.001537/13.34, allocations: 4.419 MB / 4.437 GB, free: 19.77 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.637e-05/13.34, allocations: 11.03 kB / 4.437 GB, free: 19.77 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005547/13.34, allocations: 222 kB / 4.437 GB, free: 19.73 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002192/13.34, allocations: 0.5254 MB / 4.438 GB, free: 19.73 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001681/13.34, allocations: 2.452 MB / 4.44 GB, free: 17.64 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003131/13.35, allocations: 310.2 kB / 4.44 GB, free: 17.61 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002744/13.35, allocations: 106.2 kB / 4.441 GB, free: 17.61 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.154e-05/13.35, allocations: 3.594 kB / 4.441 GB, free: 17.61 MB / 0.6042 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009733/13.36, allocations: 3.251 MB / 4.444 GB, free: 17.51 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.82e-05/13.36, allocations: 8.844 kB / 4.444 GB, free: 17.51 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004796/13.36, allocations: 222.7 kB / 4.444 GB, free: 17.47 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001972/13.36, allocations: 0.5186 MB / 4.445 GB, free: 17.47 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001435/13.36, allocations: 2.447 MB / 4.447 GB, free: 15.39 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002567/13.36, allocations: 290.8 kB / 4.447 GB, free: 15.35 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002318/13.36, allocations: 98.66 kB / 4.447 GB, free: 15.35 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 (valve2.state_b.phase,valve2.state_a.phase,valve1.state_b.phase,valve1.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,junctionIdeal.medium.phase,source.medium.phase,sink.medium.phase,pipe3.state_a.phase,pipe3.state_b.phase,pipe2.state_a.phase,pipe2.state_b.phase,pipe1.state_b.phase,pipe1.state_a.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (250): * Single equations (assignments): 244 * 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.0006255/13.36, allocations: 243.9 kB / 4.447 GB, free: 15.18 MB / 0.6042 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.009933/13.37, allocations: 3.151 MB / 4.451 GB, free: 14.95 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003553/13.37, allocations: 193.8 kB / 4.451 GB, free: 14.86 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01415/13.39, allocations: 7.054 MB / 4.458 GB, free: 14.33 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.166e-05/13.39, allocations: 73.48 kB / 4.458 GB, free: 14.33 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.044e-05/13.39, allocations: 3.953 kB / 4.458 GB, free: 14.32 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01269/13.4, allocations: 6.142 MB / 4.464 GB, free: 13.56 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02261/13.42, allocations: 11.22 MB / 4.475 GB, free: 12.19 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.355e-05/13.42, allocations: 7.875 kB / 4.475 GB, free: 12.19 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001559/13.42, allocations: 390 kB / 4.475 GB, free: 12.18 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007938/13.43, allocations: 334.4 kB / 4.475 GB, free: 12.13 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002069/13.43, allocations: 47.7 kB / 4.475 GB, free: 12.13 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001616/13.43, allocations: 2.634 MB / 4.478 GB, free: 10.04 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.164e-05/13.43, allocations: 14.34 kB / 4.478 GB, free: 10.04 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01486/13.44, allocations: 7.629 MB / 4.485 GB, free: 8.75 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001602/13.44, allocations: 0.7101 MB / 4.486 GB, free: 8.473 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004409/13.44, allocations: 26.28 kB / 4.486 GB, free: 8.473 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001608/13.45, allocations: 176 kB / 4.486 GB, free: 8.449 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002699/13.45, allocations: 165.1 kB / 4.486 GB, free: 8.438 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000153/13.45, allocations: 81.12 kB / 4.487 GB, free: 8.438 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.001392/13.45, allocations: 1.052 MB / 4.488 GB, free: 8.328 MB / 0.6042 GB Notification: Performance of sort global known variables: time 2.61e-07/13.45, allocations: 2.938 kB / 4.488 GB, free: 8.328 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.01145/13.46, allocations: 2.632 MB / 4.49 GB, free: 8.219 MB / 0.6042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * 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,junctionIdeal.medium.p,junctionIdeal.medium.h) * Number of discrete variables: 46 ($cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse16.phase,$cse16.region,$cse17.phase,$cse17.region,$cse19.phase,$cse19.region,$cse24.phase,$cse24.region,$cse25.phase,$cse25.region,$cse27.phase,$cse27.region,$cse28.region3boundary,$cse29.region3boundary,$cse30.phase,$cse30.region,$cse32.region3boundary,$cse33.region3boundary,$cse34.phase,$cse34.region,$cse36.phase,$cse36.region,$cse37.region3boundary,$cse38.region3boundary,$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,junctionIdeal.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 (198): * Single equations (assignments): 173 * 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.0293/13.49, allocations: 12.76 MB / 4.503 GB, free: 4.398 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.007214/13.5, allocations: 4.766 MB / 4.507 GB, free: 1.629 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 1.419e-05/13.5, allocations: 4 kB / 4.507 GB, free: 1.625 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.003607/13.5, allocations: 2.391 MB / 4.51 GB, free: 384 kB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005608/13.5, allocations: 0.8855 MB / 4.51 GB, free: 15.98 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01907/13.52, allocations: 6.923 MB / 4.517 GB, free: 11.11 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001826/13.53, allocations: 2.209 MB / 4.519 GB, free: 9.469 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.005533/13.53, allocations: 2.642 MB / 4.522 GB, free: 7.934 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001755/13.53, allocations: 1.238 MB / 4.523 GB, free: 7.793 MB / 0.6198 GB Notification: Performance of SimCode: time 1.453e-06/13.53, allocations: 0 / 4.523 GB, free: 7.793 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5746/14.11, allocations: 101.4 MB / 4.622 GB, free: 99.1 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001846/14.11, allocations: 178.8 kB / 4.622 GB, free: 98.91 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.873/19.98, allocations: 0 / 4.622 GB, free: 98.91 MB / 0.6198 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes14_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes14.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14_res.mat does not exist to compare? outputFormat=mat