Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.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.BranchingPipes12,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes12",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.009846/0.00985, allocations: 165.2 kB / 15.11 MB, free: 5.98 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.654/1.654, allocations: 170.8 MB / 186.6 MB, free: 1.129 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.002024/0.002024, allocations: 102.5 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.05 MB / 303.7 MB, free: 42.43 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004809/0.000481, allocations: 20 kB / 363 MB, free: 5.512 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1115/0.112, allocations: 48.69 MB / 411.7 MB, free: 4.742 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.816/7.928, allocations: 2.545 GB / 2.947 GB, free: 64.99 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003529/7.928, allocations: 78.78 kB / 2.947 GB, free: 64.95 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.386/12.31, allocations: 0.7842 GB / 3.732 GB, free: 30.18 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.504e-06/12.31, allocations: 1.281 kB / 3.732 GB, free: 30.18 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0003228/12.31, allocations: 68.81 kB / 3.732 GB, free: 30.17 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: 514 * Number of variables: 514 Notification: Performance of Generate backend data structure: time 0.02104/12.34, allocations: 4.13 MB / 3.736 GB, free: 28.34 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.932e-05/12.34, allocations: 10.12 kB / 3.736 GB, free: 28.34 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00137/12.34, allocations: 298.8 kB / 3.736 GB, free: 28.29 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00858/12.35, allocations: 0.8122 MB / 3.737 GB, free: 28.15 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008613/12.35, allocations: 2.165 MB / 3.739 GB, free: 27.7 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002998/12.35, allocations: 180.5 kB / 3.739 GB, free: 27.69 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009035/12.36, allocations: 190.3 kB / 3.739 GB, free: 27.69 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01249/12.37, allocations: 3.712 MB / 3.743 GB, free: 27.14 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.214e-05/12.37, allocations: 3.75 kB / 3.743 GB, free: 27.14 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004494/12.37, allocations: 94.73 kB / 3.743 GB, free: 27.14 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000299/12.37, allocations: 161.9 kB / 3.743 GB, free: 27.13 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0138/12.38, allocations: 3.538 MB / 3.747 GB, free: 27.12 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.02851/12.41, allocations: 14.74 MB / 3.761 GB, free: 18.52 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008356/12.42, allocations: 2.201 MB / 3.763 GB, free: 18.48 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.071/12.49, allocations: 18.86 MB / 3.782 GB, free: 22.65 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.009755/12.5, allocations: 1.66 MB / 3.783 GB, free: 22.52 MB / 490.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002516/12.5, allocations: 191.8 kB / 3.783 GB, free: 22.44 MB / 490.7 MB Notification: Performance of pre-optimization done (n=158): time 1.114e-05/12.5, allocations: 0 / 3.783 GB, free: 22.44 MB / 490.7 MB Notification: Performance of matching and sorting (n=170): time 0.06123/12.56, allocations: 9.157 MB / 3.792 GB, free: 21.17 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003278/12.56, allocations: 419.3 kB / 3.793 GB, free: 20.7 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01332/12.58, allocations: 1.501 MB / 3.794 GB, free: 20.52 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000691/12.58, allocations: 58.36 kB / 3.794 GB, free: 20.49 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001549/12.58, allocations: 0.989 MB / 3.795 GB, free: 20.1 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00131/12.58, allocations: 0.5779 MB / 3.796 GB, free: 19.73 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003919/12.58, allocations: 43.34 kB / 3.796 GB, free: 19.73 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0003044/12.58, allocations: 391.8 kB / 3.796 GB, free: 19.43 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.014/12.6, allocations: 1.148 MB / 3.797 GB, free: 19.42 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0142/12.61, allocations: 1.627 MB / 3.799 GB, free: 18.91 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005828/12.62, allocations: 1.404 MB / 3.8 GB, free: 18.83 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.574e-05/12.62, allocations: 3.188 kB / 3.8 GB, free: 18.83 MB / 490.7 MB Notification: Performance of matching and sorting (n=259) (initialization): time 0.01207/12.63, allocations: 3.533 MB / 3.804 GB, free: 18.55 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002017/12.63, allocations: 4.58 MB / 3.808 GB, free: 13.75 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.259e-05/12.63, allocations: 17.77 kB / 3.808 GB, free: 13.75 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008738/12.64, allocations: 0.9871 MB / 3.809 GB, free: 13.71 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003908/12.64, allocations: 469.6 kB / 3.81 GB, free: 13.71 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004415/12.65, allocations: 3.168 MB / 3.813 GB, free: 11.62 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004056/12.65, allocations: 233.3 kB / 3.813 GB, free: 11.61 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007176/12.65, allocations: 106.7 kB / 3.813 GB, free: 11.61 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.437e-05/12.65, allocations: 6.25 kB / 3.813 GB, free: 11.61 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0112/12.66, allocations: 3.201 MB / 3.816 GB, free: 11.46 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.867e-05/12.66, allocations: 12.22 kB / 3.816 GB, free: 11.46 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002245/12.67, allocations: 368.3 kB / 3.816 GB, free: 11.43 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004125/12.67, allocations: 492.6 kB / 3.817 GB, free: 11.43 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006102/12.68, allocations: 4.12 MB / 3.821 GB, free: 8.602 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0038/12.68, allocations: 237.8 kB / 3.821 GB, free: 8.586 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007722/12.68, allocations: 102 kB / 3.821 GB, free: 8.586 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * 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_b.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) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (223): * Single equations (assignments): 213 * 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.002469/12.68, allocations: 0.7572 MB / 3.822 GB, free: 8.324 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007105/12.69, allocations: 209.6 kB / 3.822 GB, free: 8.219 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01735/12.7, allocations: 7.852 MB / 3.83 GB, free: 7.477 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001034/12.7, allocations: 82.31 kB / 3.83 GB, free: 7.477 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.574e-06/12.7, allocations: 2.25 kB / 3.83 GB, free: 7.477 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01388/12.72, allocations: 6.884 MB / 3.837 GB, free: 22.56 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02759/12.74, allocations: 10.89 MB / 3.847 GB, free: 21.78 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.692e-05/12.74, allocations: 5.688 kB / 3.847 GB, free: 21.78 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004051/12.75, allocations: 347.6 kB / 3.848 GB, free: 21.78 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0107/12.76, allocations: 2.146 MB / 3.85 GB, free: 21.68 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006448/12.76, allocations: 65.64 kB / 3.85 GB, free: 21.68 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006916/12.77, allocations: 4.11 MB / 3.854 GB, free: 19.57 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.797e-06/12.77, allocations: 0 / 3.854 GB, free: 19.57 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02416/12.79, allocations: 7.957 MB / 3.862 GB, free: 17 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003051/12.79, allocations: 0.7493 MB / 3.862 GB, free: 16.54 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009601/12.8, allocations: 52.38 kB / 3.862 GB, free: 16.51 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003783/12.8, allocations: 195.4 kB / 3.863 GB, free: 16.47 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005766/12.8, allocations: 135.3 kB / 3.863 GB, free: 16.45 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003123/12.8, allocations: 69.77 kB / 3.863 GB, free: 16.44 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.003832/12.8, allocations: 1.256 MB / 3.864 GB, free: 15.96 MB / 0.4948 GB Notification: Performance of sort global known variables: time 6.41e-07/12.8, allocations: 0 / 3.864 GB, free: 15.96 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01456/12.82, allocations: 2.806 MB / 3.867 GB, free: 15.36 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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: 53 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse21.phase,$cse21.region,$cse22.phase,$cse22.region,$cse27.phase,$cse27.region,$cse28.phase,$cse28.region,$cse30.phase,$cse30.region,$cse33.phase,$cse33.region,$cse35.region3boundary,$cse36.region3boundary,$cse37.phase,$cse37.region,$cse39.phase,$cse39.region,$cse41.region3boundary,$cse42.region3boundary,$cse43.phase,$cse43.region,$cse45.phase,$cse45.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 (168): * Single equations (assignments): 143 * 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,3 28} Notification: Performance of Backend phase and start with SimCode phase: time 0.03159/12.85, allocations: 10.49 MB / 3.877 GB, free: 11.15 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01574/12.87, allocations: 5.468 MB / 3.882 GB, free: 9.023 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 7.444e-06/12.87, allocations: 0 / 3.882 GB, free: 9.023 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.005977/12.87, allocations: 2.38 MB / 3.885 GB, free: 7.992 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007904/12.88, allocations: 0.9031 MB / 3.886 GB, free: 7.766 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.8488/13.73, allocations: 138.6 MB / 4.021 GB, free: 34.47 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003614/13.73, allocations: 2.293 MB / 4.023 GB, free: 33.66 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.00794/13.74, allocations: 2.19 MB / 4.025 GB, free: 33.59 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003249/13.74, allocations: 1.301 MB / 4.027 GB, free: 33.58 MB / 0.4948 GB Notification: Performance of SimCode: time 1.312e-06/13.74, allocations: 4 kB / 4.027 GB, free: 33.58 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6511/14.39, allocations: 115 MB / 4.139 GB, free: 50.27 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002562/14.39, allocations: 263.7 kB / 4.139 GB, free: 49.91 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.284/22.68, allocations: 0 / 4.139 GB, free: 49.91 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12_res.mat does not exist to compare? outputFormat=mat