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.001096/0.001095, allocations: 105.8 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.001006/0.001006, 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.282/1.282, 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.2477/0.2477, allocations: 48.84 MB / 319.9 MB, free: 11.1 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.00156/0.00156, allocations: 68.38 kB / 390.2 MB, free: 48.8 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07999/0.08157, allocations: 59.17 MB / 449.3 MB, free: 9.664 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.TestJoin): time 0.2715/0.3531, allocations: 107.3 MB / 0.5436 GB, free: 5.703 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01158/0.3648, allocations: 11.56 MB / 0.5549 GB, free: 5.516 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009511/0.3658, allocations: 22.66 kB / 0.5549 GB, free: 5.516 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001918/0.3677, allocations: 0.559 MB / 0.5555 GB, free: 5.512 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001756/0.3695, allocations: 0.6161 MB / 0.5561 GB, free: 5.484 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01417/0.3837, allocations: 5.646 MB / 0.5616 GB, free: 5.336 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.001987/0.3857, allocations: 1.658 MB / 0.5632 GB, free: 5.297 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008608/0.3866, allocations: 0.6389 MB / 0.5638 GB, free: 5.242 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009206/0.3875, allocations: 0.6341 MB / 0.5644 GB, free: 5.168 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006881/0.3882, allocations: 0.6291 MB / 0.5651 GB, free: 5.059 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001357/0.3883, allocations: 65.75 kB / 0.5651 GB, free: 5.059 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01088/0.3992, allocations: 6.295 MB / 0.5713 GB, free: 4.93 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001875/0.3994, allocations: 158.5 kB / 0.5714 GB, free: 4.871 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005645/0.4, allocations: 426.1 kB / 0.5718 GB, free: 4.73 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005915/0.4059, allocations: 4.298 MB / 0.576 GB, free: 3.012 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.4059, allocations: 0 / 0.576 GB, free: 3.012 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.406, allocations: 0 / 0.576 GB, free: 3.012 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.004e-05/0.406, allocations: 0 / 0.576 GB, free: 3.012 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: 162 * Number of variables: 162 Notification: Performance of Generate backend data structure: time 0.002942/0.4089, allocations: 1.548 MB / 0.5775 GB, free: 2.055 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.8e-05/0.409, allocations: 11.61 kB / 0.5775 GB, free: 2.051 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.947e-05/0.4091, allocations: 107.2 kB / 0.5776 GB, free: 1.996 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002788/0.4093, allocations: 109.9 kB / 0.5778 GB, free: 1.949 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004492/0.4098, allocations: 479.7 kB / 0.5782 GB, free: 1.613 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.068e-05/0.4098, allocations: 49 kB / 0.5783 GB, free: 1.613 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.468e-05/0.4099, allocations: 62.28 kB / 0.5783 GB, free: 1.613 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001388/0.4113, allocations: 0.8143 MB / 0.5791 GB, free: 1.293 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.737e-05/0.4113, allocations: 5.812 kB / 0.5791 GB, free: 1.293 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.46e-05/0.4114, allocations: 26.28 kB / 0.5791 GB, free: 1.293 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.579e-05/0.4114, allocations: 15.53 kB / 0.5792 GB, free: 1.293 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001358/0.4128, allocations: 0.5869 MB / 0.5797 GB, free: 1.184 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003311/0.4161, allocations: 4.426 MB / 0.5841 GB, free: 13.32 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001301/0.4174, allocations: 495 kB / 0.5845 GB, free: 13.18 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003743/0.4178, allocations: 184.3 kB / 0.5847 GB, free: 13.14 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06461/0.4824, allocations: 31.97 MB / 0.6159 GB, free: 14.45 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.273e-05/0.4825, allocations: 45.94 kB / 0.616 GB, free: 14.4 MB / 462.1 MB Notification: Performance of pre-optimization done (n=32): time 2.013e-06/0.4825, allocations: 0 / 0.616 GB, free: 14.4 MB / 462.1 MB Notification: Performance of matching and sorting (n=32): time 0.002336/0.4848, allocations: 0.7016 MB / 0.6167 GB, free: 13.85 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.395e-05/0.4849, allocations: 85.11 kB / 0.6167 GB, free: 13.75 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005081/0.4854, allocations: 470.9 kB / 0.6172 GB, free: 13.38 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 4.195e-05/0.4855, allocations: 29.27 kB / 0.6172 GB, free: 13.35 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001887/0.4857, allocations: 338 kB / 0.6175 GB, free: 13.11 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.765e-05/0.4858, allocations: 112.4 kB / 0.6176 GB, free: 13 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000125/0.4859, allocations: 73.92 kB / 0.6177 GB, free: 12.92 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001224/0.486, allocations: 366.8 kB / 0.6181 GB, free: 12.55 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003458/0.4864, allocations: 138.1 kB / 0.6182 GB, free: 12.42 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003745/0.4868, allocations: 201.8 kB / 0.6184 GB, free: 12.19 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007113/0.4875, allocations: 337.4 kB / 0.6187 GB, free: 11.83 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.4875, allocations: 0 / 0.6187 GB, free: 11.83 MB / 462.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0009538/0.4885, allocations: 420.6 kB / 0.6191 GB, free: 11.41 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.656e-05/0.4885, allocations: 8 kB / 0.6191 GB, free: 11.41 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.695e-06/0.4885, allocations: 3.938 kB / 0.6191 GB, free: 11.4 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.949e-05/0.4885, allocations: 7.984 kB / 0.6191 GB, free: 11.39 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004404/0.489, allocations: 83.89 kB / 0.6192 GB, free: 11.31 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.078e-05/0.489, allocations: 7.984 kB / 0.6192 GB, free: 11.3 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003645/0.4894, allocations: 49.2 kB / 0.6193 GB, free: 11.26 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.582e-05/0.4894, allocations: 16.16 kB / 0.6193 GB, free: 11.24 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003722/0.4898, allocations: 228.7 kB / 0.6195 GB, free: 11.02 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002599/0.4901, allocations: 187 kB / 0.6197 GB, free: 10.79 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004955/0.4906, allocations: 311.1 kB / 0.62 GB, free: 10.45 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.904e-06/0.4906, allocations: 0 / 0.62 GB, free: 10.45 MB / 462.1 MB Notification: Performance of matching and sorting (n=40) (initialization_lambda0): time 0.0006843/0.4913, allocations: 376.6 kB / 0.6203 GB, free: 10.07 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.598e-06/0.4913, allocations: 4 kB / 0.6203 GB, free: 10.07 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.47e-06/0.4913, allocations: 4 kB / 0.6203 GB, free: 10.07 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.225e-06/0.4913, allocations: 12.28 kB / 0.6203 GB, free: 10.05 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003126/0.4916, allocations: 87.83 kB / 0.6204 GB, free: 9.969 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.793e-06/0.4917, allocations: 4 kB / 0.6204 GB, free: 9.965 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002677/0.4919, allocations: 31.73 kB / 0.6205 GB, free: 9.934 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.648e-05/0.492, allocations: 19.98 kB / 0.6205 GB, free: 9.914 MB / 462.1 MB 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.0001343/0.4921, allocations: 196.1 kB / 0.6207 GB, free: 9.715 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001153/0.4922, allocations: 59.34 kB / 0.6207 GB, free: 9.656 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001839/0.4941, allocations: 1.576 MB / 0.6223 GB, free: 8.07 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.186e-05/0.4941, allocations: 19.97 kB / 0.6223 GB, free: 8.051 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.761e-06/0.4941, allocations: 4 kB / 0.6223 GB, free: 8.047 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.655e-06/0.4941, allocations: 5.234 kB / 0.6223 GB, free: 8.043 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00101/0.4952, allocations: 0.9813 MB / 0.6233 GB, free: 7.023 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.38e-06/0.4952, allocations: 3.938 kB / 0.6233 GB, free: 7.02 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003513/0.4955, allocations: 67.88 kB / 0.6233 GB, free: 6.953 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.859e-06/0.4955, allocations: 4 kB / 0.6233 GB, free: 6.949 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.627e-05/0.4956, allocations: 7.938 kB / 0.6233 GB, free: 6.941 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.218e-06/0.4956, allocations: 4 kB / 0.6233 GB, free: 6.938 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.4956, allocations: 0 / 0.6233 GB, free: 6.938 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001248/0.4968, allocations: 0.9943 MB / 0.6243 GB, free: 5.93 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002185/0.4971, allocations: 197.9 kB / 0.6245 GB, free: 5.719 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.918e-05/0.4972, allocations: 11.92 kB / 0.6245 GB, free: 5.707 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000332/0.4975, allocations: 15.98 kB / 0.6245 GB, free: 5.691 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001199/0.4976, allocations: 43.95 kB / 0.6246 GB, free: 5.648 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.611e-05/0.4977, allocations: 12 kB / 0.6246 GB, free: 5.637 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.000335/0.498, allocations: 322.9 kB / 0.6249 GB, free: 5.32 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.498, allocations: 0 / 0.6249 GB, free: 5.32 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002785/0.5008, allocations: 1.065 MB / 0.6259 GB, free: 4.254 MB / 462.1 MB 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.005957/0.5068, allocations: 2.411 MB / 0.6283 GB, free: 1.898 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.001403/0.5082, allocations: 0.6728 MB / 0.6289 GB, free: 1.23 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.925e-06/0.5082, allocations: 1.188 kB / 0.6289 GB, free: 1.23 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005826/0.5088, allocations: 418.1 kB / 0.6293 GB, free: 0.8203 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001829/0.5106, allocations: 325.5 kB / 0.6296 GB, free: 0.5039 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008476/0.5191, allocations: 5.247 MB / 0.6348 GB, free: 11.14 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004814/0.5196, allocations: 0.9828 MB / 0.6357 GB, free: 10.13 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0007176/0.5204, allocations: 379.8 kB / 0.6361 GB, free: 9.758 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003833/0.5207, allocations: 307.3 kB / 0.6364 GB, free: 9.457 MB / 478.1 MB Notification: Performance of SimCode: time 7.02e-07/0.5208, allocations: 0 / 0.6364 GB, free: 9.457 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0754/0.5962, allocations: 46.25 MB / 0.6816 GB, free: 11.08 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.68/13.28, allocations: 8.047 kB / 0.6816 GB, free: 11.07 MB / 0.5137 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)