Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_ThermoPower.Test.WaterComponents.TestJoin.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.TestJoin,fileNamePrefix="ThermoPower_ThermoPower_Test_WaterComponents_TestJoin",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.WaterComponents.TestJoin,fileNamePrefix="ThermoPower_ThermoPower_Test_WaterComponents_TestJoin",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.0014/0.0014, allocations: 112.3 kB / 17.06 MB, free: 5.992 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.001363/0.001363, allocations: 197.3 kB / 18.01 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.232/1.232, allocations: 205.1 MB / 223.9 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2654/0.2654, allocations: 48.84 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.001939/0.001939, allocations: 72.36 kB / 450.1 MB, free: 9.031 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09564/0.09759, allocations: 59.16 MB / 0.4973 GB, free: 13.74 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.TestJoin): time 0.2655/0.3631, allocations: 107.3 MB / 0.6021 GB, free: 11.75 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.01331/0.3765, allocations: 11.57 MB / 0.6134 GB, free: 2.355 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005567/0.3771, allocations: 19.28 kB / 0.6134 GB, free: 2.348 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001296/0.3784, allocations: 0.5558 MB / 0.6139 GB, free: 1.863 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009567/0.3794, allocations: 0.6166 MB / 0.6145 GB, free: 1.344 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01187/0.3913, allocations: 5.651 MB / 0.6201 GB, free: 12.55 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.001829/0.3931, allocations: 1.65 MB / 0.6217 GB, free: 10.9 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008306/0.3939, allocations: 0.626 MB / 0.6223 GB, free: 10.26 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007483/0.3947, allocations: 0.6422 MB / 0.6229 GB, free: 9.617 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007031/0.3954, allocations: 0.6341 MB / 0.6235 GB, free: 8.98 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 9.45e-05/0.3955, allocations: 64 kB / 0.6236 GB, free: 8.918 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01039/0.4059, allocations: 6.441 MB / 0.6299 GB, free: 2.473 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001476/0.4061, allocations: 159.4 kB / 0.63 GB, free: 2.316 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004104/0.4065, allocations: 426 kB / 0.6304 GB, free: 1.898 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005616/0.4121, allocations: 4.317 MB / 0.6347 GB, free: 13.57 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.725e-06/0.4121, allocations: 0 / 0.6347 GB, free: 13.57 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.4121, allocations: 0 / 0.6347 GB, free: 13.57 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.219e-05/0.4121, allocations: 0 / 0.6347 GB, free: 13.57 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 162 * Number of variables: 162 Notification: Performance of Generate backend data structure: time 0.003144/0.4153, allocations: 1.586 MB / 0.6362 GB, free: 11.93 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.492e-05/0.4153, allocations: 11.89 kB / 0.6362 GB, free: 11.92 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00012/0.4155, allocations: 106.7 kB / 0.6363 GB, free: 11.8 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002921/0.4158, allocations: 120.3 kB / 0.6364 GB, free: 11.69 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006156/0.4164, allocations: 497.8 kB / 0.6369 GB, free: 11.16 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.318e-05/0.4164, allocations: 45.69 kB / 0.637 GB, free: 11.12 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.699e-05/0.4165, allocations: 64.38 kB / 0.637 GB, free: 11.05 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001566/0.4181, allocations: 0.8101 MB / 0.6378 GB, free: 10.19 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.845e-05/0.4181, allocations: 3.938 kB / 0.6378 GB, free: 10.19 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.752e-05/0.4182, allocations: 28 kB / 0.6378 GB, free: 10.16 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.551e-05/0.4182, allocations: 16 kB / 0.6378 GB, free: 10.14 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001446/0.4197, allocations: 0.5911 MB / 0.6384 GB, free: 9.555 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004024/0.4237, allocations: 4.402 MB / 0.6427 GB, free: 4.691 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001328/0.425, allocations: 488.7 kB / 0.6432 GB, free: 4.195 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003858/0.4254, allocations: 177.6 kB / 0.6434 GB, free: 4.016 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06279/0.4882, allocations: 32.13 MB / 0.6747 GB, free: 60 kB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.306e-05/0.4883, allocations: 38.56 kB / 0.6748 GB, free: 12 kB / 0.5137 GB Notification: Performance of pre-optimization done (n=32): time 1.943e-06/0.4883, allocations: 0 / 0.6748 GB, free: 12 kB / 0.5137 GB Notification: Performance of matching and sorting (n=32): time 0.002177/0.4905, allocations: 0.7051 MB / 0.6755 GB, free: 15.3 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.035e-05/0.4905, allocations: 77.11 kB / 0.6755 GB, free: 15.21 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00051/0.491, allocations: 475 kB / 0.676 GB, free: 14.73 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 3.401e-05/0.4911, allocations: 29.7 kB / 0.676 GB, free: 14.7 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002442/0.4913, allocations: 336.3 kB / 0.6763 GB, free: 14.37 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 9.371e-05/0.4914, allocations: 122.9 kB / 0.6765 GB, free: 14.25 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001366/0.4916, allocations: 66.02 kB / 0.6765 GB, free: 14.17 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001686/0.4918, allocations: 370.7 kB / 0.6769 GB, free: 13.8 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003441/0.4921, allocations: 130.7 kB / 0.677 GB, free: 13.67 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003866/0.4925, allocations: 205.8 kB / 0.6772 GB, free: 13.44 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006957/0.4932, allocations: 333.9 kB / 0.6775 GB, free: 13.09 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.012e-05/0.4932, allocations: 4 kB / 0.6775 GB, free: 13.08 MB / 0.5294 GB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0008935/0.4941, allocations: 438 kB / 0.6779 GB, free: 12.65 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 1.333e-05/0.4941, allocations: 4 kB / 0.6779 GB, free: 12.64 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.084e-06/0.4942, allocations: 7.938 kB / 0.6779 GB, free: 12.64 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.487e-05/0.4942, allocations: 4 kB / 0.678 GB, free: 12.63 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004108/0.4946, allocations: 87.88 kB / 0.678 GB, free: 12.55 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.526e-06/0.4946, allocations: 4 kB / 0.678 GB, free: 12.54 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002909/0.4949, allocations: 51.95 kB / 0.6781 GB, free: 12.49 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.575e-05/0.495, allocations: 16 kB / 0.6781 GB, free: 12.48 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000349/0.4953, allocations: 225.6 kB / 0.6783 GB, free: 12.25 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002747/0.4956, allocations: 187.3 kB / 0.6785 GB, free: 12.03 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000522/0.4961, allocations: 302.9 kB / 0.6788 GB, free: 11.7 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.543e-06/0.4961, allocations: 4 kB / 0.6788 GB, free: 11.69 MB / 0.5294 GB Notification: Performance of matching and sorting (n=40) (initialization_lambda0): time 0.0006602/0.4968, allocations: 373.1 kB / 0.6791 GB, free: 11.32 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 1.047e-05/0.4968, allocations: 12.25 kB / 0.6792 GB, free: 11.31 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.871e-06/0.4968, allocations: 11.98 kB / 0.6792 GB, free: 11.3 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.796e-06/0.4968, allocations: 7.938 kB / 0.6792 GB, free: 11.29 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002919/0.4971, allocations: 80.77 kB / 0.6793 GB, free: 11.21 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.404e-06/0.4972, allocations: 8 kB / 0.6793 GB, free: 11.2 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002094/0.4974, allocations: 43.7 kB / 0.6793 GB, free: 11.16 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.566e-05/0.4974, allocations: 17.88 kB / 0.6793 GB, free: 11.14 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 6 (T6.fluidState.phase,T5.fluidState.phase,T4.fluidState.phase,T3.fluidState.phase,T2.fluidState.phase,T1.fluidState.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 40 * 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.0001398/0.4975, allocations: 196.1 kB / 0.6795 GB, free: 10.95 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001005/0.4977, allocations: 59.62 kB / 0.6796 GB, free: 10.89 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00197/0.4996, allocations: 1.574 MB / 0.6811 GB, free: 9.305 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.454e-05/0.4997, allocations: 23.95 kB / 0.6811 GB, free: 9.281 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.057e-06/0.4997, allocations: 0 / 0.6811 GB, free: 9.281 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.689e-06/0.4997, allocations: 0 / 0.6811 GB, free: 9.281 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001065/0.5008, allocations: 0.9892 MB / 0.6821 GB, free: 8.246 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.855e-06/0.5008, allocations: 0 / 0.6821 GB, free: 8.246 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00032/0.5011, allocations: 71.89 kB / 0.6822 GB, free: 8.176 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.344e-06/0.5011, allocations: 0 / 0.6822 GB, free: 8.176 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.997e-05/0.5011, allocations: 15.92 kB / 0.6822 GB, free: 8.16 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.907e-06/0.5011, allocations: 4 kB / 0.6822 GB, free: 8.156 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.5011, allocations: 0 / 0.6822 GB, free: 8.156 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00129/0.5024, allocations: 0.9889 MB / 0.6831 GB, free: 7.152 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001902/0.5026, allocations: 200.2 kB / 0.6833 GB, free: 6.938 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.211e-05/0.5027, allocations: 7.938 kB / 0.6833 GB, free: 6.93 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002765/0.503, allocations: 15.98 kB / 0.6834 GB, free: 6.914 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001183/0.5031, allocations: 47.88 kB / 0.6834 GB, free: 6.867 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.479e-05/0.5031, allocations: 12 kB / 0.6834 GB, free: 6.855 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0003257/0.5035, allocations: 322.9 kB / 0.6837 GB, free: 6.539 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.41e-07/0.5035, allocations: 0 / 0.6837 GB, free: 6.539 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.002139/0.5056, allocations: 1.08 MB / 0.6848 GB, free: 5.457 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 12 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * 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.004413/0.51, allocations: 2.417 MB / 0.6871 GB, free: 3.016 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.001227/0.5113, allocations: 0.6606 MB / 0.6878 GB, free: 2.355 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.5113, allocations: 0 / 0.6878 GB, free: 2.355 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0006144/0.5119, allocations: 420.9 kB / 0.6882 GB, free: 1.941 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001656/0.5136, allocations: 316.8 kB / 0.6885 GB, free: 1.637 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007487/0.5211, allocations: 5.165 MB / 0.6935 GB, free: 12.32 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005597/0.5217, allocations: 0.979 MB / 0.6945 GB, free: 11.32 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.000614/0.5223, allocations: 387.7 kB / 0.6949 GB, free: 10.94 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003958/0.5227, allocations: 303.3 kB / 0.6951 GB, free: 10.64 MB / 0.545 GB Notification: Performance of SimCode: time 2.71e-07/0.5227, allocations: 0 / 0.6951 GB, free: 10.64 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.919/3.442, allocations: 46.33 MB / 0.7404 GB, free: 12.18 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.45/19.89, allocations: 11.92 kB / 0.7404 GB, free: 12.16 MB / 0.5919 GB (rm -f ThermoPower_ThermoPower.Test.WaterComponents.TestJoin.pipe ; mkfifo ThermoPower_ThermoPower.Test.WaterComponents.TestJoin.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.WaterComponents.TestJoin.pipe >> ../files/ThermoPower_ThermoPower.Test.WaterComponents.TestJoin.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_WaterComponents_TestJoin_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_WaterComponents_TestJoin.fmu > ThermoPower_ThermoPower.Test.WaterComponents.TestJoin.pipe 2>&1)