Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.conf.json Using package ModelicaTest with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo) Using package ModelicaServices with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes13",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.009758/0.009758, allocations: 166.5 kB / 15.11 MB, free: 5.93 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.64/1.64, allocations: 170.8 MB / 186.6 MB, free: 1.121 MB / 154.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001991/0.001991, allocations: 107 kB / 226.2 MB, free: 10.11 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.4421/0.4421, allocations: 38.06 MB / 303.7 MB, free: 42.35 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005962/0.0005961, allocations: 19.98 kB / 363 MB, free: 5.516 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1066/0.1072, allocations: 48.71 MB / 411.7 MB, free: 4.73 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.753/7.86, allocations: 2.546 GB / 2.948 GB, free: 58.18 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002767/7.86, allocations: 79.97 kB / 2.948 GB, free: 58.14 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.576/12.44, allocations: 0.8432 GB / 3.791 GB, free: 27.81 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.816e-06/12.44, allocations: 1.531 kB / 3.791 GB, free: 27.81 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.00031/12.44, allocations: 69.11 kB / 3.791 GB, free: 27.8 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 472 * Number of variables: 472 Notification: Performance of Generate backend data structure: time 0.01954/12.46, allocations: 3.963 MB / 3.795 GB, free: 25.92 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.08e-05/12.46, allocations: 14.33 kB / 3.795 GB, free: 25.92 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001483/12.46, allocations: 270.3 kB / 3.795 GB, free: 25.87 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00885/12.47, allocations: 0.7622 MB / 3.796 GB, free: 25.75 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008909/12.48, allocations: 1.947 MB / 3.798 GB, free: 25.3 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003406/12.48, allocations: 161.3 kB / 3.798 GB, free: 25.3 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009307/12.48, allocations: 181.4 kB / 3.798 GB, free: 25.3 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01174/12.49, allocations: 3.288 MB / 3.802 GB, free: 24.83 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.765e-05/12.49, allocations: 9.453 kB / 3.802 GB, free: 24.83 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004066/12.49, allocations: 75.97 kB / 3.802 GB, free: 24.83 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002949/12.49, allocations: 143.2 kB / 3.802 GB, free: 24.83 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01202/12.5, allocations: 3.013 MB / 3.805 GB, free: 24.81 MB / 474.7 MB Warning: The model contains alias variables with redundant start and/or conflicting 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.02898/12.53, allocations: 14.03 MB / 3.818 GB, free: 16.3 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007946/12.54, allocations: 2.026 MB / 3.82 GB, free: 16.27 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05846/12.6, allocations: 18.85 MB / 3.839 GB, free: 20.41 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006283/12.6, allocations: 1.534 MB / 3.84 GB, free: 20.29 MB / 490.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001835/12.61, allocations: 169.9 kB / 3.84 GB, free: 20.21 MB / 490.7 MB Notification: Performance of pre-optimization done (n=142): time 6.251e-06/12.61, allocations: 0 / 3.84 GB, free: 20.21 MB / 490.7 MB Notification: Performance of matching and sorting (n=154): time 0.03691/12.64, allocations: 8.208 MB / 3.848 GB, free: 18.91 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001842/12.64, allocations: 261 kB / 3.849 GB, free: 18.62 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002971/12.65, allocations: 1.348 MB / 3.85 GB, free: 18.45 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005547/12.65, allocations: 55.02 kB / 3.85 GB, free: 18.41 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009696/12.65, allocations: 0.8998 MB / 3.851 GB, free: 18.04 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009073/12.65, allocations: 0.5237 MB / 3.851 GB, free: 17.71 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002466/12.65, allocations: 36.5 kB / 3.852 GB, free: 17.71 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002318/12.65, allocations: 375.1 kB / 3.852 GB, free: 17.41 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00322/12.65, allocations: 1.004 MB / 3.853 GB, free: 17.39 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003775/12.66, allocations: 1.41 MB / 3.854 GB, free: 16.95 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00389/12.66, allocations: 1.232 MB / 3.855 GB, free: 16.84 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.42e-05/12.66, allocations: 6.438 kB / 3.855 GB, free: 16.84 MB / 490.7 MB Notification: Performance of matching and sorting (n=226) (initialization): time 0.01143/12.67, allocations: 3.148 MB / 3.859 GB, free: 16.23 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001927/12.67, allocations: 4.367 MB / 3.863 GB, free: 11.5 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.091e-05/12.67, allocations: 10.72 kB / 3.863 GB, free: 11.5 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005141/12.68, allocations: 0.6111 MB / 3.863 GB, free: 11.37 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003571/12.68, allocations: 440 kB / 3.864 GB, free: 11.32 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003714/12.69, allocations: 2.838 MB / 3.867 GB, free: 8.957 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003789/12.69, allocations: 229 kB / 3.867 GB, free: 8.902 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006701/12.69, allocations: 91.25 kB / 3.867 GB, free: 8.887 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.599e-05/12.69, allocations: 5.312 kB / 3.867 GB, free: 8.887 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008817/12.7, allocations: 2.755 MB / 3.87 GB, free: 7.852 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.647e-05/12.7, allocations: 10.41 kB / 3.87 GB, free: 7.852 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001069/12.7, allocations: 205.8 kB / 3.87 GB, free: 7.785 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003615/12.7, allocations: 460.8 kB / 3.87 GB, free: 7.738 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001864/12.71, allocations: 1.878 MB / 3.872 GB, free: 6.043 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003538/12.71, allocations: 236.6 kB / 3.872 GB, free: 5.984 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004039/12.71, allocations: 95.92 kB / 3.872 GB, free: 5.965 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * Number of states: 0 () * Number of discrete variables: 27 (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,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,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,pipe3.state_b.phase,pipe2.state_b.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (205): * Single equations (assignments): 199 * 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.002012/12.71, allocations: 0.6978 MB / 3.873 GB, free: 5.504 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006036/12.71, allocations: 197.7 kB / 3.873 GB, free: 5.398 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01649/12.73, allocations: 7.444 MB / 3.881 GB, free: 2.176 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001252/12.73, allocations: 81.05 kB / 3.881 GB, free: 2.156 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.61e-05/12.73, allocations: 7.516 kB / 3.881 GB, free: 2.152 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01994/12.75, allocations: 6.558 MB / 3.887 GB, free: 14.56 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03317/12.78, allocations: 10.33 MB / 3.897 GB, free: 5.66 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.574e-05/12.78, allocations: 0 / 3.897 GB, free: 5.66 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003725/12.79, allocations: 328.7 kB / 3.897 GB, free: 5.395 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007397/12.79, allocations: 1.348 MB / 3.899 GB, free: 4.262 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005967/12.79, allocations: 58.92 kB / 3.899 GB, free: 4.211 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005741/12.8, allocations: 3.47 MB / 3.902 GB, free: 0.8516 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.288e-06/12.8, allocations: 0 / 3.902 GB, free: 0.8516 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4194/13.22, allocations: 7.234 MB / 3.909 GB, free: 58 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002399/13.22, allocations: 0.7034 MB / 3.91 GB, free: 57.9 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000852/13.22, allocations: 46.45 kB / 3.91 GB, free: 57.9 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003181/13.23, allocations: 187.1 kB / 3.91 GB, free: 57.9 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005185/13.23, allocations: 136.1 kB / 3.91 GB, free: 57.9 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000238/13.23, allocations: 68.08 kB / 3.91 GB, free: 57.9 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.00276/13.23, allocations: 1.14 MB / 3.911 GB, free: 57.76 MB / 0.4948 GB Notification: Performance of sort global known variables: time 5.01e-07/13.23, allocations: 0 / 3.911 GB, free: 57.76 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.0135/13.24, allocations: 2.672 MB / 3.914 GB, free: 57.76 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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: 53 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse24.phase,$cse24.region,$cse25.phase,$cse25.region,$cse27.phase,$cse27.region,$cse30.phase,$cse30.region,$cse32.region3boundary,$cse33.region3boundary,$cse34.phase,$cse34.region,$cse36.phase,$cse36.region,$cse37.region3boundary,$cse38.region3boundary,$cse39.phase,$cse39.region,$cse41.phase,$cse41.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,valveOpening2.a,valveOpening2.b,valveOpening2.last,valveOpening2.nextEvent) * Number of discrete states: 10 (valveOpening2.last,valveOpening2.nextEvent,valveOpening2.b,valveOpening2.a,$whenCondition2,valveOpening1.last,valveOpening1.nextEvent,valveOpening1.b,valveOpening1.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (164): * Single equations (assignments): 138 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 20 * 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.03143/13.27, allocations: 10.02 MB / 3.924 GB, free: 56.71 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01328/13.29, allocations: 4.727 MB / 3.928 GB, free: 56.4 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 9.689e-06/13.29, allocations: 0 / 3.928 GB, free: 56.4 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.00546/13.29, allocations: 2.255 MB / 3.931 GB, free: 56.26 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007845/13.3, allocations: 0.8895 MB / 3.932 GB, free: 56.25 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3875/13.69, allocations: 137.1 MB / 4.065 GB, free: 22.18 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003263/13.69, allocations: 2.175 MB / 4.068 GB, free: 20.55 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.006878/13.7, allocations: 2.17 MB / 4.07 GB, free: 19.27 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002887/13.7, allocations: 1.21 MB / 4.071 GB, free: 19.13 MB / 0.4948 GB Notification: Performance of SimCode: time 2.545e-06/13.7, allocations: 0 / 4.071 GB, free: 19.13 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.697/14.4, allocations: 109.5 MB / 4.178 GB, free: 47.93 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003833/14.4, allocations: 264 kB / 4.178 GB, free: 47.58 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.057/22.46, allocations: 0 / 4.178 GB, free: 47.58 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13_res.mat does not exist to compare? outputFormat=mat