Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.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.BranchingPipes17,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes17",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.014/0.01401, allocations: 162.5 kB / 15.12 MB, free: 6.035 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.85/1.85, allocations: 170.8 MB / 186.6 MB, free: 1.113 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.001826/0.001826, allocations: 114.7 kB / 226.2 MB, free: 10.08 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.4828/0.4828, allocations: 38.05 MB / 303.7 MB, free: 42.38 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004719/0.0004721, allocations: 16 kB / 363 MB, free: 5.484 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1116/0.1121, allocations: 48.7 MB / 411.7 MB, free: 4.699 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17): time 1.076/1.188, allocations: 239.3 MB / 0.6358 GB, free: 4.043 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.04334/1.231, allocations: 18.55 MB / 0.6539 GB, free: 3.66 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004432/1.236, allocations: 110.8 kB / 0.654 GB, free: 3.66 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004391/1.24, allocations: 0.8602 MB / 0.6548 GB, free: 3.641 MB / 426.7 MB [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/Fluid/Sources.mo:772:36-773:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/Fluid/Sources.mo:770:36-771:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/Fluid/Sources.mo:772:36-773:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/Fluid/Sources.mo:770:36-771:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.02/1.26, allocations: 4.74 MB / 0.6595 GB, free: 2.629 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02348/1.284, allocations: 5.32 MB / 0.6647 GB, free: 1.098 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.01649/1.301, allocations: 8.619 MB / 0.6731 GB, free: 15.74 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004083/1.305, allocations: 1.318 MB / 0.6744 GB, free: 15.2 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007654/1.312, allocations: 2.247 MB / 0.6766 GB, free: 14.83 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007987/1.32, allocations: 2.538 MB / 0.679 GB, free: 13.82 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00156/1.322, allocations: 112 kB / 0.6791 GB, free: 13.71 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01437/1.336, allocations: 3.598 MB / 0.6827 GB, free: 11.01 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002509/1.339, allocations: 0.8389 MB / 0.6835 GB, free: 10.44 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002016/1.341, allocations: 0.4901 MB / 0.684 GB, free: 10.15 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01197/1.353, allocations: 4.166 MB / 0.688 GB, free: 6.629 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.227e-06/1.353, allocations: 1.5 kB / 0.688 GB, free: 6.629 MB / 442.7 MB Notification: Performance of FrontEnd: time 3.206e-06/1.353, allocations: 0 / 0.688 GB, free: 6.629 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001423/1.353, allocations: 0 / 0.688 GB, free: 6.629 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 448 * Number of variables: 448 Notification: Performance of Generate backend data structure: time 0.01293/1.366, allocations: 3.095 MB / 0.6911 GB, free: 3.703 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.825e-05/1.366, allocations: 12.03 kB / 0.6911 GB, free: 3.691 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001119/1.367, allocations: 253 kB / 0.6913 GB, free: 3.543 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004646/1.372, allocations: 443.6 kB / 0.6917 GB, free: 3.129 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00696/1.379, allocations: 1.927 MB / 0.6936 GB, free: 1.707 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002497/1.38, allocations: 142.4 kB / 0.6937 GB, free: 1.629 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008812/1.38, allocations: 167 kB / 0.6939 GB, free: 1.52 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008832/1.389, allocations: 2.635 MB / 0.6965 GB, free: 15.55 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.008e-05/1.389, allocations: 7.656 kB / 0.6965 GB, free: 15.55 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006751/1.39, allocations: 79.11 kB / 0.6966 GB, free: 15.53 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004667/1.391, allocations: 191 kB / 0.6967 GB, free: 15.36 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00816/1.399, allocations: 2.304 MB / 0.699 GB, free: 13.82 MB / 458.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.02889/1.428, allocations: 11.26 MB / 0.71 GB, free: 3.781 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005858/1.434, allocations: 1.844 MB / 0.7118 GB, free: 2.398 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003301/1.437, allocations: 1.073 MB / 0.7128 GB, free: 1.699 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004502/1.442, allocations: 2.44 MB / 0.7152 GB, free: 15 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004002/1.446, allocations: 1.189 MB / 0.7164 GB, free: 14.11 MB / 474.7 MB Notification: Performance of pre-optimization done (n=168): time 1.064e-05/1.446, allocations: 4 kB / 0.7164 GB, free: 14.11 MB / 474.7 MB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: pipe1.mediums[1].T 2: pipe2.mediums[1].T 3: pipe3.mediums[1].T 4: junctionIdeal.medium.T 5: junctionVolume.medium.T Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=196): time 0.05903/1.505, allocations: 11.71 MB / 0.7278 GB, free: 4.883 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001638/1.505, allocations: 176.2 kB / 0.728 GB, free: 4.672 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003484/1.509, allocations: 1.542 MB / 0.7295 GB, free: 3.508 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006874/1.509, allocations: 69.33 kB / 0.7296 GB, free: 3.461 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001412/1.511, allocations: 0.9432 MB / 0.7305 GB, free: 2.52 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001307/1.512, allocations: 0.6694 MB / 0.7311 GB, free: 1.859 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000335/1.512, allocations: 44 kB / 0.7312 GB, free: 1.816 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002788/1.513, allocations: 394.5 kB / 0.7316 GB, free: 1.426 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003819/1.517, allocations: 1.062 MB / 0.7326 GB, free: 372 kB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004613/1.521, allocations: 1.606 MB / 0.7342 GB, free: 14.55 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004558/1.526, allocations: 1.356 MB / 0.7355 GB, free: 13.2 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-05/1.526, allocations: 4 kB / 0.7355 GB, free: 13.19 MB / 490.7 MB Notification: Performance of matching and sorting (n=293) (initialization): time 0.01242/1.538, allocations: 3.362 MB / 0.7388 GB, free: 9.879 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006193/1.539, allocations: 0.5703 MB / 0.7393 GB, free: 9.105 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.536e-05/1.539, allocations: 16 kB / 0.7394 GB, free: 9.09 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001451/1.541, allocations: 307.1 kB / 0.7396 GB, free: 8.777 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005112/1.546, allocations: 0.5809 MB / 0.7402 GB, free: 8.227 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003276/1.549, allocations: 3.025 MB / 0.7432 GB, free: 5.09 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00427/1.553, allocations: 211.9 kB / 0.7434 GB, free: 4.883 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009695/1.554, allocations: 211.9 kB / 0.7436 GB, free: 4.676 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.912e-05/1.554, allocations: 8 kB / 0.7436 GB, free: 4.668 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01147/1.566, allocations: 3.083 MB / 0.7466 GB, free: 1.652 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.738e-05/1.566, allocations: 16 kB / 0.7466 GB, free: 1.637 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001353/1.567, allocations: 307.7 kB / 0.7469 GB, free: 1.324 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004947/1.572, allocations: 0.576 MB / 0.7475 GB, free: 0.7773 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003278/1.576, allocations: 3.011 MB / 0.7504 GB, free: 13.65 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004089/1.58, allocations: 215.8 kB / 0.7506 GB, free: 13.44 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009485/1.581, allocations: 204 kB / 0.7508 GB, free: 13.24 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 64 * Number of states: 0 () * Number of discrete variables: 12 ($whenCondition1,$whenCondition2,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (274): * Single equations (assignments): 267 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {1 1,1 1,1 1,1 7,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.002564/1.584, allocations: 0.7093 MB / 0.7515 GB, free: 12.54 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000789/1.584, allocations: 217.3 kB / 0.7517 GB, free: 12.33 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0158/1.6, allocations: 3.764 MB / 0.7554 GB, free: 8.523 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.067e-05/1.6, allocations: 23.98 kB / 0.7554 GB, free: 8.5 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.725e-05/1.6, allocations: 4 kB / 0.7554 GB, free: 8.492 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009546/1.61, allocations: 2.915 MB / 0.7582 GB, free: 5.473 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02403/1.634, allocations: 6.941 MB / 0.765 GB, free: 14.37 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.6e-05/1.634, allocations: 4 kB / 0.765 GB, free: 14.36 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004059/1.638, allocations: 458.4 kB / 0.7655 GB, free: 13.94 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00167/1.64, allocations: 316.3 kB / 0.7658 GB, free: 13.61 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006577/1.641, allocations: 115.3 kB / 0.7659 GB, free: 13.5 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00425/1.645, allocations: 3.745 MB / 0.7695 GB, free: 9.535 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-05/1.645, allocations: 8 kB / 0.7695 GB, free: 9.527 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01424/1.659, allocations: 4.469 MB / 0.7739 GB, free: 4.957 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002356/1.662, allocations: 0.5489 MB / 0.7744 GB, free: 4.387 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009709/1.663, allocations: 59.98 kB / 0.7745 GB, free: 4.328 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003164/1.666, allocations: 127.9 kB / 0.7746 GB, free: 4.203 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008113/1.667, allocations: 180.5 kB / 0.7748 GB, free: 4.031 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006371/1.667, allocations: 179.9 kB / 0.775 GB, free: 3.855 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.002608/1.67, allocations: 1.019 MB / 0.776 GB, free: 2.848 MB / 0.5105 GB Notification: Performance of sort global known variables: time 6.11e-07/1.67, allocations: 0 / 0.776 GB, free: 2.848 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.008542/1.679, allocations: 1.746 MB / 0.7777 GB, free: 1.102 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 26 * Number of states: 9 (pipe1.mediums[1].p,pipe1.mediums[1].T,pipe2.mediums[1].p,pipe2.mediums[1].T,pipe3.mediums[1].p,pipe3.mediums[1].T,junctionIdeal.medium.p,junctionIdeal.medium.T,junctionVolume.medium.T) * Number of discrete variables: 10 ($whenCondition1,$whenCondition2,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 (205): * Single equations (assignments): 198 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 4 {1 6,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.3092/1.988, allocations: 6.145 MB / 0.7837 GB, free: 222.3 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01359/2.001, allocations: 4.554 MB / 0.7881 GB, free: 222 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.444e-05/2.002, allocations: 0 / 0.7881 GB, free: 222 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.004509/2.006, allocations: 1.589 MB / 0.7897 GB, free: 221.7 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009365/2.015, allocations: 1.071 MB / 0.7907 GB, free: 221.4 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04579/2.061, allocations: 16.65 MB / 0.807 GB, free: 212.7 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002099/2.063, allocations: 1.76 MB / 0.8087 GB, free: 211.9 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.009853/2.073, allocations: 1.42 MB / 0.8101 GB, free: 211.5 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003437/2.077, allocations: 1.025 MB / 0.8111 GB, free: 210.8 MB / 0.5105 GB Notification: Performance of SimCode: time 9.32e-07/2.077, allocations: 0 / 0.8111 GB, free: 210.8 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2093/2.286, allocations: 80.9 MB / 0.8901 GB, free: 145.7 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002596/2.287, allocations: 271.6 kB / 0.8903 GB, free: 145.3 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.666/8.952, allocations: 0 / 0.8903 GB, free: 145.3 MB / 0.5105 GB