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.001754/0.001754, allocations: 111.7 kB / 17.06 MB, free: 6.016 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.002019/0.002019, allocations: 189.4 kB / 18 MB, free: 5.098 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.589/1.589, allocations: 205.1 MB / 223.9 MB, free: 12.28 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.311/0.311, allocations: 48.85 MB / 320.1 MB, free: 11.01 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.002099/0.002099, allocations: 71.83 kB / 450 MB, free: 9.051 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1345/0.1366, allocations: 59.16 MB / 0.4973 GB, free: 13.76 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.TestCoeffValve): time 0.3532/0.4899, allocations: 77.61 MB / 0.5731 GB, free: 3.039 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.01597/0.5059, allocations: 11.1 MB / 0.5839 GB, free: 10.86 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001217/0.5071, allocations: 23.25 kB / 0.5839 GB, free: 10.85 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001477/0.5087, allocations: 401.8 kB / 0.5843 GB, free: 10.5 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001833/0.5105, allocations: 0.5047 MB / 0.5848 GB, free: 10.07 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0207/0.5312, allocations: 5.859 MB / 0.5905 GB, free: 5.875 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.002794/0.5341, allocations: 1.373 MB / 0.5919 GB, free: 5.086 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008428/0.5349, allocations: 405.5 kB / 0.5922 GB, free: 4.84 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001039/0.536, allocations: 481.1 kB / 0.5927 GB, free: 4.594 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008251/0.5368, allocations: 479.8 kB / 0.5932 GB, free: 4.316 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 9.608e-05/0.537, allocations: 43.34 kB / 0.5932 GB, free: 4.316 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01373/0.5507, allocations: 6.353 MB / 0.5994 GB, free: 1.031 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002537/0.551, allocations: 122.3 kB / 0.5995 GB, free: 0.9297 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007899/0.5518, allocations: 394.9 kB / 0.5999 GB, free: 0.6992 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01221/0.564, allocations: 4.123 MB / 0.6039 GB, free: 13.2 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.484e-06/0.5641, allocations: 0 / 0.6039 GB, free: 13.2 MB / 462.1 MB Notification: Performance of FrontEnd: time 5.61e-06/0.5641, allocations: 0 / 0.6039 GB, free: 13.2 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.437e-05/0.5641, allocations: 3.938 kB / 0.6039 GB, free: 13.2 MB / 462.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.004482/0.5686, allocations: 1.52 MB / 0.6054 GB, free: 11.62 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.287e-05/0.5686, allocations: 15.89 kB / 0.6054 GB, free: 11.6 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001151/0.5688, allocations: 90.7 kB / 0.6055 GB, free: 11.5 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004052/0.5692, allocations: 124.3 kB / 0.6056 GB, free: 11.38 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000994/0.5702, allocations: 0.5272 MB / 0.6061 GB, free: 10.82 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.082e-05/0.5702, allocations: 37.38 kB / 0.6062 GB, free: 10.78 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.571e-05/0.5703, allocations: 52.31 kB / 0.6062 GB, free: 10.73 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001174/0.5715, allocations: 0.6243 MB / 0.6068 GB, free: 10.04 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.793e-05/0.5715, allocations: 4 kB / 0.6068 GB, free: 10.04 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.248e-05/0.5716, allocations: 16 kB / 0.6069 GB, free: 10.02 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.936e-05/0.5716, allocations: 16.75 kB / 0.6069 GB, free: 10 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007687/0.5724, allocations: 360.3 kB / 0.6072 GB, free: 9.652 MB / 462.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.003723/0.5761, allocations: 3.545 MB / 0.6107 GB, free: 5.836 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000521/0.5766, allocations: 190.4 kB / 0.6109 GB, free: 5.613 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001008/0.5768, allocations: 55.52 kB / 0.6109 GB, free: 5.547 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06825/0.645, allocations: 32.13 MB / 0.6423 GB, free: 1.602 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.217e-05/0.6451, allocations: 38.5 kB / 0.6423 GB, free: 1.555 MB / 494.1 MB Notification: Performance of pre-optimization done (n=12): time 2.725e-06/0.6451, allocations: 0 / 0.6423 GB, free: 1.555 MB / 494.1 MB Notification: Performance of matching and sorting (n=12): time 0.00144/0.6466, allocations: 368.8 kB / 0.6427 GB, free: 1.188 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000107/0.6467, allocations: 132.5 kB / 0.6428 GB, free: 1.027 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001103/0.6478, allocations: 0.7279 MB / 0.6435 GB, free: 296 kB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 3.059e-05/0.6479, allocations: 29.7 kB / 0.6435 GB, free: 260 kB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003719/0.6482, allocations: 356.3 kB / 0.6439 GB, free: 15.9 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 6.077e-05/0.6483, allocations: 47.58 kB / 0.6439 GB, free: 15.85 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001037/0.6484, allocations: 45.7 kB / 0.644 GB, free: 15.8 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001716/0.6486, allocations: 314 kB / 0.6443 GB, free: 15.49 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000127/0.6487, allocations: 56.83 kB / 0.6443 GB, free: 15.43 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002045/0.6489, allocations: 137.4 kB / 0.6445 GB, free: 15.26 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000427/0.6494, allocations: 190.8 kB / 0.6446 GB, free: 15.04 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.534e-06/0.6494, allocations: 7.938 kB / 0.6446 GB, free: 15.03 MB / 0.4981 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005833/0.65, allocations: 292.9 kB / 0.6449 GB, free: 14.74 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.287e-05/0.65, allocations: 7.906 kB / 0.6449 GB, free: 14.73 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.387e-06/0.65, allocations: 4 kB / 0.6449 GB, free: 14.73 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.099e-05/0.6501, allocations: 4 kB / 0.6449 GB, free: 14.72 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003183/0.6504, allocations: 59.89 kB / 0.645 GB, free: 14.66 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.232e-05/0.6504, allocations: 5.094 kB / 0.645 GB, free: 14.66 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004028/0.6508, allocations: 51.52 kB / 0.645 GB, free: 14.61 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.86e-05/0.6508, allocations: 11.98 kB / 0.6451 GB, free: 14.6 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002275/0.6511, allocations: 160.4 kB / 0.6452 GB, free: 14.44 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002016/0.6513, allocations: 191.8 kB / 0.6454 GB, free: 14.18 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003076/0.6516, allocations: 243.4 kB / 0.6456 GB, free: 13.87 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 8.396e-06/0.6516, allocations: 4 kB / 0.6456 GB, free: 13.87 MB / 0.4981 GB Notification: Performance of matching and sorting (n=23) (initialization_lambda0): time 0.0004558/0.6521, allocations: 297 kB / 0.6459 GB, free: 13.57 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.035e-05/0.6521, allocations: 8 kB / 0.6459 GB, free: 13.56 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5e-06/0.6521, allocations: 4 kB / 0.6459 GB, free: 13.56 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.083e-05/0.6521, allocations: 11.98 kB / 0.6459 GB, free: 13.55 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002149/0.6523, allocations: 55.91 kB / 0.646 GB, free: 13.49 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.268e-06/0.6524, allocations: 11.94 kB / 0.646 GB, free: 13.48 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003305/0.6527, allocations: 19.89 kB / 0.646 GB, free: 13.46 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.489e-05/0.6527, allocations: 16.61 kB / 0.646 GB, free: 13.45 MB / 0.4981 GB 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.0001702/0.6529, allocations: 200.5 kB / 0.6462 GB, free: 13.24 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001764/0.6531, allocations: 87.47 kB / 0.6463 GB, free: 13.16 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006972/0.6538, allocations: 0.4977 MB / 0.6468 GB, free: 12.65 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.372e-06/0.6538, allocations: 4 kB / 0.6468 GB, free: 12.64 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.362e-06/0.6538, allocations: 0 / 0.6468 GB, free: 12.64 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.168e-06/0.6538, allocations: 0 / 0.6468 GB, free: 12.64 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009189/0.6548, allocations: 0.6215 MB / 0.6474 GB, free: 11.98 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.6548, allocations: 4 kB / 0.6474 GB, free: 11.98 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.472e-05/0.6549, allocations: 23.92 kB / 0.6474 GB, free: 11.95 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.6549, allocations: 0 / 0.6474 GB, free: 11.95 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.353e-05/0.6549, allocations: 4 kB / 0.6474 GB, free: 11.95 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.28e-06/0.6549, allocations: 6.109 kB / 0.6474 GB, free: 11.95 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.6549, allocations: 0 / 0.6474 GB, free: 11.95 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005013/0.6554, allocations: 0.5175 MB / 0.648 GB, free: 11.41 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001873/0.6556, allocations: 152.6 kB / 0.6481 GB, free: 11.24 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001253/0.6557, allocations: 39.61 kB / 0.6481 GB, free: 11.2 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00034/0.6561, allocations: 4 kB / 0.6481 GB, free: 11.2 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.169e-05/0.6561, allocations: 11.92 kB / 0.6481 GB, free: 11.19 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.825e-06/0.6561, allocations: 4 kB / 0.6482 GB, free: 11.18 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0009949/0.6571, allocations: 0.7306 MB / 0.6489 GB, free: 10.45 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6571, allocations: 0 / 0.6489 GB, free: 10.45 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.003619/0.6608, allocations: 1.049 MB / 0.6499 GB, free: 9.395 MB / 0.4981 GB 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.004628/0.6654, allocations: 1.94 MB / 0.6518 GB, free: 7.426 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0005164/0.6659, allocations: 208.5 kB / 0.652 GB, free: 7.223 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 7.013e-06/0.666, allocations: 4 kB / 0.652 GB, free: 7.219 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 5.778e-05/0.666, allocations: 36.38 kB / 0.652 GB, free: 7.184 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002664/0.6687, allocations: 470.4 kB / 0.6525 GB, free: 6.727 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009453/0.6782, allocations: 6.057 MB / 0.6584 GB, free: 468 kB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006606/0.6789, allocations: 0.9291 MB / 0.6593 GB, free: 15.5 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.000656/0.6795, allocations: 277.2 kB / 0.6596 GB, free: 15.23 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003693/0.6799, allocations: 299.3 kB / 0.6598 GB, free: 14.93 MB / 0.5137 GB Notification: Performance of SimCode: time 1.032e-06/0.6799, allocations: 4 kB / 0.6598 GB, free: 14.93 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09687/0.7768, allocations: 48.17 MB / 0.7069 GB, free: 14.64 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.36/12.14, allocations: 8.047 kB / 0.7069 GB, free: 14.63 MB / 0.5606 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)