Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16.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.BranchingPipes16,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes16",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.01363/0.01363, allocations: 161.4 kB / 15.11 MB, free: 5.953 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.856/1.856, allocations: 170.8 MB / 186.6 MB, free: 1.109 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.001793/0.001793, allocations: 106.8 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.5107/0.5107, allocations: 38.05 MB / 303.7 MB, free: 42.38 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007/0.0007003, allocations: 12 kB / 363 MB, free: 5.488 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1446/0.1453, allocations: 48.72 MB / 411.7 MB, free: 4.691 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16): time 1.029/1.174, allocations: 229.1 MB / 0.6258 GB, free: 4.133 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.04071/1.215, allocations: 18.23 MB / 0.6436 GB, free: 3.766 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004362/1.22, allocations: 106.5 kB / 0.6437 GB, free: 3.766 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004234/1.224, allocations: 0.7979 MB / 0.6444 GB, free: 3.75 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.0189/1.243, allocations: 4.308 MB / 0.6486 GB, free: 3.543 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02255/1.265, allocations: 5.211 MB / 0.6537 GB, free: 2.305 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.01256/1.278, allocations: 7.955 MB / 0.6615 GB, free: 0.5117 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003445/1.282, allocations: 1.236 MB / 0.6627 GB, free: 15.99 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006817/1.288, allocations: 2.103 MB / 0.6648 GB, free: 15.65 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006981/1.295, allocations: 2.419 MB / 0.6671 GB, free: 15.13 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001199/1.297, allocations: 108.8 kB / 0.6672 GB, free: 15.13 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01304/1.31, allocations: 3.326 MB / 0.6705 GB, free: 14.4 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002466/1.312, allocations: 0.806 MB / 0.6713 GB, free: 14.12 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001876/1.314, allocations: 470 kB / 0.6717 GB, free: 13.85 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0114/1.326, allocations: 3.914 MB / 0.6755 GB, free: 10.54 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.927e-06/1.326, allocations: 0 / 0.6755 GB, free: 10.54 MB / 442.7 MB Notification: Performance of FrontEnd: time 3.065e-06/1.326, allocations: 1.75 kB / 0.6755 GB, free: 10.54 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001407/1.326, allocations: 0 / 0.6755 GB, free: 10.54 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: 423 * Number of variables: 423 Notification: Performance of Generate backend data structure: time 0.01207/1.338, allocations: 2.948 MB / 0.6784 GB, free: 7.742 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.455e-05/1.338, allocations: 12.03 kB / 0.6784 GB, free: 7.73 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009963/1.339, allocations: 245.6 kB / 0.6787 GB, free: 7.582 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004303/1.343, allocations: 438.4 kB / 0.6791 GB, free: 7.18 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006468/1.35, allocations: 1.857 MB / 0.6809 GB, free: 5.809 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002151/1.35, allocations: 130.6 kB / 0.681 GB, free: 5.734 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007424/1.351, allocations: 166.7 kB / 0.6812 GB, free: 5.625 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007497/1.359, allocations: 2.508 MB / 0.6836 GB, free: 3.746 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.994e-05/1.359, allocations: 11.64 kB / 0.6836 GB, free: 3.742 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003491/1.359, allocations: 66.45 kB / 0.6837 GB, free: 3.727 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004357/1.359, allocations: 196 kB / 0.6839 GB, free: 3.559 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007087/1.367, allocations: 2.207 MB / 0.686 GB, free: 2.078 MB / 442.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.02647/1.393, allocations: 10.72 MB / 0.6965 GB, free: 8.52 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005529/1.399, allocations: 1.771 MB / 0.6982 GB, free: 7.18 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003164/1.402, allocations: 1.028 MB / 0.6992 GB, free: 6.504 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004452/1.406, allocations: 2.431 MB / 0.7016 GB, free: 3.809 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003361/1.41, allocations: 1.144 MB / 0.7027 GB, free: 2.953 MB / 458.7 MB Notification: Performance of pre-optimization done (n=158): time 5.891e-06/1.41, allocations: 0 / 0.7027 GB, free: 2.953 MB / 458.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 Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=181): time 0.04807/1.458, allocations: 10.51 MB / 0.713 GB, free: 10.73 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001424/1.458, allocations: 178.3 kB / 0.7132 GB, free: 10.52 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003066/1.461, allocations: 1.478 MB / 0.7146 GB, free: 9.402 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006006/1.462, allocations: 62.08 kB / 0.7147 GB, free: 9.359 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00109/1.463, allocations: 0.8934 MB / 0.7155 GB, free: 8.809 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001222/1.464, allocations: 0.6153 MB / 0.7161 GB, free: 8.281 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002795/1.465, allocations: 40.62 kB / 0.7162 GB, free: 8.273 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002588/1.465, allocations: 388.2 kB / 0.7165 GB, free: 7.922 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003269/1.468, allocations: 1.008 MB / 0.7175 GB, free: 7.242 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004099/1.472, allocations: 1.514 MB / 0.719 GB, free: 5.93 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004007/1.476, allocations: 1.284 MB / 0.7203 GB, free: 5.094 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.634e-05/1.476, allocations: 8 kB / 0.7203 GB, free: 5.086 MB / 474.7 MB Notification: Performance of matching and sorting (n=271) (initialization): time 0.01031/1.487, allocations: 3.112 MB / 0.7233 GB, free: 2.867 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005003/1.487, allocations: 0.5348 MB / 0.7238 GB, free: 2.199 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.081e-05/1.487, allocations: 12 kB / 0.7238 GB, free: 2.188 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008273/1.488, allocations: 193.3 kB / 0.724 GB, free: 2.012 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004964/1.493, allocations: 0.5645 MB / 0.7246 GB, free: 1.496 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002419/1.496, allocations: 2.332 MB / 0.7269 GB, free: 15.15 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004033/1.5, allocations: 208.5 kB / 0.7271 GB, free: 14.98 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008896/1.501, allocations: 191.9 kB / 0.7272 GB, free: 14.81 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.702e-05/1.501, allocations: 4 kB / 0.7272 GB, free: 14.81 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009154/1.51, allocations: 2.858 MB / 0.73 GB, free: 12.86 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.465e-05/1.51, allocations: 16 kB / 0.7301 GB, free: 12.84 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007017/1.511, allocations: 191.8 kB / 0.7302 GB, free: 12.67 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004716/1.515, allocations: 0.5525 MB / 0.7308 GB, free: 12.16 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002253/1.518, allocations: 2.337 MB / 0.7331 GB, free: 9.816 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003693/1.521, allocations: 204.1 kB / 0.7332 GB, free: 9.648 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007725/1.522, allocations: 189 kB / 0.7334 GB, free: 9.484 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 58 * 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 (259): * Single equations (assignments): 253 * 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,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.002261/1.525, allocations: 0.6893 MB / 0.7341 GB, free: 8.98 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007534/1.525, allocations: 203.3 kB / 0.7343 GB, free: 8.781 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01327/1.539, allocations: 3.493 MB / 0.7377 GB, free: 6.246 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.156e-05/1.539, allocations: 20 kB / 0.7377 GB, free: 6.227 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.187e-05/1.539, allocations: 0 / 0.7377 GB, free: 6.227 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007862/1.547, allocations: 2.728 MB / 0.7404 GB, free: 3.969 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02236/1.569, allocations: 7.452 MB / 0.7477 GB, free: 12.2 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.539e-05/1.569, allocations: 4 kB / 0.7477 GB, free: 12.19 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003874/1.573, allocations: 444.5 kB / 0.7481 GB, free: 11.78 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007959/1.574, allocations: 190.4 kB / 0.7483 GB, free: 11.58 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004921/1.574, allocations: 105.8 kB / 0.7484 GB, free: 11.48 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002964/1.577, allocations: 3.078 MB / 0.7514 GB, free: 8.199 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.638e-06/1.577, allocations: 6.812 kB / 0.7514 GB, free: 8.195 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01209/1.589, allocations: 4.209 MB / 0.7555 GB, free: 3.875 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002104/1.592, allocations: 0.5178 MB / 0.756 GB, free: 3.336 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007519/1.592, allocations: 59.98 kB / 0.7561 GB, free: 3.277 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002758/1.595, allocations: 130.5 kB / 0.7562 GB, free: 3.152 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006915/1.596, allocations: 170.1 kB / 0.7564 GB, free: 2.992 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005029/1.596, allocations: 167.9 kB / 0.7565 GB, free: 2.828 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.002354/1.599, allocations: 0.9723 MB / 0.7575 GB, free: 1.863 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.202e-06/1.599, allocations: 0 / 0.7575 GB, free: 1.863 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.008054/1.607, allocations: 1.652 MB / 0.7591 GB, free: 216 kB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * Number of states: 8 (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) * 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 (196): * Single equations (assignments): 190 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 3 {1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.0178/1.625, allocations: 5.862 MB / 0.7648 GB, free: 10.34 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01349/1.638, allocations: 4.288 MB / 0.769 GB, free: 6.121 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.735e-05/1.638, allocations: 5.719 kB / 0.769 GB, free: 6.117 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.004253/1.643, allocations: 1.508 MB / 0.7705 GB, free: 4.625 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00895/1.652, allocations: 0.9404 MB / 0.7714 GB, free: 3.688 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3186/1.97, allocations: 15.64 MB / 0.7867 GB, free: 218.7 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001821/1.972, allocations: 1.717 MB / 0.7883 GB, free: 218 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.009709/1.982, allocations: 1.377 MB / 0.7897 GB, free: 217.9 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00337/1.985, allocations: 0.9791 MB / 0.7906 GB, free: 217.8 MB / 0.5105 GB Notification: Performance of SimCode: time 1.122e-06/1.985, allocations: 0 / 0.7906 GB, free: 217.8 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.193/2.178, allocations: 74.72 MB / 0.8636 GB, free: 168.7 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000339/2.179, allocations: 259.6 kB / 0.8638 GB, free: 168.3 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.204/8.383, allocations: 3.938 kB / 0.8638 GB, free: 168.3 MB / 0.5105 GB