Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.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.BranchingPipes3,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes3",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.01043/0.01043, 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.609/1.609, allocations: 170.8 MB / 186.6 MB, free: 1.125 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.002028/0.002027, allocations: 103 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.4286/0.4286, allocations: 38.05 MB / 303.7 MB, free: 42.39 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004708/0.0004708, allocations: 12 kB / 363 MB, free: 5.508 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09877/0.09928, allocations: 48.71 MB / 411.7 MB, free: 4.719 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.932/8.031, allocations: 2.563 GB / 2.965 GB, free: 41.45 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002814/8.031, allocations: 76.84 kB / 2.965 GB, free: 41.41 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.752/12.78, allocations: 0.8485 GB / 3.813 GB, free: 29.68 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.585e-06/12.78, allocations: 0 / 3.813 GB, free: 29.68 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0003022/12.78, allocations: 65.16 kB / 3.813 GB, free: 29.67 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.02025/12.8, allocations: 3.888 MB / 3.817 GB, free: 27.71 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.665e-05/12.8, allocations: 11.5 kB / 3.817 GB, free: 27.71 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001721/12.81, allocations: 275.7 kB / 3.817 GB, free: 27.66 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008811/12.81, allocations: 0.7671 MB / 3.818 GB, free: 27.53 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008324/12.82, allocations: 1.973 MB / 3.82 GB, free: 27.09 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000321/12.82, allocations: 165.3 kB / 3.82 GB, free: 27.09 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009608/12.82, allocations: 187.7 kB / 3.82 GB, free: 27.09 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0122/12.84, allocations: 3.252 MB / 3.824 GB, free: 26.59 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001083/12.84, allocations: 7.5 kB / 3.824 GB, free: 26.59 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005756/12.84, allocations: 85.17 kB / 3.824 GB, free: 26.59 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003122/12.84, allocations: 150.8 kB / 3.824 GB, free: 26.59 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01242/12.85, allocations: 2.932 MB / 3.827 GB, free: 26.57 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.02804/12.88, allocations: 13.88 MB / 3.84 GB, free: 18.02 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008429/12.89, allocations: 2.03 MB / 3.842 GB, free: 17.98 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05913/12.95, allocations: 18.78 MB / 3.861 GB, free: 21.99 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.008411/12.95, allocations: 1.585 MB / 3.862 GB, free: 21.84 MB / 490.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002981/12.96, allocations: 162.5 kB / 3.862 GB, free: 21.77 MB / 490.7 MB Notification: Performance of pre-optimization done (n=151): time 1.498e-05/12.96, allocations: 0 / 3.862 GB, free: 21.77 MB / 490.7 MB Notification: Performance of matching and sorting (n=163): time 0.05118/13.01, allocations: 8.303 MB / 3.87 GB, free: 18.84 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001994/13.01, allocations: 262 kB / 3.871 GB, free: 18.55 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002709/13.01, allocations: 1.275 MB / 3.872 GB, free: 18.07 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006247/13.01, allocations: 56.91 kB / 3.872 GB, free: 18.02 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009941/13.01, allocations: 0.8934 MB / 3.873 GB, free: 17.32 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009393/13.01, allocations: 0.5487 MB / 3.873 GB, free: 16.9 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002396/13.01, allocations: 35.66 kB / 3.873 GB, free: 16.87 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002422/13.01, allocations: 378.7 kB / 3.874 GB, free: 16.54 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003229/13.02, allocations: 1.012 MB / 3.875 GB, free: 16.2 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003843/13.02, allocations: 1.44 MB / 3.876 GB, free: 15.38 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003855/13.03, allocations: 1.244 MB / 3.877 GB, free: 14.85 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.492e-05/13.03, allocations: 3.375 kB / 3.877 GB, free: 14.85 MB / 490.7 MB Notification: Performance of matching and sorting (n=232) (initialization): time 0.01095/13.04, allocations: 3.137 MB / 3.88 GB, free: 13.65 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00174/13.04, allocations: 4.361 MB / 3.885 GB, free: 8.918 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.431e-05/13.04, allocations: 11.44 kB / 3.885 GB, free: 8.918 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004556/13.04, allocations: 0.5285 MB / 3.885 GB, free: 8.801 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003734/13.05, allocations: 459.1 kB / 3.886 GB, free: 8.75 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002929/13.05, allocations: 2.701 MB / 3.888 GB, free: 6.43 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004652/13.05, allocations: 259.2 kB / 3.889 GB, free: 6.352 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008349/13.06, allocations: 102.2 kB / 3.889 GB, free: 6.262 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.807e-05/13.06, allocations: 4 kB / 3.889 GB, free: 6.258 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00982/13.07, allocations: 2.764 MB / 3.891 GB, free: 3.836 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.78e-05/13.07, allocations: 12.16 kB / 3.891 GB, free: 3.824 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001118/13.07, allocations: 211.6 kB / 3.892 GB, free: 3.652 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003927/13.07, allocations: 475.8 kB / 3.892 GB, free: 3.258 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001728/13.07, allocations: 1.874 MB / 3.894 GB, free: 1.383 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004053/13.08, allocations: 266.4 kB / 3.894 GB, free: 1.176 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005466/13.08, allocations: 94.69 kB / 3.894 GB, free: 1.094 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 (valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.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_a.phase,pipe3.state_b.phase,pipe2.state_a.phase,pipe2.state_b.phase,pipe1.state_a.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 (215): * Single equations (assignments): 209 * 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 5} Notification: Performance of prepare postOptimizeDAE: time 0.002625/13.08, allocations: 0.7096 MB / 3.895 GB, free: 436 kB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007432/13.08, allocations: 189.8 kB / 3.895 GB, free: 244 kB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.4108/13.49, allocations: 7.513 MB / 3.902 GB, free: 44.23 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.068e-05/13.49, allocations: 78.11 kB / 3.902 GB, free: 44.23 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.119e-05/13.49, allocations: 3.234 kB / 3.902 GB, free: 44.23 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01343/13.5, allocations: 6.518 MB / 3.909 GB, free: 43.31 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02636/13.53, allocations: 11.21 MB / 3.92 GB, free: 42.31 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.78e-05/13.53, allocations: 5.406 kB / 3.92 GB, free: 42.31 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00278/13.53, allocations: 354.6 kB / 3.92 GB, free: 42.31 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004295/13.54, allocations: 1.184 MB / 3.921 GB, free: 42.26 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004829/13.54, allocations: 65.25 kB / 3.921 GB, free: 42.26 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002993/13.54, allocations: 3.195 MB / 3.924 GB, free: 40.18 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.125e-06/13.54, allocations: 6.531 kB / 3.924 GB, free: 40.18 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01561/13.56, allocations: 7.458 MB / 3.932 GB, free: 39.01 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002181/13.56, allocations: 0.7029 MB / 3.932 GB, free: 38.75 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009581/13.56, allocations: 55.06 kB / 3.932 GB, free: 38.75 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003447/13.56, allocations: 186.1 kB / 3.933 GB, free: 38.75 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007503/13.57, allocations: 150.9 kB / 3.933 GB, free: 38.74 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002624/13.57, allocations: 76.36 kB / 3.933 GB, free: 38.74 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002474/13.57, allocations: 1.082 MB / 3.934 GB, free: 38.59 MB / 490.7 MB Notification: Performance of sort global known variables: time 4.61e-07/13.57, allocations: 1.531 kB / 3.934 GB, free: 38.59 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01178/13.58, allocations: 2.579 MB / 3.936 GB, free: 38.59 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * 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 (177): * Single equations (assignments): 151 * 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 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.03033/13.61, allocations: 11.52 MB / 3.948 GB, free: 35.66 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01211/13.62, allocations: 4.742 MB / 3.952 GB, free: 35.34 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.214e-05/13.62, allocations: 3.031 kB / 3.952 GB, free: 35.34 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005403/13.63, allocations: 2.456 MB / 3.955 GB, free: 35.2 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007558/13.64, allocations: 0.9033 MB / 3.956 GB, free: 35.18 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.7613/14.4, allocations: 137.2 MB / 4.09 GB, free: 47.5 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003681/14.4, allocations: 2.182 MB / 4.092 GB, free: 46.74 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.00757/14.41, allocations: 2.255 MB / 4.094 GB, free: 46.7 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003056/14.41, allocations: 1.221 MB / 4.095 GB, free: 46.7 MB / 0.4948 GB Notification: Performance of SimCode: time 1.182e-06/14.41, allocations: 1.031 kB / 4.095 GB, free: 46.7 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2874/14.7, allocations: 108.1 MB / 4.201 GB, free: 36.55 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002001/14.7, allocations: 265 kB / 4.201 GB, free: 36.21 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.482/22.18, allocations: 0 / 4.201 GB, free: 36.21 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3_res.mat does not exist to compare? outputFormat=mat