Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_ThermoPower.Test.WaterComponents.TestAccumulator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo", uses=false) Using package ThermoPower with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ThermoPower.Test.WaterComponents.TestAccumulator,fileNamePrefix="ThermoPower_ThermoPower_Test_WaterComponents_TestAccumulator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.WaterComponents.TestAccumulator,fileNamePrefix="ThermoPower_ThermoPower_Test_WaterComponents_TestAccumulator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001283/0.001284, allocations: 114.1 kB / 17.07 MB, free: 5.984 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00121/0.00121, allocations: 193.4 kB / 18 MB, free: 5.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.489/1.489, allocations: 205.1 MB / 223.9 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.312/0.312, allocations: 48.85 MB / 320.1 MB, free: 11 MB / 270.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002924/0.002924, allocations: 79.89 kB / 450.1 MB, free: 9.027 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1427/0.1456, allocations: 59.14 MB / 0.4973 GB, free: 13.75 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.TestAccumulator): time 0.3229/0.4685, allocations: 32.46 MB / 0.529 GB, free: 6.52 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01141/0.48, allocations: 8.115 MB / 0.5369 GB, free: 6.391 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004217/0.4805, allocations: 7.312 kB / 0.5369 GB, free: 6.391 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005762/0.4811, allocations: 135.5 kB / 0.537 GB, free: 6.391 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005924/0.4817, allocations: 211.1 kB / 0.5372 GB, free: 6.379 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01758/0.4993, allocations: 4.413 MB / 0.5415 GB, free: 5.988 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.001562/0.5009, allocations: 0.5779 MB / 0.5421 GB, free: 5.844 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005842/0.5015, allocations: 221.6 kB / 0.5423 GB, free: 5.82 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004331/0.5019, allocations: 214.3 kB / 0.5425 GB, free: 5.777 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003765/0.5023, allocations: 229.1 kB / 0.5427 GB, free: 5.723 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.784e-05/0.5024, allocations: 26.59 kB / 0.5428 GB, free: 5.723 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01656/0.519, allocations: 6.006 MB / 0.5486 GB, free: 5.641 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001752/0.5192, allocations: 70.64 kB / 0.5487 GB, free: 5.625 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004156/0.5196, allocations: 189.2 kB / 0.5489 GB, free: 5.57 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01338/0.533, allocations: 3.511 MB / 0.5523 GB, free: 4.867 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.614e-06/0.5331, allocations: 0 / 0.5523 GB, free: 4.867 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.013e-06/0.5331, allocations: 0 / 0.5523 GB, free: 4.867 MB / 414.1 MB Notification: Performance of Transformations before backend: time 8.947e-06/0.5331, allocations: 1.25 kB / 0.5523 GB, free: 4.867 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 62 * Number of variables: 62 Notification: Performance of Generate backend data structure: time 0.004978/0.5381, allocations: 1.081 MB / 0.5534 GB, free: 4.109 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.018e-05/0.5381, allocations: 12.89 kB / 0.5534 GB, free: 4.105 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.573e-05/0.5382, allocations: 59.67 kB / 0.5534 GB, free: 4.055 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001945/0.5384, allocations: 59.66 kB / 0.5535 GB, free: 4.023 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005523/0.539, allocations: 312.3 kB / 0.5538 GB, free: 3.723 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.285e-05/0.539, allocations: 19.84 kB / 0.5538 GB, free: 3.715 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.254e-05/0.5391, allocations: 26.36 kB / 0.5538 GB, free: 3.707 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006726/0.5398, allocations: 329.8 kB / 0.5541 GB, free: 3.488 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.543e-05/0.5398, allocations: 0 / 0.5541 GB, free: 3.488 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.593e-05/0.5398, allocations: 11.5 kB / 0.5541 GB, free: 3.48 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.372e-05/0.5398, allocations: 10.19 kB / 0.5542 GB, free: 3.48 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005524/0.5404, allocations: 240.1 kB / 0.5544 GB, free: 3.367 MB / 414.1 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.001494/0.5419, allocations: 1.32 MB / 0.5557 GB, free: 2.133 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005377/0.5424, allocations: 219.4 kB / 0.5559 GB, free: 2.012 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000246/0.5427, allocations: 121 kB / 0.556 GB, free: 1.949 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07284/0.6155, allocations: 32.12 MB / 0.5874 GB, free: 7.016 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.842e-05/0.6156, allocations: 34.56 kB / 0.5874 GB, free: 6.973 MB / 446.1 MB Notification: Performance of pre-optimization done (n=23): time 2.315e-06/0.6157, allocations: 0 / 0.5874 GB, free: 6.973 MB / 446.1 MB Notification: Performance of matching and sorting (n=27): time 0.003084/0.6187, allocations: 1.051 MB / 0.5884 GB, free: 5.867 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.858e-05/0.6188, allocations: 59.34 kB / 0.5885 GB, free: 5.797 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003735/0.6192, allocations: 305.7 kB / 0.5888 GB, free: 5.496 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 3.332e-05/0.6193, allocations: 33.7 kB / 0.5888 GB, free: 5.457 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001499/0.6194, allocations: 188.8 kB / 0.589 GB, free: 5.27 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.201e-05/0.6195, allocations: 97.89 kB / 0.5891 GB, free: 5.176 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001021/0.6196, allocations: 49.7 kB / 0.5891 GB, free: 5.121 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.000177/0.6198, allocations: 346.8 kB / 0.5895 GB, free: 4.773 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002796/0.6201, allocations: 112.8 kB / 0.5896 GB, free: 4.66 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002823/0.6204, allocations: 129.6 kB / 0.5897 GB, free: 4.527 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005581/0.621, allocations: 246.2 kB / 0.5899 GB, free: 4.281 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.621, allocations: 0.875 kB / 0.5899 GB, free: 4.281 MB / 446.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.001405/0.6224, allocations: 493.7 kB / 0.5904 GB, free: 3.789 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.483e-05/0.6224, allocations: 4 kB / 0.5904 GB, free: 3.785 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.333e-06/0.6224, allocations: 0 / 0.5904 GB, free: 3.785 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001292/0.6237, allocations: 256.5 kB / 0.5906 GB, free: 3.531 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001638/0.6239, allocations: 43.91 kB / 0.5907 GB, free: 3.488 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001169/0.6251, allocations: 0.802 MB / 0.5915 GB, free: 2.66 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000253/0.6254, allocations: 20.92 kB / 0.5915 GB, free: 2.641 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.355e-05/0.6254, allocations: 4 kB / 0.5915 GB, free: 2.637 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003793/0.6258, allocations: 208.1 kB / 0.5917 GB, free: 2.43 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002778/0.6261, allocations: 129.6 kB / 0.5918 GB, free: 2.297 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005054/0.6266, allocations: 241.1 kB / 0.592 GB, free: 2.059 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.055e-06/0.6266, allocations: 3.984 kB / 0.5921 GB, free: 2.055 MB / 446.1 MB Notification: Performance of matching and sorting (n=32) (initialization_lambda0): time 0.001291/0.6279, allocations: 485.7 kB / 0.5925 GB, free: 1.57 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.294e-05/0.6279, allocations: 4 kB / 0.5925 GB, free: 1.566 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.627e-06/0.6279, allocations: 0 / 0.5925 GB, free: 1.566 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001085/0.629, allocations: 248.6 kB / 0.5928 GB, free: 1.32 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001491/0.6292, allocations: 35.97 kB / 0.5928 GB, free: 1.285 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00101/0.6302, allocations: 0.7845 MB / 0.5936 GB, free: 488 kB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002538/0.6305, allocations: 23.98 kB / 0.5936 GB, free: 464 kB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.858e-05/0.6305, allocations: 4 kB / 0.5936 GB, free: 460 kB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 1 (Accumulator1.liquidState.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(6,11)} Notification: Performance of prepare postOptimizeDAE: time 0.0001884/0.6307, allocations: 188.3 kB / 0.5938 GB, free: 264 kB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.293e-05/0.6308, allocations: 42.94 kB / 0.5938 GB, free: 224 kB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001134/0.6319, allocations: 0.5603 MB / 0.5944 GB, free: 15.65 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.209e-05/0.632, allocations: 4 kB / 0.5944 GB, free: 15.64 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.074e-06/0.632, allocations: 0 / 0.5944 GB, free: 15.64 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.542e-06/0.632, allocations: 7.984 kB / 0.5944 GB, free: 15.64 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001744/0.6337, allocations: 1.042 MB / 0.5954 GB, free: 14.54 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.611e-06/0.6338, allocations: 0 / 0.5954 GB, free: 14.54 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003505/0.6341, allocations: 67.89 kB / 0.5954 GB, free: 14.47 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002804/0.6344, allocations: 56.73 kB / 0.5955 GB, free: 14.41 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.532e-05/0.6344, allocations: 8 kB / 0.5955 GB, free: 14.41 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001401/0.6359, allocations: 1.435 MB / 0.5969 GB, free: 12.84 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.6359, allocations: 0 / 0.5969 GB, free: 12.84 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001274/0.6372, allocations: 0.6831 MB / 0.5976 GB, free: 12.14 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001875/0.6374, allocations: 136.8 kB / 0.5977 GB, free: 11.98 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.419e-05/0.6374, allocations: 8 kB / 0.5977 GB, free: 11.98 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000218/0.6376, allocations: 15.98 kB / 0.5977 GB, free: 11.96 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.782e-05/0.6377, allocations: 27.89 kB / 0.5978 GB, free: 11.93 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.028e-05/0.6378, allocations: 8 kB / 0.5978 GB, free: 11.93 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0002717/0.638, allocations: 227.2 kB / 0.598 GB, free: 11.7 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.6381, allocations: 0 / 0.598 GB, free: 11.7 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.005308/0.6434, allocations: 0.8813 MB / 0.5988 GB, free: 10.82 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (Accumulator1.zl,Accumulator1.hl,Accumulator1.Mg,Accumulator1.Tg) * Number of discrete variables: 2 ($cse1.phase,$cse1.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (27): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00885/0.6523, allocations: 2.079 MB / 0.6009 GB, free: 8.797 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.002174/0.6545, allocations: 0.6093 MB / 0.6015 GB, free: 8.191 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.079e-06/0.6545, allocations: 0 / 0.6015 GB, free: 8.191 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006692/0.6552, allocations: 318.5 kB / 0.6018 GB, free: 7.867 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001084/0.6563, allocations: 146.2 kB / 0.6019 GB, free: 7.727 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009484/0.6658, allocations: 3.956 MB / 0.6058 GB, free: 3.691 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000493/0.6663, allocations: 0.8079 MB / 0.6066 GB, free: 2.859 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0002875/0.6666, allocations: 34.97 kB / 0.6066 GB, free: 2.828 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002344/0.6669, allocations: 127.4 kB / 0.6067 GB, free: 2.703 MB / 462.1 MB Notification: Performance of SimCode: time 9.32e-07/0.6669, allocations: 0 / 0.6067 GB, free: 2.703 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09669/0.7636, allocations: 38.96 MB / 0.6448 GB, free: 11.63 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.43/15.2, allocations: 16.16 kB / 0.6448 GB, free: 11.61 MB / 0.4981 GB (rm -f ThermoPower_ThermoPower.Test.WaterComponents.TestAccumulator.pipe ; mkfifo ThermoPower_ThermoPower.Test.WaterComponents.TestAccumulator.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.WaterComponents.TestAccumulator.pipe >> ../files/ThermoPower_ThermoPower.Test.WaterComponents.TestAccumulator.sim & python3 -m fmpy simulate --output-file ThermoPower_ThermoPower.Test.WaterComponents.TestAccumulator_res.csv --start-time 0 --stop-time 8000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 3.2 ThermoPower_ThermoPower_Test_WaterComponents_TestAccumulator.fmu > ThermoPower_ThermoPower.Test.WaterComponents.TestAccumulator.pipe 2>&1)