Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_ThermoPower.Test.WaterComponents.TestCoeffValve.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.TestCoeffValve,fileNamePrefix="ThermoPower_ThermoPower_Test_WaterComponents_TestCoeffValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.WaterComponents.TestCoeffValve,fileNamePrefix="ThermoPower_ThermoPower_Test_WaterComponents_TestCoeffValve",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.001052/0.001053, allocations: 107.7 kB / 16.92 MB, free: 6.145 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.0011/0.0011, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.218/1.218, allocations: 205.1 MB / 223.7 MB, free: 12.3 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2451/0.2451, allocations: 48.85 MB / 319.9 MB, free: 11.08 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.001457/0.001457, allocations: 68.5 kB / 390.2 MB, free: 48.82 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07885/0.08032, allocations: 59.16 MB / 449.3 MB, free: 9.664 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.TestCoeffValve): time 0.06713/0.1475, allocations: 77.62 MB / 0.5146 GB, free: 11.78 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01224/0.1598, allocations: 11.1 MB / 0.5254 GB, free: 0.6406 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006772/0.1605, allocations: 23.81 kB / 0.5255 GB, free: 0.6172 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001094/0.1616, allocations: 397.2 kB / 0.5258 GB, free: 232 kB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.1703/0.332, allocations: 0.4977 MB / 0.5263 GB, free: 5.93 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01214/0.3442, allocations: 5.859 MB / 0.5321 GB, free: 5.895 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.001471/0.3457, allocations: 1.366 MB / 0.5334 GB, free: 5.895 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000489/0.3462, allocations: 409 kB / 0.5338 GB, free: 5.848 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005081/0.3467, allocations: 480.9 kB / 0.5342 GB, free: 5.848 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004819/0.3472, allocations: 479.4 kB / 0.5347 GB, free: 5.848 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 6.51e-05/0.3472, allocations: 43.38 kB / 0.5347 GB, free: 5.848 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01005/0.3573, allocations: 6.218 MB / 0.5408 GB, free: 5.848 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000173/0.3575, allocations: 115.6 kB / 0.5409 GB, free: 5.848 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000632/0.3581, allocations: 407.2 kB / 0.5413 GB, free: 5.809 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007633/0.3658, allocations: 4.105 MB / 0.5453 GB, free: 5.566 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.3658, allocations: 0 / 0.5453 GB, free: 5.566 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.3658, allocations: 0.8125 kB / 0.5453 GB, free: 5.566 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.778e-05/0.3658, allocations: 0 / 0.5453 GB, free: 5.566 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: 124 * Number of variables: 124 Notification: Performance of Generate backend data structure: time 0.004292/0.3701, allocations: 1.48 MB / 0.5468 GB, free: 4.742 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.699e-05/0.3702, allocations: 13.33 kB / 0.5468 GB, free: 4.738 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.286e-05/0.3703, allocations: 92.94 kB / 0.5469 GB, free: 4.699 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003286/0.3706, allocations: 118.9 kB / 0.547 GB, free: 4.656 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005585/0.3712, allocations: 0.5027 MB / 0.5475 GB, free: 4.371 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.917e-05/0.3712, allocations: 37.53 kB / 0.5475 GB, free: 4.371 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.561e-05/0.3713, allocations: 50.59 kB / 0.5476 GB, free: 4.371 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009165/0.3722, allocations: 0.6093 MB / 0.5481 GB, free: 4.168 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.545e-05/0.3722, allocations: 10.94 kB / 0.5482 GB, free: 4.164 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.586e-05/0.3723, allocations: 25.94 kB / 0.5482 GB, free: 4.16 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.386e-05/0.3723, allocations: 14.55 kB / 0.5482 GB, free: 4.16 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006713/0.3729, allocations: 357.4 kB / 0.5485 GB, free: 4.16 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.002416/0.3754, allocations: 3.554 MB / 0.552 GB, free: 1.426 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004324/0.3758, allocations: 184 kB / 0.5522 GB, free: 1.332 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.595e-05/0.3759, allocations: 61.8 kB / 0.5522 GB, free: 1.297 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05982/0.4357, allocations: 31.98 MB / 0.5835 GB, free: 9 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.365e-05/0.4358, allocations: 47.5 kB / 0.5835 GB, free: 8.957 MB / 446.1 MB Notification: Performance of pre-optimization done (n=12): time 2.355e-06/0.4358, allocations: 0 / 0.5835 GB, free: 8.957 MB / 446.1 MB Notification: Performance of matching and sorting (n=12): time 0.001354/0.4372, allocations: 358.2 kB / 0.5839 GB, free: 8.824 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.966e-05/0.4373, allocations: 131.4 kB / 0.584 GB, free: 8.668 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001019/0.4383, allocations: 0.7257 MB / 0.5847 GB, free: 8.441 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 3.624e-05/0.4383, allocations: 27.95 kB / 0.5847 GB, free: 8.41 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002407/0.4386, allocations: 359.3 kB / 0.5851 GB, free: 8.266 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.556e-05/0.4386, allocations: 40.11 kB / 0.5851 GB, free: 8.238 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.159e-05/0.4387, allocations: 61.62 kB / 0.5852 GB, free: 8.207 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001012/0.4388, allocations: 314.5 kB / 0.5855 GB, free: 7.898 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001051/0.439, allocations: 55.7 kB / 0.5855 GB, free: 7.887 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001516/0.4391, allocations: 133.6 kB / 0.5856 GB, free: 7.777 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002555/0.4394, allocations: 190.1 kB / 0.5858 GB, free: 7.672 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.572e-06/0.4394, allocations: 3.938 kB / 0.5858 GB, free: 7.668 MB / 446.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.000559/0.44, allocations: 290.6 kB / 0.5861 GB, free: 7.574 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.484e-05/0.44, allocations: 11.72 kB / 0.5861 GB, free: 7.57 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.933e-06/0.44, allocations: 2.906 kB / 0.5861 GB, free: 7.57 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.631e-05/0.44, allocations: 2.969 kB / 0.5861 GB, free: 7.57 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002873/0.4403, allocations: 59.08 kB / 0.5862 GB, free: 7.559 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.05e-05/0.4403, allocations: 9.156 kB / 0.5862 GB, free: 7.555 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005163/0.4408, allocations: 48.25 kB / 0.5862 GB, free: 7.523 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.383e-05/0.4409, allocations: 10.38 kB / 0.5862 GB, free: 7.523 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002048/0.4411, allocations: 166.1 kB / 0.5864 GB, free: 7.434 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001933/0.4413, allocations: 174 kB / 0.5866 GB, free: 7.246 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0002385/0.4415, allocations: 250.5 kB / 0.5868 GB, free: 7.047 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.344e-06/0.4415, allocations: 0 / 0.5868 GB, free: 7.047 MB / 446.1 MB Notification: Performance of matching and sorting (n=23) (initialization_lambda0): time 0.000445/0.442, allocations: 292.8 kB / 0.5871 GB, free: 6.953 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.238e-06/0.442, allocations: 12.5 kB / 0.5871 GB, free: 6.949 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.698e-06/0.442, allocations: 4.969 kB / 0.5871 GB, free: 6.949 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.27e-06/0.442, allocations: 5.906 kB / 0.5871 GB, free: 6.949 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002043/0.4422, allocations: 59.66 kB / 0.5872 GB, free: 6.941 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.062e-06/0.4423, allocations: 4.688 kB / 0.5872 GB, free: 6.941 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004382/0.4427, allocations: 23.7 kB / 0.5872 GB, free: 6.93 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.905e-05/0.4427, allocations: 14.94 kB / 0.5872 GB, free: 6.93 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 4 (ValveLiq4.fluidState.phase,ValveLiq3.fluidState.phase,ValveLiq2.fluidState.phase,ValveLiq1.fluidState.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001191/0.4428, allocations: 194.9 kB / 0.5874 GB, free: 6.746 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001698/0.443, allocations: 77.16 kB / 0.5875 GB, free: 6.707 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005511/0.4436, allocations: 0.5072 MB / 0.588 GB, free: 6.395 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.679e-06/0.4436, allocations: 4 kB / 0.588 GB, free: 6.391 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.4436, allocations: 0 / 0.588 GB, free: 6.391 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-06/0.4436, allocations: 0 / 0.588 GB, free: 6.391 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008169/0.4444, allocations: 0.6162 MB / 0.5886 GB, free: 5.859 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.058e-06/0.4444, allocations: 4 kB / 0.5886 GB, free: 5.855 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.294e-05/0.4445, allocations: 27.17 kB / 0.5886 GB, free: 5.836 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.795e-06/0.4445, allocations: 7.938 kB / 0.5886 GB, free: 5.828 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.147e-06/0.4446, allocations: 4 kB / 0.5886 GB, free: 5.824 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.447e-06/0.4446, allocations: 3.984 kB / 0.5886 GB, free: 5.82 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.4446, allocations: 0 / 0.5886 GB, free: 5.82 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003699/0.4449, allocations: 0.5053 MB / 0.5891 GB, free: 5.324 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001689/0.4451, allocations: 146 kB / 0.5892 GB, free: 5.168 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001271/0.4453, allocations: 44.39 kB / 0.5893 GB, free: 5.129 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000348/0.4456, allocations: 0 / 0.5893 GB, free: 5.129 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.456e-05/0.4456, allocations: 7.562 kB / 0.5893 GB, free: 5.125 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.945e-06/0.4457, allocations: 7.984 kB / 0.5893 GB, free: 5.117 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.000756/0.4464, allocations: 0.7274 MB / 0.59 GB, free: 4.578 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4464, allocations: 0 / 0.59 GB, free: 4.578 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003587/0.45, allocations: 1.033 MB / 0.591 GB, free: 3.586 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.006205/0.4562, allocations: 1.932 MB / 0.5929 GB, free: 1.758 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0004574/0.4567, allocations: 224.7 kB / 0.5931 GB, free: 1.609 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.627e-06/0.4567, allocations: 0 / 0.5931 GB, free: 1.609 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 5.33e-05/0.4568, allocations: 38.8 kB / 0.5932 GB, free: 1.586 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002441/0.4592, allocations: 467.3 kB / 0.5936 GB, free: 1.191 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008456/0.4677, allocations: 6.447 MB / 0.5999 GB, free: 11.43 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004264/0.4681, allocations: 0.9291 MB / 0.6008 GB, free: 10.48 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0005505/0.4687, allocations: 285.8 kB / 0.6011 GB, free: 10.2 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002467/0.469, allocations: 298.3 kB / 0.6014 GB, free: 10.12 MB / 462.1 MB Notification: Performance of SimCode: time 4.7e-07/0.469, allocations: 0 / 0.6014 GB, free: 10.12 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07514/0.5441, allocations: 48.12 MB / 0.6484 GB, free: 10.02 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.99/9.534, allocations: 12 kB / 0.6484 GB, free: 10.01 MB / 0.4981 GB (rm -f ThermoPower_ThermoPower.Test.WaterComponents.TestCoeffValve.pipe ; mkfifo ThermoPower_ThermoPower.Test.WaterComponents.TestCoeffValve.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.WaterComponents.TestCoeffValve.pipe >> ../files/ThermoPower_ThermoPower.Test.WaterComponents.TestCoeffValve.sim & python3 -m fmpy simulate --output-file ThermoPower_ThermoPower.Test.WaterComponents.TestCoeffValve_res.csv --start-time 0 --stop-time 4 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0016 ThermoPower_ThermoPower_Test_WaterComponents_TestCoeffValve.fmu > ThermoPower_ThermoPower.Test.WaterComponents.TestCoeffValve.pipe 2>&1)