Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_ThermoPower.Test.WaterComponents.TestSources.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001286/0.001286, allocations: 112.2 kB / 21.22 MB, free: 0.7305 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001317/0.001317, allocations: 212.2 kB / 24.53 MB, free: 4.07 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.327/1.327, allocations: 207.6 MB / 235.3 MB, free: 9.996 MB / 190.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower master/package.mo): time 0.2858/0.2858, allocations: 49.56 MB / 337.1 MB, free: 4.109 MB / 270.1 MB " [Timeout remaining time 179] Using package ThermoPower with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ThermoPower.Test.WaterComponents.TestSources,fileNamePrefix="ThermoPower_ThermoPower_Test_WaterComponents_TestSources",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.WaterComponents.TestSources,fileNamePrefix="ThermoPower_ThermoPower_Test_WaterComponents_TestSources",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002394/0.002394, allocations: 67.91 kB / 477.1 MB, free: 12.94 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1148/0.1171, allocations: 62.42 MB / 0.5269 GB, free: 14.32 MB / 414.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower master/Water.mo:297:5-297:61:writable] Warning: An inner declaration for outer component system could not be found and was automatically generated. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower master/Water.mo:297:5-297:61:writable] Notification: The diagnostics message for the missing inner is: The System object is missing, please drag it on the top layer of your model Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.TestSources): time 0.3292/0.4464, allocations: 108.3 MB / 0.6326 GB, free: 9.676 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.00254/0.4489, allocations: 0.9308 MB / 0.6335 GB, free: 8.742 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007069/0.4496, allocations: 31.62 kB / 0.6336 GB, free: 8.711 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009225/0.4505, allocations: 309.4 kB / 0.6338 GB, free: 8.406 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00106/0.4516, allocations: 445 kB / 0.6343 GB, free: 7.969 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0132/0.4648, allocations: 4.586 MB / 0.6388 GB, free: 3.363 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.003563/0.4684, allocations: 1.315 MB / 0.64 GB, free: 2.043 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009937/0.4694, allocations: 383.3 kB / 0.6404 GB, free: 1.652 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009621/0.4703, allocations: 470.1 kB / 0.6408 GB, free: 1.191 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007582/0.4711, allocations: 445.8 kB / 0.6413 GB, free: 0.7539 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001081/0.4712, allocations: 36 kB / 0.6413 GB, free: 0.7188 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009934/0.4811, allocations: 4.467 MB / 0.6457 GB, free: 12.25 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002679/0.4814, allocations: 115.4 kB / 0.6458 GB, free: 12.13 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005574/0.4819, allocations: 362 kB / 0.6461 GB, free: 11.78 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008311/0.4903, allocations: 3.105 MB / 0.6492 GB, free: 8.664 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.752e-06/0.4903, allocations: 0 / 0.6492 GB, free: 8.664 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.4903, allocations: 0 / 0.6492 GB, free: 8.664 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.935e-05/0.4903, allocations: 0 / 0.6492 GB, free: 8.664 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: 124 * Number of variables: 124 Notification: Performance of Generate backend data structure: time 0.002709/0.493, allocations: 1.246 MB / 0.6504 GB, free: 7.383 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.075e-05/0.493, allocations: 12.03 kB / 0.6504 GB, free: 7.371 MB / 494.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.64e-05/0.4931, allocations: 17.19 kB / 0.6504 GB, free: 7.355 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001039/0.4932, allocations: 86.7 kB / 0.6505 GB, free: 7.262 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001726/0.4934, allocations: 96.38 kB / 0.6506 GB, free: 7.168 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008166/0.4942, allocations: 425.9 kB / 0.651 GB, free: 6.719 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.987e-05/0.4942, allocations: 44.94 kB / 0.651 GB, free: 6.676 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.805e-05/0.4943, allocations: 48 kB / 0.6511 GB, free: 6.629 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008613/0.4951, allocations: 0.6004 MB / 0.6517 GB, free: 5.902 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.303e-05/0.4952, allocations: 11.94 kB / 0.6517 GB, free: 5.891 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.051e-05/0.4952, allocations: 20 kB / 0.6517 GB, free: 5.871 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.759e-05/0.4952, allocations: 15.98 kB / 0.6517 GB, free: 5.855 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004581/0.4957, allocations: 251.3 kB / 0.6519 GB, free: 5.609 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004381/0.5001, allocations: 4.654 MB / 0.6565 GB, free: 0.7656 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001252/0.5002, allocations: 173.1 kB / 0.6567 GB, free: 0.5859 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.284e-05/0.5002, allocations: 80.14 kB / 0.6567 GB, free: 0.5039 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.193e-05/0.5003, allocations: 75.28 kB / 0.6568 GB, free: 440 kB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.55e-05/0.5003, allocations: 113.8 kB / 0.6569 GB, free: 316 kB / 494.1 MB Notification: Performance of pre-optimization done (n=0): time 2.154e-06/0.5003, allocations: 0 / 0.6569 GB, free: 316 kB / 494.1 MB Notification: Performance of matching and sorting (n=0): time 0.0002449/0.5006, allocations: 109.2 kB / 0.657 GB, free: 200 kB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.308e-05/0.5007, allocations: 126.7 kB / 0.6571 GB, free: 60 kB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009926/0.5016, allocations: 0.7765 MB / 0.6579 GB, free: 15.25 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.734e-05/0.5017, allocations: 33.58 kB / 0.6579 GB, free: 15.21 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003354/0.502, allocations: 387.5 kB / 0.6583 GB, free: 14.83 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 6.011e-06/0.502, allocations: 8 kB / 0.6583 GB, free: 14.82 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.939e-05/0.5021, allocations: 37.66 kB / 0.6583 GB, free: 14.78 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.000133/0.5022, allocations: 313.9 kB / 0.6586 GB, free: 14.47 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.893e-05/0.5022, allocations: 16 kB / 0.6587 GB, free: 14.45 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.929e-05/0.5023, allocations: 86.3 kB / 0.6587 GB, free: 14.33 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001365/0.5025, allocations: 110.1 kB / 0.6588 GB, free: 14.19 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.5025, allocations: 4 kB / 0.6588 GB, free: 14.18 MB / 0.4981 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003805/0.5029, allocations: 208.9 kB / 0.659 GB, free: 13.97 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.775e-05/0.5029, allocations: 4 kB / 0.659 GB, free: 13.97 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.546e-06/0.5029, allocations: 7.938 kB / 0.6591 GB, free: 13.96 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.798e-05/0.5029, allocations: 4 kB / 0.6591 GB, free: 13.96 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001138/0.503, allocations: 23.98 kB / 0.6591 GB, free: 13.93 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.427e-05/0.503, allocations: 11.92 kB / 0.6591 GB, free: 13.92 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000229/0.5033, allocations: 47.89 kB / 0.6591 GB, free: 13.88 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.477e-05/0.5033, allocations: 16 kB / 0.6592 GB, free: 13.86 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (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 prepare postOptimizeDAE: time 0.0002397/0.5035, allocations: 237 kB / 0.6594 GB, free: 13.62 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000171/0.5037, allocations: 196.4 kB / 0.6596 GB, free: 13.42 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001396/0.5038, allocations: 167.6 kB / 0.6597 GB, free: 13.25 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.824e-05/0.5039, allocations: 184.2 kB / 0.6599 GB, free: 13.06 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.655e-05/0.504, allocations: 184.2 kB / 0.6601 GB, free: 12.87 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.693e-05/0.5041, allocations: 176.3 kB / 0.6602 GB, free: 12.69 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005601/0.5047, allocations: 0.6212 MB / 0.6609 GB, free: 12.02 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.529e-05/0.5047, allocations: 101 kB / 0.661 GB, free: 11.91 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.741e-05/0.5047, allocations: 112.9 kB / 0.6611 GB, free: 11.8 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.949e-05/0.5048, allocations: 180.2 kB / 0.6612 GB, free: 11.61 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.938e-05/0.5049, allocations: 184.3 kB / 0.6614 GB, free: 11.43 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.449e-05/0.505, allocations: 180.2 kB / 0.6616 GB, free: 11.24 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.548e-05/0.5051, allocations: 180.3 kB / 0.6617 GB, free: 11.06 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002672/0.5053, allocations: 391.2 kB / 0.6621 GB, free: 10.65 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001814/0.5055, allocations: 172.5 kB / 0.6623 GB, free: 10.48 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001592/0.5057, allocations: 184.2 kB / 0.6625 GB, free: 10.29 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002042/0.5059, allocations: 109 kB / 0.6626 GB, free: 10.18 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.679e-05/0.506, allocations: 184.2 kB / 0.6627 GB, free: 9.988 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.089e-05/0.506, allocations: 101 kB / 0.6628 GB, free: 9.883 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0006695/0.5067, allocations: 0.531 MB / 0.6634 GB, free: 9.34 MB / 0.4981 GB Notification: Performance of sort global known variables: time 7e-08/0.5067, allocations: 4 kB / 0.6634 GB, free: 9.336 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.002155/0.5088, allocations: 0.7559 MB / 0.6641 GB, free: 8.578 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (0): * Single equations (assignments): 0 * 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.003185/0.512, allocations: 1.728 MB / 0.6658 GB, free: 6.82 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0001753/0.5122, allocations: 39.86 kB / 0.6658 GB, free: 6.781 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.5122, allocations: 4 kB / 0.6658 GB, free: 6.777 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 1.954e-06/0.5122, allocations: 0 / 0.6658 GB, free: 6.777 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002583/0.5148, allocations: 0.8777 MB / 0.6667 GB, free: 5.895 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006255/0.521, allocations: 4.771 MB / 0.6713 GB, free: 0.9258 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005027/0.5215, allocations: 0.8821 MB / 0.6722 GB, free: 16 kB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0004138/0.5219, allocations: 125.5 kB / 0.6723 GB, free: 15.89 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002978/0.5222, allocations: 259.3 kB / 0.6726 GB, free: 15.64 MB / 0.5137 GB Notification: Performance of SimCode: time 1.243e-06/0.5222, allocations: 0 / 0.6726 GB, free: 15.64 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07136/0.5936, allocations: 34.27 MB / 0.706 GB, free: 13.26 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.44/13.04, allocations: 12 kB / 0.7061 GB, free: 13.25 MB / 0.545 GB " [Timeout remaining time 647] (rm -f ThermoPower_ThermoPower.Test.WaterComponents.TestSources.pipe ; mkfifo ThermoPower_ThermoPower.Test.WaterComponents.TestSources.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.WaterComponents.TestSources.pipe >> ../files/ThermoPower_ThermoPower.Test.WaterComponents.TestSources.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_WaterComponents_TestSources_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_WaterComponents_TestSources.fmu > ThermoPower_ThermoPower.Test.WaterComponents.TestSources.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 15.801286855014041] Failed to read output from testmodel.py, exit status != 0: 13.211891763028689 13.226535426 12.732819059 Calling exit ...