Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.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.SeriesPipes2,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes2",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.009244/0.009249, allocations: 162 kB / 15.12 MB, free: 6.027 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.735/1.735, 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.001794/0.001794, allocations: 109.9 kB / 226.2 MB, free: 10.1 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.436/0.436, allocations: 38.05 MB / 303.7 MB, free: 42.43 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005032/0.0005035, allocations: 16 kB / 363 MB, free: 5.492 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1074/0.108, allocations: 48.71 MB / 411.7 MB, free: 4.703 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2): time 0.3903/0.4983, allocations: 61.42 MB / 473.1 MB, free: 14.55 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.05375/0.5522, allocations: 27.71 MB / 0.4891 GB, free: 11.25 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002523/0.5547, allocations: 67.34 kB / 0.4892 GB, free: 11.22 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003148/0.5579, allocations: 0.6801 MB / 0.4898 GB, free: 10.87 MB / 346.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.02196/0.5799, allocations: 5.347 MB / 0.495 GB, free: 7.543 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02292/0.6029, allocations: 5.518 MB / 0.5004 GB, free: 3.75 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.009039/0.6119, allocations: 5.193 MB / 0.5055 GB, free: 0.7031 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002107/0.6141, allocations: 0.806 MB / 0.5063 GB, free: 180 kB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005056/0.6192, allocations: 1.437 MB / 0.5077 GB, free: 15.44 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.04132/0.6605, allocations: 12.76 MB / 0.5201 GB, free: 4.469 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006807/0.6613, allocations: 68 kB / 0.5202 GB, free: 4.402 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03513/0.6964, allocations: 8.728 MB / 0.5287 GB, free: 11.66 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001705/0.6982, allocations: 0.5218 MB / 0.5292 GB, free: 11.14 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001094/0.6994, allocations: 344.9 kB / 0.5296 GB, free: 10.8 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01363/0.713, allocations: 5.173 MB / 0.5346 GB, free: 5.613 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.7131, allocations: 4 kB / 0.5346 GB, free: 5.609 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.004e-06/0.7131, allocations: 0 / 0.5346 GB, free: 5.609 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.419e-05/0.7131, allocations: 0 / 0.5346 GB, free: 5.609 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 320 * Number of variables: 320 Notification: Performance of Generate backend data structure: time 0.01008/0.7232, allocations: 2.601 MB / 0.5372 GB, free: 2.945 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.184e-05/0.7233, allocations: 8.031 kB / 0.5372 GB, free: 2.938 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005444/0.7239, allocations: 190 kB / 0.5374 GB, free: 2.742 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005345/0.7292, allocations: 0.5364 MB / 0.5379 GB, free: 2.203 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01213/0.7414, allocations: 4.308 MB / 0.5421 GB, free: 13.85 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001901/0.7416, allocations: 114.4 kB / 0.5422 GB, free: 13.73 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003526/0.742, allocations: 128 kB / 0.5423 GB, free: 13.61 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007648/0.7497, allocations: 2.216 MB / 0.5445 GB, free: 11.28 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.878e-05/0.7498, allocations: 7.938 kB / 0.5445 GB, free: 11.27 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002987/0.7501, allocations: 55.98 kB / 0.5445 GB, free: 11.21 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002721/0.7504, allocations: 114.2 kB / 0.5447 GB, free: 11.1 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008089/0.7585, allocations: 2.038 MB / 0.5466 GB, free: 9.055 MB / 394.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.01958/0.7781, allocations: 9.565 MB / 0.556 GB, free: 14.67 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005692/0.7838, allocations: 1.373 MB / 0.5573 GB, free: 13.29 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002074/0.786, allocations: 0.6557 MB / 0.558 GB, free: 12.62 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06459/0.8506, allocations: 18.98 MB / 0.5765 GB, free: 7.328 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004441/0.8551, allocations: 1.013 MB / 0.5775 GB, free: 6.297 MB / 426.7 MB Notification: Performance of pre-optimization done (n=94): time 4.218e-06/0.8551, allocations: 0 / 0.5775 GB, free: 6.297 MB / 426.7 MB Notification: Performance of matching and sorting (n=102): time 0.02165/0.8768, allocations: 5.049 MB / 0.5824 GB, free: 1.172 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001534/0.877, allocations: 218.6 kB / 0.5826 GB, free: 0.9102 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.3331/1.21, allocations: 1.062 MB / 0.5837 GB, free: 134.2 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002853/1.21, allocations: 45.83 kB / 0.5837 GB, free: 134.2 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006907/1.211, allocations: 0.6817 MB / 0.5844 GB, free: 134.1 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005056/1.212, allocations: 350.6 kB / 0.5847 GB, free: 133.9 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001449/1.212, allocations: 24.47 kB / 0.5847 GB, free: 133.9 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001428/1.212, allocations: 357.5 kB / 0.5851 GB, free: 133.6 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002365/1.214, allocations: 0.6739 MB / 0.5857 GB, free: 133.6 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002521/1.217, allocations: 1.021 MB / 0.5867 GB, free: 133.2 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002621/1.22, allocations: 0.8361 MB / 0.5876 GB, free: 133.2 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.908e-05/1.22, allocations: 3.625 kB / 0.5876 GB, free: 133.2 MB / 426.7 MB Notification: Performance of matching and sorting (n=166) (initialization): time 0.006979/1.227, allocations: 2.025 MB / 0.5895 GB, free: 133 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002564/1.227, allocations: 404.8 kB / 0.5899 GB, free: 132.5 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.544e-05/1.227, allocations: 11 kB / 0.5899 GB, free: 132.5 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008284/1.228, allocations: 142.5 kB / 0.5901 GB, free: 132.5 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002679/1.231, allocations: 336 kB / 0.5904 GB, free: 132.5 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001004/1.232, allocations: 1.257 MB / 0.5916 GB, free: 131.5 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002196/1.234, allocations: 154 kB / 0.5918 GB, free: 131.4 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002043/1.234, allocations: 72.19 kB / 0.5918 GB, free: 131.4 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.155e-05/1.234, allocations: 2.938 kB / 0.5918 GB, free: 131.4 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005581/1.24, allocations: 1.857 MB / 0.5936 GB, free: 130.8 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.217e-05/1.24, allocations: 14.02 kB / 0.5937 GB, free: 130.8 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007583/1.24, allocations: 142 kB / 0.5938 GB, free: 130.8 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002466/1.243, allocations: 333.8 kB / 0.5941 GB, free: 130.7 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009144/1.244, allocations: 1.251 MB / 0.5953 GB, free: 129.6 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002066/1.246, allocations: 162 kB / 0.5955 GB, free: 129.6 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001849/1.246, allocations: 63.44 kB / 0.5955 GB, free: 129.6 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 16 (pipe3.state_a.phase,pipe1.state_a.phase,valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,$whenCondition1,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,pipe3.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 (158): * Single equations (assignments): 153 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.001137/1.247, allocations: 0.5385 MB / 0.5961 GB, free: 129.2 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003231/1.248, allocations: 132.8 kB / 0.5962 GB, free: 129.1 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00937/1.257, allocations: 4.721 MB / 0.6008 GB, free: 127.1 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.238e-05/1.257, allocations: 61.36 kB / 0.6009 GB, free: 127.1 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.056e-05/1.257, allocations: 0 / 0.6009 GB, free: 127.1 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00743/1.265, allocations: 3.953 MB / 0.6047 GB, free: 125.3 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01266/1.277, allocations: 6.676 MB / 0.6112 GB, free: 122.4 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.309e-05/1.277, allocations: 2.969 kB / 0.6113 GB, free: 122.4 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001933/1.279, allocations: 234.9 kB / 0.6115 GB, free: 122.4 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001236/1.281, allocations: 195.4 kB / 0.6117 GB, free: 122.3 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000202/1.281, allocations: 43.08 kB / 0.6117 GB, free: 122.3 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001006/1.282, allocations: 1.283 MB / 0.613 GB, free: 121.2 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.759e-06/1.282, allocations: 8.391 kB / 0.613 GB, free: 121.2 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009066/1.291, allocations: 4.308 MB / 0.6172 GB, free: 119.3 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001426/1.292, allocations: 0.5104 MB / 0.6177 GB, free: 119 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004837/1.293, allocations: 29.64 kB / 0.6177 GB, free: 118.9 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001852/1.295, allocations: 121.6 kB / 0.6178 GB, free: 118.9 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003382/1.295, allocations: 89.02 kB / 0.6179 GB, free: 118.9 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001401/1.295, allocations: 41.77 kB / 0.6179 GB, free: 118.9 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001742/1.297, allocations: 0.8345 MB / 0.6188 GB, free: 118.6 MB / 426.7 MB Notification: Performance of sort global known variables: time 7.22e-07/1.297, allocations: 0 / 0.6188 GB, free: 118.6 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.007795/1.305, allocations: 1.949 MB / 0.6207 GB, free: 118.4 MB / 426.7 MB 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,valveIncompressible1.filter.x[1],valveIncompressible1.filter.x[2],pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 35 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse12.phase,$cse12.region,$cse13.phase,$cse13.region,$cse16.phase,$cse16.region,$cse18.region3boundary,$cse19.region3boundary,$cse20.phase,$cse20.region,$cse22.phase,$cse22.region,$cse23.phase,$cse23.region,$cse25.phase,$cse25.region,$whenCondition1,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent) * Number of discrete states: 5 (valveOpening1.last,valveOpening1.nextEvent,valveOpening1.b,valveOpening1.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (118): * Single equations (assignments): 100 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 15 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.02062/1.326, allocations: 6.514 MB / 0.627 GB, free: 115.9 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.008757/1.334, allocations: 3.184 MB / 0.6301 GB, free: 114.7 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.523e-06/1.335, allocations: 2.125 kB / 0.6301 GB, free: 114.7 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003194/1.338, allocations: 1.446 MB / 0.6315 GB, free: 114 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00532/1.343, allocations: 0.5861 MB / 0.6321 GB, free: 113.9 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1794/1.523, allocations: 82.58 MB / 0.7128 GB, free: 35.08 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002843/1.525, allocations: 1.717 MB / 0.7144 GB, free: 33.33 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.007667/1.533, allocations: 1.579 MB / 0.716 GB, free: 31.76 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002398/1.536, allocations: 0.8351 MB / 0.7168 GB, free: 30.93 MB / 426.7 MB Notification: Performance of SimCode: time 1.372e-06/1.536, allocations: 0 / 0.7168 GB, free: 30.93 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6335/2.169, allocations: 82.97 MB / 0.7978 GB, free: 89.88 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003232/2.17, allocations: 259.4 kB / 0.7981 GB, free: 89.53 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.567/10.74, allocations: 4 kB / 0.7981 GB, free: 89.53 MB / 426.7 MB