Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.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.BranchingPipes13,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes13",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes13",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.001349/0.001349, allocations: 169.7 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.551/1.551, 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.0009463/0.0009465, allocations: 96.36 kB / 281.6 MB, free: 5.25 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.227/0.227, allocations: 44.15 MB / 376.5 MB, free: 3.023 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.594e-05/1.596e-05, allocations: 4.219 kB / 444.7 MB, free: 15.12 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1609/0.1609, allocations: 61.92 MB / 0.4948 GB, free: 1.141 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 9.031/9.192, allocations: 2.83 GB / 3.325 GB, free: 145.5 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002341/9.193, allocations: 76.77 kB / 3.325 GB, free: 145.4 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 3.471/12.66, allocations: 0.8699 GB / 4.195 GB, free: 35.09 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.603e-06/12.66, allocations: 0 / 4.195 GB, free: 35.09 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0001971/12.66, allocations: 63.23 kB / 4.195 GB, free: 35.08 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: 476 * Number of variables: 476 Notification: Performance of Generate backend data structure: time 0.01676/12.68, allocations: 3.825 MB / 4.199 GB, free: 33.18 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.77e-05/12.68, allocations: 14.33 kB / 4.199 GB, free: 33.18 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006195/12.69, allocations: 0.7859 MB / 4.199 GB, free: 33.05 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006332/12.69, allocations: 1.951 MB / 4.201 GB, free: 32.61 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002517/12.69, allocations: 82.09 kB / 4.201 GB, free: 32.61 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001033/12.69, allocations: 108.8 kB / 4.201 GB, free: 32.61 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004587/12.7, allocations: 2.342 MB / 4.204 GB, free: 32.6 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004041/12.7, allocations: 2.586 MB / 4.206 GB, free: 32.14 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.666e-05/12.7, allocations: 7.469 kB / 4.206 GB, free: 32.14 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002264/12.7, allocations: 7.766 kB / 4.206 GB, free: 32.13 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001842/12.7, allocations: 151.2 kB / 4.206 GB, free: 32.13 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.6824/13.39, allocations: 124.9 MB / 4.328 GB, free: 72.85 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002643/13.39, allocations: 1.437 MB / 4.33 GB, free: 72.82 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001405/13.39, allocations: 0.8979 MB / 4.331 GB, free: 72.81 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03124/13.42, allocations: 17.01 MB / 4.347 GB, free: 62.31 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001907/13.42, allocations: 1.122 MB / 4.348 GB, free: 62.16 MB / 0.5886 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001275/13.42, allocations: 147.9 kB / 4.349 GB, free: 62.16 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=136): time 4.278e-06/13.42, allocations: 0 / 4.349 GB, free: 62.16 MB / 0.5886 GB Notification: Performance of matching and sorting (n=148): time 0.01788/13.44, allocations: 7.36 MB / 4.356 GB, free: 60.71 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.835e-05/13.44, allocations: 360.2 kB / 4.356 GB, free: 60.3 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001394/13.44, allocations: 1.075 MB / 4.357 GB, free: 60.14 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 0.000176/13.44, allocations: 30.39 kB / 4.357 GB, free: 60.11 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007014/13.44, allocations: 0.9386 MB / 4.358 GB, free: 59.79 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004444/13.45, allocations: 493.1 kB / 4.359 GB, free: 59.54 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001128/13.45, allocations: 4.047 kB / 4.359 GB, free: 59.54 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 9.863e-05/13.45, allocations: 371.3 kB / 4.359 GB, free: 59.24 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001154/13.45, allocations: 0.9168 MB / 4.36 GB, free: 59.24 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001301/13.45, allocations: 1.273 MB / 4.361 GB, free: 58.86 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004372/13.45, allocations: 1.658 MB / 4.363 GB, free: 58.84 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.236e-05/13.45, allocations: 3.344 kB / 4.363 GB, free: 58.84 MB / 0.5886 GB Notification: Performance of matching and sorting (n=224) (initialization): time 0.007636/13.46, allocations: 3.383 MB / 4.366 GB, free: 58.64 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 0.000745/13.46, allocations: 3.788 MB / 4.37 GB, free: 54.76 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.64e-05/13.46, allocations: 14.41 kB / 4.37 GB, free: 54.76 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001913/13.46, allocations: 0.5188 MB / 4.37 GB, free: 54.73 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001718/13.46, allocations: 439.6 kB / 4.371 GB, free: 54.73 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00216/13.47, allocations: 2.933 MB / 4.373 GB, free: 52.64 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002684/13.47, allocations: 246.1 kB / 4.374 GB, free: 52.64 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002639/13.47, allocations: 95.45 kB / 4.374 GB, free: 52.64 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.916e-05/13.47, allocations: 5.312 kB / 4.374 GB, free: 52.64 MB / 0.5886 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006773/13.48, allocations: 2.84 MB / 4.377 GB, free: 52.57 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.992e-05/13.48, allocations: 10.91 kB / 4.377 GB, free: 52.57 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004615/13.48, allocations: 183.3 kB / 4.377 GB, free: 52.54 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00186/13.48, allocations: 457.4 kB / 4.377 GB, free: 52.54 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001142/13.48, allocations: 1.893 MB / 4.379 GB, free: 50.98 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002362/13.48, allocations: 211.9 kB / 4.379 GB, free: 50.98 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000195/13.48, allocations: 90.83 kB / 4.379 GB, free: 50.98 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,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,pipe1.state_b.phase) * Number of discrete 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.0006451/13.48, allocations: 227.4 kB / 4.38 GB, free: 50.8 MB / 0.5886 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.005501/13.49, allocations: 2.441 MB / 4.382 GB, free: 50.62 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004032/13.49, allocations: 174 kB / 4.382 GB, free: 50.54 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009011/13.5, allocations: 6.406 MB / 4.388 GB, free: 50.04 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.516e-05/13.5, allocations: 68.12 kB / 4.388 GB, free: 50.04 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.177e-06/13.5, allocations: 3.688 kB / 4.388 GB, free: 50.04 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006858/13.51, allocations: 5.409 MB / 4.394 GB, free: 49.29 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01218/13.52, allocations: 8.628 MB / 4.402 GB, free: 48.75 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.36e-05/13.52, allocations: 3.953 kB / 4.402 GB, free: 48.74 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001163/13.52, allocations: 287.5 kB / 4.402 GB, free: 48.74 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002266/13.52, allocations: 1.497 MB / 4.404 GB, free: 48.67 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002065/13.52, allocations: 40.02 kB / 4.404 GB, free: 48.67 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002567/13.52, allocations: 3.69 MB / 4.407 GB, free: 46.56 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.542e-06/13.52, allocations: 1.219 kB / 4.407 GB, free: 46.56 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009116/13.53, allocations: 6.501 MB / 4.414 GB, free: 45.95 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001961/13.54, allocations: 0.6588 MB / 4.414 GB, free: 45.67 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004372/13.54, allocations: 23.81 kB / 4.415 GB, free: 45.67 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001433/13.54, allocations: 148.3 kB / 4.415 GB, free: 45.66 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002235/13.54, allocations: 122.2 kB / 4.415 GB, free: 45.66 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001366/13.54, allocations: 64.33 kB / 4.415 GB, free: 45.66 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.001328/13.54, allocations: 1.05 MB / 4.416 GB, free: 45.55 MB / 0.5886 GB Notification: Performance of sort global known variables: time 3.01e-07/13.54, allocations: 0 / 4.416 GB, free: 45.55 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.0106/13.55, allocations: 2.611 MB / 4.418 GB, free: 45.43 MB / 0.5886 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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: 45 ($cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse9.phase,$cse9.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.phase,$cse30.region,$cse31.region3boundary,$cse32.region3boundary,$cse33.phase,$cse33.region,$cse35.phase,$cse35.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 (149): * Single equations (assignments): 127 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 16 * 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.02378/13.57, allocations: 9.739 MB / 4.428 GB, free: 43.86 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.008529/13.58, allocations: 4.308 MB / 4.432 GB, free: 43.55 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 8.907e-06/13.58, allocations: 3.781 kB / 4.432 GB, free: 43.55 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.003035/13.58, allocations: 1.974 MB / 4.434 GB, free: 43.41 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006047/13.59, allocations: 0.8083 MB / 4.435 GB, free: 43.4 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01983/13.61, allocations: 6.283 MB / 4.441 GB, free: 42.11 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002101/13.61, allocations: 2.092 MB / 4.443 GB, free: 41.32 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.005007/13.62, allocations: 2.433 MB / 4.445 GB, free: 41.23 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001651/13.62, allocations: 1.103 MB / 4.446 GB, free: 41.23 MB / 0.5886 GB Notification: Performance of SimCode: time 1.122e-06/13.62, allocations: 0 / 4.446 GB, free: 41.23 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5655/14.19, allocations: 97.68 MB / 4.542 GB, free: 78.69 MB / 0.5886 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001602/14.19, allocations: 181 kB / 4.542 GB, free: 78.5 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.52/19.71, allocations: 4 kB / 4.542 GB, free: 78.5 MB / 0.5886 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes13_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes13.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13_res.mat does not exist to compare? outputFormat=mat